12-30-2015 10:51 AM
Hello all,
I am working on an app to retrieve a list of messages in a users' unity inbox. I am using the ReST .net Unity SDK in C#. When I call the GetMessages method of the UserMessage class, I am specifying the page that I want returned and the number of messages per page that I want returned.
No matter what parameters I specify, GetMessages returns all the messages.
Example:
var res = UserMessage.GetMessages(connectionServerInbox, ObjectId, out oMessages, 1, 5, MessageSortOrder.NEWEST_FIRST, MessageFilter.None, MailboxFolder.inbox);
According to the API in this example oMessages should contain the first 5 messages for the user that I selected. Instead it has all 27 messages.
Any insight to what I'm doing wrong would be appreciated.
Regards,
John B.
01-19-2016 07:10 AM
While I can't give you a solution.. the first thing I usually do if something doesn't work as expected is fire up fiddler, and look at what request is really sent over the wire, then compare that with the definition of the API. Extraction sounds like a GET so that's something you can even replay in the browser.
01-19-2016 07:21 AM
Thanks Stephan,
I will give that a try.
Regards,
John
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide