public function OauthInterface::getAccessToken in Media: Acquia DAM 8
Get a token for API access + the number of seconds till expiration.
Parameters
string $auth_code: The authorization token from oauth.
Return value
array Returns an array with three keys:
- access_token: The access token used for API authorization.
- expire_time: The unix timestamp when the access token expires.
- refresh_token: The refresh token used for API authorization.
1 method overrides OauthInterface::getAccessToken()
- Oauth::getAccessToken in src/
Oauth.php - Get a token for API access + the number of seconds till expiration.
File
- src/
OauthInterface.php, line 41
Class
- OauthInterface
- OAuth Interface.
Namespace
Drupal\media_acquiadamCode
public function getAccessToken($auth_code);