APIResult

Superclass:
NSObject
Version:
1.0
Declared In:

Introduction

This interface encapsulates success information from an AIMobileLib API call.



Properties

api

The API throwing the error. It takes values from API.

result

The result object retuned from the API on success. The API result can be null, a dictionary, or a string depending upon which API created the APIResult.


api


The API throwing the error. It takes values from API.

@property API api; 

result


The result object retuned from the API on success. The API result can be null, a dictionary, or a string depending upon which API created the APIResult.

@property(retain) id result; 
Discussion

SDK passes following result to the application:

  1. authorizeUserForScopes:delegate: : This API passes nil as the result to the delegate.

  2. getAccessTokenForScopes:withOverrideParams:delegate: : This API passes an access token as an NSString object to the delegate.

  3. clearAuthorizationState: : This API passes nil as the result to the delegate.

  4. getProfile: : This API passes profile data in an NSDictionary object to the delegate. See the API description for information on the key:value pairs expected in profile dictionary.