BBGMultiAccountManager
 All Classes Files Functions Variables Enumerator Properties Defines
Public Member Functions
BBGMultiAccountManager Class Reference

#import <BBGMultiAccountManager.h>

List of all members.

Public Member Functions

(void) - registerWithClientId:clientSecret:scope:
 
Mandatory! Set the Google Parameters necessary 

to login against your application.

(void) - addAccount
 Start the procedures to authenticate your application against the scopes.
(void) - addAccountWithCompletionBlock:
 Start the procedures to authenticate your application against the scopes.
(void) - accountsWithCompletionBlock:
 Return the list of existing account.
(void) - removeAccount:
 Remove the provided Account, if exist.
(void) - removeAccount:withCompletionBlock:
 Remove the provided Account, if exist.
(void) - setPrincipalAccount:
 Set this account as principal.
(void) - setDefaultAccount:withCompletionBlock:
 Set this account as principal.

Member Function Documentation

- (void) accountsWithCompletionBlock: (NSArray *accounts, NSError *error)  block

Return the list of existing account.

Parameters:
blockCompletion block
- (void) addAccount

Start the procedures to authenticate your application against the scopes.

- (void) addAccountWithCompletionBlock: (id<BBAccount> account, NSError *error)  block

Start the procedures to authenticate your application against the scopes.

Parameters:
blockCompletion block
- (void) registerWithClientId: (NSString *)  clientID
clientSecret: (NSString *)  clientSecret
scope: (NSString *)  scope 

Mandatory! Set the Google Parameters necessary 

to login against your application.

Parameters:
clientIDYour unique Google API identificator
clientSecretYour secret Google API code
scopeThe scope of the service you want to authorize
See also:
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
- (void) removeAccount: (id<BBAccount>)  account

Remove the provided Account, if exist.

Parameters:
accountThe account to delete
- (void) removeAccount: (id<BBAccount>)  account
withCompletionBlock: (BOOL success, NSError *error)  block 

Remove the provided Account, if exist.

Parameters:
accountThe account to delete
blockCompletion block
- (void) setDefaultAccount: (id<BBAccount>)  account
withCompletionBlock: (BOOL success, NSError *error)  block 

Set this account as principal.

NB: only one account can be the principal.

Parameters:
accountThe account to mark as principal
blockCompletion block
- (void) setPrincipalAccount: (id< BBAccount >)  account

Set this account as principal.

NB: only one account can be the principal.

Parameters:
accountThe account to mark as principal

The documentation for this class was generated from the following files: