public getBounceDump ( integer $id ) : string | ||
$id | integer | The ID of the bounce for which we want a dump. |
return | string |
function getBounceDump($id)
{
return new DynamicResponseModel($this->processRestRequest('GET', "/bounces/{$id}/dump"));
}
function testClientCanGetBounceDump() { $tk = parent::$testKeys; $client = new PostmarkClient($tk->READ_INBOUND_TEST_SERVER_TOKEN, $tk->TEST_TIMEOUT); $bounces = $client->getBounces(10, 0); $id = $bounces->Bounces[0]['ID']; $dump = $client->getBounceDump($id); $this->assertNotEmpty($dump); }