Declared in | BBGMultiAccountManager.h |
---|
- registerWithClientId:clientSecret:scope:
Mandatory! Set the Google Parameters necessary
to login against your application.
- addAccount
Start the procedures to authenticate your application against the scopes.
- addAccountWithCompletionBlock:
Start the procedures to authenticate your application against the scopes.
- accountsWithCompletionBlock:
Return the list of existing account.
- removeAccount:
Remove the provided Account, if exist.
- removeAccount:withCompletionBlock:
Remove the provided Account, if exist.
- setPrincipalAccount:
Set this account as principal.
- setDefaultAccount:withCompletionBlock:
Set this account as principal.
Mandatory! Set the Google Parameters necessary to login against your application.
- (void)registerWithClientId:(NSString *)clientID clientSecret:(NSString *)clientSecret scope:(NSString *)scope
Your unique Google API identificator
Your secret Google API code
The scope of the service you want to authorize
https://code.google.com/apis/console for Google API Console
https://developers.google.com/google-apps/documents-list/?hl=es-ES#authorizing_requests_with_oauth_20 for scope description
BBGMultiAccountManager
.h
Start the procedures to authenticate your application against the scopes.
- (void)addAccount
BBGMultiAccountManager
.h
Start the procedures to authenticate your application against the scopes.
- (void)addAccountWithCompletionBlock:(id<BBAccount>)account
Completion block
BBGMultiAccountManager
.h
Return the list of existing account.
- (void)accountsWithCompletionBlock:(NSArray *)accounts
Completion block
BBGMultiAccountManager
.h
Remove the provided Account, if exist.
- (void)removeAccount:(id<BBAccount>)account
The account to delete
BBGMultiAccountManager
.h
Remove the provided Account, if exist.
- (void)removeAccount:(id<BBAccount>)account withCompletionBlock:(BOOL)success
The account to delete
Completion block
BBGMultiAccountManager
.h
Set this account as principal.
- (void)setPrincipalAccount:(id<BBAccount>)account
The account to mark as principal
NB: only one account can be the principal.
BBGMultiAccountManager
.h
Set this account as principal.
- (void)setDefaultAccount:(id<BBAccount>)account withCompletionBlock:(BOOL)success
The account to mark as principal
Completion block
NB: only one account can be the principal.
BBGMultiAccountManager
.h
Last updated: 2012-5-5