• Register



Updates access token based on individual parameters specified.


oauth2.updateAccessToken (service_key, client_id, client_secret, access_token,  scope, expires_in, user_context)


Parameter Type Description
service_key string The id of the OAuth 2.0 protected service definition
client_id string The API key of the developer whose application is requesting access
client_secret string Optional, client credentials if supplied
access_token string Identifies the token data
scope string Optional, space-delimited list of scope identifiers (provider-defined)
user_context string Optional, provider-defined user context identifier
expires_in int Optional, value in seconds for the token to expire

Return Value

“client_id”: <client id: string;
"token_type": <token type: string; one of "bearer" or a supported extension>
“grant_type”: <grant type: string; one of “authorization_code”, “password”, “client_credentials” or a supported extension>
“expires”: <expires:date; expiration date of the token>
“scope”: <scope:string; any scope specified for the token>
“user_context”: <user context: string, any user-context identifier specified for the token>
“extended”: <extended: object, any extended token information such as mac data required in response>

Errors (in addition to standard JSON-RPC errors)


Error Message



Unable to update token

An error has occurred pertaining to the OAuth operation. Please check the corresponding structure in the error object for specific details.

Sample Requests and Responses

Sample Request - Named Parameters

	"access_token" :"vxgqqqz7yua7nzrsp4arba7u",

Sample Response


Docs Navigation