Property | Type | Description | |
---|---|---|---|
$curlOptions |
Property | Type | Description | |
---|---|---|---|
$curl_handler | CURL request handler that can be reused | ||
$response | Holds the response from calling AWS's API |
Method | Description | |
---|---|---|
__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 |
Method | Description | |
---|---|---|
getCurlHandler ( ) : resource | Instantiate and setup CURL handler for sending requests. |
Method | Description | |
---|---|---|
__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 |
public clearParameters ( ) : SimpleEmailServiceRequest | ||
return | SimpleEmailServiceRequest | $this |
protected getCurlHandler ( ) : resource | ||
return | resource | $curl_handler |
public getParametersEncoded ( ) : array | ||
return | array | $params |
public getResponse ( ) : object | false | ||
return | object | false | | false |
public setVerb ( $verb ) : SimpleEmailServiceRequest | ||
return | SimpleEmailServiceRequest | $this |