authclient\BaseOAuth determineContentTypeByRaw()

determineContentTypeByRaw() protected method Attempts to determine the content type from raw content. protected string determineContentTypeByRaw ( $rawContent )$rawContent string Raw response content. return string Response type.

authclient\BaseOAuth determineContentTypeByHeaders()

determineContentTypeByHeaders() protected method Attempts to determine HTTP request content type by headers. protected string determineContentTypeByHeaders ( array $headers )$headers array Request headers. return string Content type.

authclient\BaseOAuth getAccessToken()

getAccessToken() public method public yii\authclient\OAuthToken getAccessToken ( )return yii\authclient\OAuthToken Auth token instance.

authclient\BaseOAuth defaultCurlOptions()

defaultCurlOptions() protected method Returns default cURL options. protected array defaultCurlOptions ( )return array CURL options.

authclient\BaseOAuth defaultReturnUrl()

defaultReturnUrl() protected method Composes default $returnUrl value. protected string defaultReturnUrl ( )return string Return URL.

authclient\BaseOAuth createSignatureMethod()

createSignatureMethod() protected method Creates signature method instance from its configuration. protected yii\authclient\signature\BaseMethod createSignatureMethod ( array $signatureMethodConfig )$signatureMethodConfig array Signature method configuration. return yii\authclient\signature\BaseMethod Signature method instance.

authclient\BaseOAuth createToken()

createToken() protected method Creates token from its configuration. protected yii\authclient\OAuthToken createToken ( array $tokenConfig = [] )$tokenConfig array Token configuration. return yii\authclient\OAuthToken Token instance.

authclient\BaseOAuth convertXmlToArray()

convertXmlToArray() protected method Converts XML document to array. protected array convertXmlToArray ( $xml )$xml string|SimpleXMLElement Xml to process. return array XML array representation.

authclient\BaseOAuth composeRequestCurlOptions()

composeRequestCurlOptions() protected abstract method Composes HTTP request CUrl options, which will be merged with the default ones. protected abstract array composeRequestCurlOptions ( $method, $url, array $params )$method string Request type. $url string Request URL. $params array Request params. return array CUrl options. throws yii\base\Exception on failure.

authclient\BaseOAuth composeUrl()

composeUrl() protected method Composes URL from base URL and GET params. protected string composeUrl ( $url, array $params = [] )$url string Base URL. $params array GET params. return string Composed URL.