Inconsistent response for Thread endpoint
Hi,
we currently have the following problem:
To get the data from a customers community we navigate from Category via Thread to the Messages. Unfortunately the Thread endpoints delivers on page1 other response than on the pages beyond.
First request (page 1)
response structure:
<threads>
<thread >
<messages>
<linear>
<message>
<message>
<message>
All messages have a date. So we can check which threads are new and we know if we should create a paging action to get all new post according to our check date.
Request page 2 (and further)
All parameters are the same. The only different is the page number.
Response structure:
<threads>
<thread>
<messages>
<linear />
In this response there is only the initialpost of the thread and no date of any newer posts. So we can’t do any date-check.
Our workaround is to use the endpoints Topics and Replies to get all data within a date to check.
Topics: /topics/recent?restapi.response_style=view&message_viewer.message_sort_order=thread_descending&message_viewer.topic_sort_order=last_post_date&restapi.session_key=
Replies: /replies/recent?restapi.response_style=view&message_viewer.message_sort_order=thread_descending&message_viewer.topic_sort_order=last_post_date&restapi.session_key=
But by using this workaround the request count and the runtime is increased by ~40%.
Are there any suggestions we can chance?
Thanks,
Martin
Oh, sorry. I forgot to mention the nested.page parameter -- set that to 1 when you do your topic message paging and you should start seeing those replies.