Свойство | Тип | Описание | |
---|---|---|---|
$response | Guzzle\Http\Message\Response | Guzzle\Http\Message\Response | |
$response_code | string | If a request was made, the response code will be stored here. |
Свойство | Тип | Описание | |
---|---|---|---|
$authURLs | |||
$baseUri |
Метод | Описание | |
---|---|---|
__construct ( $clientCredentials, SignatureInterface $signature = null ) | {@inheritDoc} | |
authorize ( League\OAuth1\Client\Credentials\TemporaryCredentials | string $temporaryIdentifier ) | Redirect the client to the authorization URL. | |
getTemporaryCredentials ( ) : League\OAuth1\Client\Credentials\TemporaryCredentials | Gets temporary credentials by performing a request to the server. | |
getTokenCredentials ( League\OAuth1\Client\Credentials\TemporaryCredentials $temporaryCredentials, string $temporaryIdentifier, string $verifier ) : League\OAuth1\Client\Credentials\TokenCredentials | Retrieves token credentials by passing in the temporary credentials, the temporary credentials identifier as passed back by the server and finally the verifier code. | |
get_response ( string $uri, array $args ) : Guzzle\Http\Message\Response | Perform a GuzzleClient request, and get the response. | |
handleTemporaryCredentialsFail ( Exception $e ) | Handle a failed response coming back when getting temporary credentials. | |
request ( string $uri, League\OAuth1\Client\Credentials\TokenCredentials $creds, array $args = [] ) : array | Perform a request (via GuzzleClient) | |
urlAuthorization ( ) | {@inheritDoc} | |
urlTemporaryCredentials ( ) | {@inheritDoc} | |
urlTokenCredentials ( ) | {@inheritDoc} | |
urlUserDetails ( ) | {@inheritDoc} | |
userDetails ( $data, League\OAuth1\Client\Credentials\TokenCredentials $tokenCredentials ) | {@inheritDoc} | |
userEmail ( $data, League\OAuth1\Client\Credentials\TokenCredentials $tokenCredentials ) | {@inheritDoc} | |
userScreenName ( $data, League\OAuth1\Client\Credentials\TokenCredentials $tokenCredentials ) | {@inheritDoc} | |
userUid ( $data, League\OAuth1\Client\Credentials\TokenCredentials $tokenCredentials ) | {@inheritDoc} |
Метод | Описание | |
---|---|---|
fetchUserDetails ( League\OAuth1\Client\Credentials\TokenCredentials $tokenCredentials, $force = true ) | {@inheritDoc} |
Метод | Описание | |
---|---|---|
parseConfigurationArray ( array $configuration = [] ) | Parse configuration array to set attributes. |
public __construct ( $clientCredentials, SignatureInterface $signature = null ) | ||
$signature | SignatureInterface |
protected fetchUserDetails ( League\OAuth1\Client\Credentials\TokenCredentials $tokenCredentials, $force = true ) | ||
$tokenCredentials | League\OAuth1\Client\Credentials\TokenCredentials |
public getTemporaryCredentials ( ) : League\OAuth1\Client\Credentials\TemporaryCredentials | ||
Результат | League\OAuth1\Client\Credentials\TemporaryCredentials |
public getTokenCredentials ( League\OAuth1\Client\Credentials\TemporaryCredentials $temporaryCredentials, string $temporaryIdentifier, string $verifier ) : League\OAuth1\Client\Credentials\TokenCredentials | ||
$temporaryCredentials | League\OAuth1\Client\Credentials\TemporaryCredentials | |
$temporaryIdentifier | string | |
$verifier | string | |
Результат | League\OAuth1\Client\Credentials\TokenCredentials |
public get_response ( string $uri, array $args ) : Guzzle\Http\Message\Response | ||
$uri | string | URI to request |
$args | array | Array of data to send in request. |
Результат | Guzzle\Http\Message\Response |
public handleTemporaryCredentialsFail ( Exception $e ) | ||
$e | Exception |
public request ( string $uri, League\OAuth1\Client\Credentials\TokenCredentials $creds, array $args = [] ) : array | ||
$uri | string | URI to request |
$creds | League\OAuth1\Client\Credentials\TokenCredentials | Request method. Defaults to GET |
$args | array | Array of data to send in request. |
Результат | array | Array of response data, or WP_Error |
public userDetails ( $data, League\OAuth1\Client\Credentials\TokenCredentials $tokenCredentials ) | ||
$tokenCredentials | League\OAuth1\Client\Credentials\TokenCredentials |
public userEmail ( $data, League\OAuth1\Client\Credentials\TokenCredentials $tokenCredentials ) | ||
$tokenCredentials | League\OAuth1\Client\Credentials\TokenCredentials |
public userScreenName ( $data, League\OAuth1\Client\Credentials\TokenCredentials $tokenCredentials ) | ||
$tokenCredentials | League\OAuth1\Client\Credentials\TokenCredentials |
public userUid ( $data, League\OAuth1\Client\Credentials\TokenCredentials $tokenCredentials ) | ||
$tokenCredentials | League\OAuth1\Client\Credentials\TokenCredentials |
public Guzzle\Http\Message\Response $response | ||
Результат | Guzzle\Http\Message\Response |
public string $response_code | ||
Результат | string |