프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |