PHP 클래스 WDS_WP_REST_API\OAuth1\WPServer

상속: extends League\OAuth1\Client\Server\Server
파일 보기 프로젝트 열기: webdevstudios/wds-wp-rest-api-connect

공개 프로퍼티들

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

메소드 상세

__construct() 공개 메소드

{@inheritDoc}
public __construct ( $clientCredentials, SignatureInterface $signature = null )
$signature SignatureInterface

authorize() 공개 메소드

Redirect the client to the authorization URL.
public authorize ( League\OAuth1\Client\Credentials\TemporaryCredentials | string $temporaryIdentifier )
$temporaryIdentifier League\OAuth1\Client\Credentials\TemporaryCredentials | string

fetchUserDetails() 보호된 메소드

{@inheritDoc}
protected fetchUserDetails ( League\OAuth1\Client\Credentials\TokenCredentials $tokenCredentials, $force = true )
$tokenCredentials League\OAuth1\Client\Credentials\TokenCredentials

getTemporaryCredentials() 공개 메소드

Gets temporary credentials by performing a request to the server.
부터: 0.2.3
public getTemporaryCredentials ( ) : League\OAuth1\Client\Credentials\TemporaryCredentials
리턴 League\OAuth1\Client\Credentials\TemporaryCredentials

getTokenCredentials() 공개 메소드

Retrieves token credentials by passing in the temporary credentials, the temporary credentials identifier as passed back by the server and finally the verifier code.
부터: 0.2.3
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

get_response() 공개 메소드

Perform a GuzzleClient request, and get the response.
부터: 0.2.3
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

handleTemporaryCredentialsFail() 공개 메소드

Handle a failed response coming back when getting temporary credentials.
부터: 0.2.3
public handleTemporaryCredentialsFail ( Exception $e )
$e Exception

request() 공개 메소드

Perform a request (via GuzzleClient)
부터: 0.2.3
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

urlAuthorization() 공개 메소드

{@inheritDoc}
public urlAuthorization ( )

urlTemporaryCredentials() 공개 메소드

{@inheritDoc}

urlTokenCredentials() 공개 메소드

{@inheritDoc}
public urlTokenCredentials ( )

urlUserDetails() 공개 메소드

{@inheritDoc}
public urlUserDetails ( )

userDetails() 공개 메소드

{@inheritDoc}
public userDetails ( $data, League\OAuth1\Client\Credentials\TokenCredentials $tokenCredentials )
$tokenCredentials League\OAuth1\Client\Credentials\TokenCredentials

userEmail() 공개 메소드

{@inheritDoc}
public userEmail ( $data, League\OAuth1\Client\Credentials\TokenCredentials $tokenCredentials )
$tokenCredentials League\OAuth1\Client\Credentials\TokenCredentials

userScreenName() 공개 메소드

{@inheritDoc}
public userScreenName ( $data, League\OAuth1\Client\Credentials\TokenCredentials $tokenCredentials )
$tokenCredentials League\OAuth1\Client\Credentials\TokenCredentials

userUid() 공개 메소드

{@inheritDoc}
public userUid ( $data, League\OAuth1\Client\Credentials\TokenCredentials $tokenCredentials )
$tokenCredentials League\OAuth1\Client\Credentials\TokenCredentials

프로퍼티 상세

$authURLs 보호되어 있는 프로퍼티

protected $authURLs

$baseUri 보호되어 있는 프로퍼티

protected $baseUri

$response 공개적으로 프로퍼티

Guzzle\Http\Message\Response
public Guzzle\Http\Message\Response $response
리턴 Guzzle\Http\Message\Response

$response_code 공개적으로 프로퍼티

If a request was made, the response code will be stored here.
public string $response_code
리턴 string