You are here

connectWithOAuthData

+ (AlfrescoRequest *)connectWithOAuthData:(AlfrescoOAuthData *)oauthData completionBlock:(AlfrescoSessionCompletionBlock)completionBlock; - Connects to the SkyVault in the Cloud server in the context of the user's home network. Once the session has been initialized the provided completionBlock is called on the main thread.

connectWithOAuthData

+ (AlfrescoRequest *)connectWithOAuthData:(AlfrescoOAuthData *)oauthData completionBlock:(AlfrescoSessionCompletionBlock)completionBlock; - Connects to the SkyVault in the Cloud server in the context of the user's home network. Once the session has been initialized the provided completionBlock is called on the main thread.

Parameters

(AlfrescoOAuthData *)oauthData
oAuth data.
(AlfrescoSessionCompletionBlock)completionBlock
The completion block called on completion of the operation. The completion block has the format typedef void (^AlfrescoSessionCompletionBlock)(id<AlfrescoSession> session, NSError *error).

Returns

(AlfrescoRequest *)

Example



        

connectWithOAuthData

+ (AlfrescoRequest *)connectWithOAuthData:(AlfrescoOAuthData *)oauthData parameters:(NSDictionary *)parameters completionBlock:(AlfrescoSessionCompletionBlock)completionBlock; - Connects to the SkyVault in the Cloud server in the context of the user's home network. Once the session has been initialized the provided completionBlock is called on the main thread.

Parameters

(AlfrescoOAuthData *)oauthData
oAuth data.
(NSDictionary *)parameters
Parameters.
(AlfrescoSessionCompletionBlock)completionBlock
The completion block called on completion of the operation. The completion block has the format typedef void (^AlfrescoSessionCompletionBlock)(id<AlfrescoSession> session, NSError *error).

Returns

(AlfrescoRequest *)

Example



        

connectWithOAuthData

+ (AlfrescoRequest *)connectWithOAuthData:(AlfrescoOAuthData *)oauthData networkIdentifer:(NSString *)networkIdentifer completionBlock:(AlfrescoSessionCompletionBlock)completionBlock; - Connects to the SkyVault in the Cloud server in the context of the specified network. Once the session has been initialized the provided completionBlock is called on the main thread.

Parameters

(AlfrescoOAuthData *)oauthData
oAuth data.
(NSString *)networkIdentifier
Identifies the network to connect to.
(AlfrescoSessionCompletionBlock)completionBlock
The completion block called on completion of the operation. The completion block has the format typedef void (^AlfrescoSessionCompletionBlock)(id<AlfrescoSession> session, NSError *error).

Returns

(AlfrescoRequest *)

Example



        

connectWithOAuthData

+ (AlfrescoRequest *)connectWithOAuthData:(AlfrescoOAuthData *)oauthData networkIdentifer:(NSString *)networkIdentifer parameters:(NSDictionary *)parameters completionBlock:(AlfrescoSessionCompletionBlock)completionBlock; - Connects to the SkyVault in the Cloud server in the context of the specified network. Once the session has been initialized the provided completionBlock is called on the main thread.

Parameters

(AlfrescoOAuthData *)oauthData
oAuth data.
(NSString *)networkIdentifier
Identifies the network to connect to.
(NSDictionary *)parameters
Parameters.
(AlfrescoSessionCompletionBlock)completionBlock
The completion block called on completion of the operation. The completion block has the format typedef void (^AlfrescoSessionCompletionBlock)(id<AlfrescoSession> session, NSError *error).

Returns

(AlfrescoRequest *)

Example