PHP 클래스 PayPal\Auth\Oauth\OAuthRequest

파일 보기 프로젝트 열기: paypal/sdk-core-php 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$POST_INPUT
$base_string for debug purposes
$parameters
$version

보호된 프로퍼티들

프로퍼티 타입 설명
$http_method
$http_url

공개 메소드들

메소드 설명
__construct ( $http_method, $http_url, $parameters = null )
__toString ( )
build_signature ( $signature_method, $consumer, $token )
from_consumer_and_token ( $consumer, $token, $http_method, $http_url, $parameters = null ) pretty much a helper function to set up the request
from_request ( $http_method = null, $http_url = null, $parameters = null ) attempt to build up a request from what was passed to the server
get_normalized_http_method ( ) just uppercases the http method
get_normalized_http_url ( ) parses the url and rebuilds it to be scheme://host/path
get_parameter ( $name )
get_parameters ( )
get_signable_parameters ( ) : string The request parameters, sorted and concatenated into a normalized string.
get_signature_base_string ( ) Returns the base string of this request
set_parameter ( $name, $value, $allow_duplicates = true )
sign_request ( $signature_method, $consumer, $token )
to_header ( $realm = null ) builds the Authorization: header
to_postdata ( ) builds the data one would send in a POST request
to_url ( ) builds a url usable for a GET request
unset_parameter ( $name )

비공개 메소드들

메소드 설명
generate_nonce ( ) util function: current nonce
generate_timestamp ( ) util function: current timestamp

메소드 상세

__construct() 공개 메소드

public __construct ( $http_method, $http_url, $parameters = null )

__toString() 공개 메소드

public __toString ( )

build_signature() 공개 메소드

public build_signature ( $signature_method, $consumer, $token )

from_consumer_and_token() 공개 정적인 메소드

pretty much a helper function to set up the request
public static from_consumer_and_token ( $consumer, $token, $http_method, $http_url, $parameters = null )

from_request() 공개 정적인 메소드

attempt to build up a request from what was passed to the server
public static from_request ( $http_method = null, $http_url = null, $parameters = null )

get_normalized_http_method() 공개 메소드

just uppercases the http method

get_normalized_http_url() 공개 메소드

parses the url and rebuilds it to be scheme://host/path

get_parameter() 공개 메소드

public get_parameter ( $name )

get_parameters() 공개 메소드

public get_parameters ( )

get_signable_parameters() 공개 메소드

The request parameters, sorted and concatenated into a normalized string.
public get_signable_parameters ( ) : string
리턴 string

get_signature_base_string() 공개 메소드

The base string defined as the method, the url and the parameters (normalized), each urlencoded and the concated with &.

set_parameter() 공개 메소드

public set_parameter ( $name, $value, $allow_duplicates = true )

sign_request() 공개 메소드

public sign_request ( $signature_method, $consumer, $token )

to_header() 공개 메소드

builds the Authorization: header
public to_header ( $realm = null )

to_postdata() 공개 메소드

builds the data one would send in a POST request
public to_postdata ( )

to_url() 공개 메소드

builds a url usable for a GET request
public to_url ( )

unset_parameter() 공개 메소드

public unset_parameter ( $name )

프로퍼티 상세

$POST_INPUT 공개적으로 정적으로 프로퍼티

public static $POST_INPUT

$base_string 공개적으로 프로퍼티

for debug purposes
public $base_string

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

protected $http_method

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

protected $http_url

$parameters 공개적으로 프로퍼티

public $parameters

$version 공개적으로 정적으로 프로퍼티

public static $version