Method | Description | |
---|---|---|
__construct ( mailjet\Request $request, Psr\Http\Message\ResponseInterface $response ) | Construct a Mailjet response | |
getBody ( ) : array | Status Getter return the entire response array | |
getCount ( ) : null | integer | Count getter return the resulting array size | |
getData ( ) : array | Data Getter The data returned by the mailjet call | |
getReasonPhrase ( ) : null | string | Error Reason getter return the resulting error message | |
getStatus ( ) : integer | Status Getter return the http status code | |
getTotal ( ) : integer | Total getter return the total count of all results | |
success ( ) : boolean | Success getter |
Method | Description | |
---|---|---|
decodeBody ( string $body ) : object | From http://stackoverflow.com/questions/19520487/json-bigint-as-string-removed-in-php-5-5 |
public __construct ( mailjet\Request $request, Psr\Http\Message\ResponseInterface $response ) | ||
$request | mailjet\Request | Mailjet actual request |
$response | Psr\Http\Message\ResponseInterface | Guzzle response |
protected decodeBody ( string $body ) : object | ||
$body | string | The mailjet response as string |
return | object | Object representing the mailjet response |
public getReasonPhrase ( ) : null | string | ||
return | null | string |