GetOutboundMessages() 공개 메소드

Return a listing of Outbound sent messages using the filters supported by the API.
public GetOutboundMessages ( int count, int offset ) : PostmarkOutboundMessageList
count int Number of messages to return per call. (required)
offset int Number of messages to offset/page per call. (required)
리턴 PostmarkOutboundMessageList
        public void Can_retrieve_outbound_messages_from_messages_api()
        {
            var postmark = new PostmarkClient(_serverToken);
            var messages = postmark.GetOutboundMessages(3, 0);

            Assert.AreEqual(3, messages.Messages.Count);
        }
        public void Can_get_outbound_message_details_and_dump_by_messages_id()
        {
            var postmark = new PostmarkClient(_serverToken);
            var messages = postmark.GetOutboundMessages(1, 0);

            var messagedetails = postmark.GetOutboundMessageDetail(messages.Messages.FirstOrDefault().MessageID);

            var messagedump = postmark.GetOutboundMessageDump(messages.Messages.FirstOrDefault().MessageID);

            Assert.IsNotNull(messagedetails.Body);
            Assert.IsNotNull(messagedump.Body);
        }