PHP 클래스 SimpleEmailServiceRequest

파일 보기 프로젝트 열기: daniel-zahariev/php-aws-ses 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$curlOptions

보호된 프로퍼티들

프로퍼티 타입 설명
$curl_handler CURL request handler that can be reused
$response Holds the response from calling AWS's API

공개 메소드들

메소드 설명
__construct ( string $ses, string $verb = 'GET' ) : void Constructor
__destruct ( ) Destroy any leftover handlers
clearParameters ( ) : SimpleEmailServiceRequest Clear the request parameters
getParametersEncoded ( ) : array Get the params for the reques
getResponse ( ) : object | false Get the response
setParameter ( string $key, string $value, boolean $replace = true ) : SimpleEmailServiceRequest Set request parameter
setVerb ( $verb ) : SimpleEmailServiceRequest Set HTTP method

보호된 메소드들

메소드 설명
getCurlHandler ( ) : resource Instantiate and setup CURL handler for sending requests.

비공개 메소드들

메소드 설명
__customUrlEncode ( string $var ) : string Contributed by afx114 URL encode the parameters as per http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/index.html?Query_QueryAuth.html PHP's rawurlencode() follows RFC 1738, not RFC 3986 as required by Amazon. The only difference is the tilde (~), so convert it back after rawurlencode See: http://www.morganney.com/blog/API/AWS-Product-Advertising-API-Requires-a-Signed-Request.php
__getSignature ( string $string ) : string Generate the auth string using Hmac-SHA256
__responseWriteCallback ( resource &$curl, string &$data ) : integer CURL write callback

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( string $ses, string $verb = 'GET' ) : void
$ses string The SimpleEmailService object making this request
$verb string HTTP verb
리턴 void

__destruct() 공개 메소드

Destroy any leftover handlers
public __destruct ( )

clearParameters() 공개 메소드

Clear the request parameters
public clearParameters ( ) : SimpleEmailServiceRequest
리턴 SimpleEmailServiceRequest $this

getCurlHandler() 보호된 메소드

Instance is cashed in $this->curl_handler
protected getCurlHandler ( ) : resource
리턴 resource $curl_handler

getParametersEncoded() 공개 메소드

Get the params for the reques
public getParametersEncoded ( ) : array
리턴 array $params

getResponse() 공개 메소드

Get the response
public getResponse ( ) : object | false
리턴 object | false | false

setParameter() 공개 메소드

Set request parameter
public setParameter ( string $key, string $value, boolean $replace = true ) : SimpleEmailServiceRequest
$key string Key
$value string Value
$replace boolean Whether to replace the key if it already exists (default true)
리턴 SimpleEmailServiceRequest $this

setVerb() 공개 메소드

Set HTTP method
public setVerb ( $verb ) : SimpleEmailServiceRequest
리턴 SimpleEmailServiceRequest $this

프로퍼티 상세

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

public static $curlOptions

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

CURL request handler that can be reused
protected $curl_handler

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

Holds the response from calling AWS's API
protected $response