AWFAerisAccount
Objective-C
@interface AWFAerisAccount : NSObject
Swift
class AWFAerisAccount : NSObject
An AWFAerisAccount object contains the access information associated with an API account.
-
The API key associated with the user account.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull apiKey;Swift
var apiKey: String { get } -
The secret key associated with the user account and application.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull secretKey;Swift
var secretKey: String { get } -
Account access permissions for Aeris API
Declaration
Objective-C
@property (nonatomic, readonly, nullable) AWFApiPermissions *apiPermissions;Swift
var apiPermissions: AWFApiPermissions? { get } -
Account access permissions for Aeris Maps
Declaration
Objective-C
@property (nonatomic, readonly, nullable) AWFMapPermissions *mapPermissions;Swift
var mapPermissions: AWFMapPermissions? { get } -
Initializes and returns an
AWFAerisAccountinstance with the specified API access key and secret. This account will be used for all requests to the Aeris API.Declaration
Objective-C
- (nonnull instancetype) initWithApiKey:(nonnull NSString *)apiKey secret:(nonnull NSString *)secretKey completion: (nullable AWFAerisAccountPermissionsCompletionBlock)completionBlock;Swift
init(apiKey: String, secret secretKey: String, completion completionBlock: AWFAerisAccountPermissionsCompletionBlock? = nil)Parameters
apiKeyThe access key for the account
secretKeyThe account secret for the account
completionBlockAn optional block that is called when the account has been initialized and permissions have loaded
Return Value
The account instance initialized with the API key and secret
View on GitHub
AWFAerisAccount Class Reference