Get details for a specific inbound message.
public getInboundMessageDetails ( integer $id ) : Postmark\Models\DynamicResponseModel | ||
$id | integer | The ID of the message for which we went to get details. |
return | Postmark\Models\DynamicResponseModel |
function testClientCanGetInboundMessageDetails() { $tk = parent::$testKeys; $client = new PostmarkClient($tk->READ_SELENIUM_TEST_SERVER_TOKEN, $tk->TEST_TIMEOUT); $retrievedMessages = $client->getInboundMessages(10); $baseMessageId = $retrievedMessages->InboundMessages[0]["MessageID"]; $message = $client->getInboundMessageDetails($baseMessageId); $this->assertNotEmpty($message); }