EOAuth2Service::getTokenUrl PHP Method

getTokenUrl() protected method

Returns the url to request to get OAuth2 access token.
protected getTokenUrl ( string $code ) : string
$code string
return string url to request.
    protected function getTokenUrl($code)
    {
        return $this->providerOptions['access_token'] . '?client_id=' . $this->client_id . '&client_secret=' . $this->client_secret . '&code=' . $code . '&redirect_uri=' . urlencode($this->getState('redirect_uri'));
    }

Usage Example

 protected function getTokenUrl($code)
 {
     return parent::getTokenUrl($code) . '&redirect_uri=' . urlencode($this->getState('redirect_uri'));
 }
All Usage Examples Of EOAuth2Service::getTokenUrl