PHP Class Zendesk\API\Utilities\OAuth

Mostra file Open project: zendesk/zendesk_api_client_php Class Usage Examples

Public Methods

Method Description
getAccessToken ( Client $client, string $subdomain, array $params, string $domain = 'zendesk.com' ) : array Requests for an access token.
getAuthUrl ( string $subdomain, array $options, string $domain = 'zendesk.com' ) : string Generates an oAuth URL.

Method Details

getAccessToken() public static method

Requests for an access token.
public static getAccessToken ( Client $client, string $subdomain, array $params, string $domain = 'zendesk.com' ) : array
$client GuzzleHttp\Client
$subdomain string
$params array
$domain string
return array

getAuthUrl() public static method

Generates an oAuth URL.
public static getAuthUrl ( string $subdomain, array $options, string $domain = 'zendesk.com' ) : string
$subdomain string
$options array
$domain string
return string