Exchanges temporary authorization code for an access_token.
public static getAccessToken ( string $client_id, string $code, string $redirect_uri, string $client_secret = NULL ) : response | ||
$client_id | string | The client_id that was assigned to the application. |
$code | string | Temporary token. |
$redirect_uri | string | URI that the OAuth server sends the authorization result to. The value must exactly match the `redirect_uri` value from the previous "authorize" call. |
$client_secret | string | A secret word for verifying the application's authenticity. Specified if the service is registered with the option to verify authenticity. |
return | response | object |