PostmarkDotNet.PostmarkClient.GetInboundMessages C# (CSharp) Method

GetInboundMessages() public method

Return a listing of Inbound sent messages using the filters supported by the API.
public GetInboundMessages ( int count, int offset ) : PostmarkInboundMessageList
count int Number of messages to return per call. (required)
offset int Number of messages to offset/page per call. (required)
return PostmarkInboundMessageList
        public PostmarkInboundMessageList GetInboundMessages(int count, int offset)
        {
            return GetInboundMessagesImpl(null, null, null, null, count, offset);
        }

Same methods

PostmarkClient::GetInboundMessages ( string fromemail, int count, int offset ) : PostmarkInboundMessageList
PostmarkClient::GetInboundMessages ( string fromemail, string subject, int count, int offset ) : PostmarkInboundMessageList
PostmarkClient::GetInboundMessages ( string recipient, string fromemail, string subject, int count, int offset ) : PostmarkInboundMessageList
PostmarkClient::GetInboundMessages ( string recipient, string fromemail, string subject, string mailboxhash, int count, int offset ) : PostmarkInboundMessageList

Usage Example

        public void Can_get_inbound_messages_from_messages_api()
        {
            var postmark = new PostmarkClient(_serverToken);
            var inboundmessages = postmark.GetInboundMessages(10, 0);

            Assert.AreEqual(1, inboundmessages.InboundMessages.Count);
        }
All Usage Examples Of PostmarkDotNet.PostmarkClient::GetInboundMessages