PHP 클래스 XeroPHP\Remote\OAuth\Client

It's loosely based on the functionality of the SimpleOAuth class, which comes in the recommended php developer kit.
저자: Michael Calcinai
파일 보기 프로젝트 열기: calcinai/xero-php 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $config )
getAuthorizeURL ( ) : string
getSBS ( ) : string Get the Signature Base String for signing.
getToken ( )
getTokenSecret ( )
getVerifier ( )
setToken ( $token )
setTokenSecret ( $secret ) Populated during 3-legged auth
setVerifier ( $verifier )
sign ( Request $request ) This actually signs the request.

비공개 메소드들

메소드 설명
getCallback ( ) : string
getConsumerKey ( ) : string
getConsumerSecret ( ) : string
getNonce ( integer $length = 20 ) : string Generic nonce generating function for the request.
getOAuthParams ( ) : array Gets the skeleton Oauth parameter array.
getSignature ( ) : string Call the appropriate signature method's signing function.
getSignatureMethod ( ) : string
getSigningSecret ( ) : string This is the signing secret passed to HMAC and PLAINTEXT signing mechanisms.
getTimestamp ( ) : integer
resetOAuthParams ( ) Resets the instance for subsequent signing requests.

메소드 상세

__construct() 공개 메소드

public __construct ( array $config )
$config array OAuth config

getAuthorizeURL() 공개 메소드

public getAuthorizeURL ( ) : string
리턴 string

getSBS() 공개 메소드

This is basically just all params (including the generated oauth ones) ordered by key, then concatenated with the method and URL GET&https%3A%2F%2Fapi.xero.com%2Fapi.xro%2F2.0%2FContacts&oauth_consumer etc.
public getSBS ( ) : string
리턴 string

getToken() 공개 메소드

public getToken ( )

getTokenSecret() 공개 메소드

public getTokenSecret ( )

getVerifier() 공개 메소드

public getVerifier ( )

setToken() 공개 메소드

public setToken ( $token )

setTokenSecret() 공개 메소드

Populated during 3-legged auth
public setTokenSecret ( $secret )

setVerifier() 공개 메소드

public setVerifier ( $verifier )

sign() 공개 메소드

It can be called multiple times (for different requests) on the same instance of the client. This method puts it in the oauth params in the Authorization header by default.
public sign ( Request $request )
$request XeroPHP\Remote\Request Request to sign