Changeset View
Changeset View
Standalone View
Standalone View
externals/amazon-ses/ses.php
| Show First 20 Lines • Show All 562 Lines • ▼ Show 20 Lines | final class SimpleEmailServiceRequest | ||||
| /** | /** | ||||
| * CURL write callback | * CURL write callback | ||||
| * | * | ||||
| * @param resource &$curl CURL resource | * @param resource &$curl CURL resource | ||||
| * @param string &$data Data | * @param string &$data Data | ||||
| * @return integer | * @return integer | ||||
| */ | */ | ||||
| private function __responseWriteCallback(&$curl, &$data) { | private function __responseWriteCallback(&$curl, &$data) { | ||||
| if(!isset($this->response->body)) $this->response->body = ''; | |||||
| $this->response->body .= $data; | $this->response->body .= $data; | ||||
| return strlen($data); | return strlen($data); | ||||
| } | } | ||||
| /** | /** | ||||
| * Contributed by afx114 | * Contributed by afx114 | ||||
| * URL encode the parameters as per http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/index.html?Query_QueryAuth.html | * 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 | * 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 | ||||
| ▲ Show 20 Lines • Show All 155 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * Thrown by SimpleEmailService when errors occur if you call | * Thrown by SimpleEmailService when errors occur if you call | ||||
| * enableUseExceptions(true). | * enableUseExceptions(true). | ||||
| */ | */ | ||||
| final class SimpleEmailServiceException extends Exception { | final class SimpleEmailServiceException extends Exception { | ||||
| } | } | ||||
| No newline at end of file | |||||