Fetches access token from authorization code.
public fetchAccessToken ( string $authCode, array $params = [] ) : |
||
$authCode | string | authorization code, usually comes at $_GET['code']. |
$params | array | additional request params. |
return | access token. |