authclient\BaseOAuth processResponse()

processResponse() protected method Processes raw response converting it to actual data. protected array processResponse ( $rawResponse, $contentType = self::CONTENT_TYPE_AUTO )$rawResponse string Raw response. $contentType string Response content type. return array Actual response. throws yii\base\Exception on failure.

authclient\BaseOAuth refreshAccessToken()

refreshAccessToken() public abstract method Gets new auth token to replace expired one. public abstract yii\authclient\OAuthToken refreshAccessToken ( yii\authclient\OAuthToken $token )$token yii\authclient\OAuthToken Expired auth token. return yii\authclient\OAuthToken New auth token.

authclient\BaseOAuth removeState()

removeState() protected method Removes persistent state value. protected boolean removeState ( $key )$key string State key. return boolean Success.

authclient\BaseOAuth restoreAccessToken()

restoreAccessToken() protected method Restores access token. protected yii\authclient\OAuthToken restoreAccessToken ( )return yii\authclient\OAuthToken Auth token.

authclient\BaseOAuth saveAccessToken()

saveAccessToken() protected method Saves token as persistent state. protected $this saveAccessToken ( yii\authclient\OAuthToken $token )$token yii\authclient\OAuthToken Auth token return $this The object itself.

authclient\BaseOAuth sendRequest()

sendRequest() protected method Sends HTTP request. protected array sendRequest ( $method, $url, array $params = [], array $headers = [] )$method string Request type. $url string Request URL. $params array Request params. $headers array Additional request headers. return array Response. throws yii\base\Exception on failure.

authclient\BaseOAuth setAccessToken()

setAccessToken() public method public void setAccessToken ( $token )$token array|yii\authclient\OAuthToken

authclient\BaseOAuth setCurlOptions()

setCurlOptions() public method public void setCurlOptions ( array $curlOptions )$curlOptions array CURL options.

authclient\BaseOAuth setReturnUrl()

setReturnUrl() public method public void setReturnUrl ( $returnUrl )$returnUrl string Return URL

authclient\BaseOAuth setSignatureMethod()

setSignatureMethod() public method public void setSignatureMethod ( $signatureMethod )$signatureMethod array|yii\authclient\signature\BaseMethod Signature method instance or its array configuration. throws yii\base\InvalidParamException on wrong argument.