SITServices Class Reference

Inherits from NSObject
Declared in SITServices.h

Overview

Service class for the Situm SDK for iOS

+ provideAPIKey:

Provides your API key to the Situm SDK for iOS. This key is generated for your application via the Situm APIs Console at https://dashboard.situm.es/accounts/profile This should be called exactly once by your application, e.g., in application: didFinishLaunchingWithOptions:.

+ (BOOL)provideAPIKey:(NSString *)APIKey

Parameters

APIKey

APIKey is the string as developer you can see at the backend at the developer section like you can see on the following image. Follow the URL: https://dashboard.situm.es/accounts/profile

Return Value

YES if the APIKey was successfully provided

Discussion

Warning: This method has been deprecated since v0.1.0-beta.

Warning: Use provideAPIKey:forEmail: instead

Declared In

SITServices.h

+ provideAPIKey:forEmail:

Provides your API key to the Situm SDK for iOS. This key is generated for your application

+ (BOOL)provideAPIKey:(NSString *)APIKey forEmail:(NSString *)email

Parameters

APIKey

APIKey is the string as developer you can see at the backend at the developer section like you can see on the following image. Follow the URL: https://dashboard.situm.es/accounts/profile

email

Email used to sign up as a developer at https://dashboard.situm.es/accounts/profile

Return Value

YES if the APIKey was successfully provided

Declared In

SITServices.h

+ SDKVersion

Returns the version for this release of the Situm SDK for iOS.

+ (NSString *)SDKVersion

Declared In

SITServices.h

+ allowsInvalidSSLCertificate

Returns the current value

+ (BOOL)allowsInvalidSSLCertificate

Return Value

BOOL value (default is NO)

Declared In

SITServices.h

+ setAllowsInvalidSSLCertificate:

Tell the system to trust the SSL certificate of the server (even though the Authority is not valid)

+ (void)setAllowsInvalidSSLCertificate:(BOOL)allowsInvalidSSLCertificate

Parameters

allowsInvalidSSLCertificate

BOOL value (if YES, communications with the server may not be secure)

Declared In

SITServices.h

+ licenseInfo

Returns the license information for Situm SDK for iOS.

+ (NSString *)licenseInfo

Return Value

String containing the licence informacion of this realease of the Situm SDK for iOS.

Discussion

This information must be made available within the application.

Declared In

SITServices.h

+ deviceID

Identifier of the smartphone

+ (NSString *)deviceID

Declared In

SITServices.h