You are here

getAccessToken

public static OAuthData getAccessToken(String apiKey, String apiSecret, String callbackUrl, String authorizationCode) - Retrieves an access token for the given authorization code.

Parameters

String apiKey
The API key to be used for authentication.
String apiSecret
The API secret to be used for authentication.
String callbackUrl
The callback URL. The callback URL is the part of your application that exchanges the authorization code for an access token (http://www.alfresco.com/mobile-auth-callback.html).
String authorizationCode
The authorization code.

Returns

Returns a String representing the authorization code.

Example