messages.json newer_than issue

%3CLINGO-SUB%20id%3D%22lingo-sub-2057505%22%20slang%3D%22en-US%22%3Emessages.json%20newer_than%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2057505%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20to%20all%2C%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20an%20issue%20with%20the%20API%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdeveloper.yammer.com%2Fdocs%2Fmessagesjson%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Emessages.json%2C%20w%3C%2FA%3Ehen%20I%20require%20the%20messages%20newest%20of%20the%20message_id%20indicated%3A%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CSPAN%3Ehttps%3A%2F%2Fwww.yammer.com%2Fapi%2Fv1%2Fmessages.json%3Fnewer_than%3D%3CLATEST_MSG_ID%3E%3C%2FLATEST_MSG_ID%3E%3C%2FSPAN%3E%3C%2FPRE%3E%3CP%3E%3CSPAN%3EThe%20API%20does%20not%20give%20me%20the%20next%2020%20messages%20but%20the%2020%20most%20recent%20messages%20and%20if%20%22latest_msg_id%22%20is%20in%20those%2020%20messages%2C%20then%20API%20gives%20me%20fewer%20messages%2C%20ie%20those%20that%20are%20after%20the%20indicated%20message.%20And%20that%20is%20OK%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CSTRONG%3EBut%3C%2FSTRONG%3E%20if%20there%20are%20%3CSTRONG%3Emore%3C%2FSTRONG%3E%20than%2020%20message%20between%20the%26nbsp%3Bindicated%20message%20and%20the%20newest%20message%2C%20the%20API%20%3CU%3Eskips%3C%2FU%3E%20(ignores)%20all%20the%20message%20between%20the%20indicated%20and%20the%20last%2020%20messages.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20think%20that%20this%20is%20not%20a%20correct%20response%20of%20the%20API.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EDo%20You%20don't%20think%20that%20this%20is%20an%20issue%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2057505%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPI%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eyammer%20issue%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

Hi to all, 

I've an issue with the API messages.json, when I require the messages newest of the message_id indicated: 

https://www.yammer.com/api/v1/messages.json?newer_than=<latest_msg_id>

The API does not give me the next 20 messages but the 20 most recent messages and if "latest_msg_id" is in those 20 messages, then API gives me fewer messages, ie those that are after the indicated message. And that is OK

But if there are more than 20 message between the indicated message and the newest message, the API skips (ignores) all the message between the indicated and the last 20 messages.

 

I think that this is not a correct response of the API.

Do You don't think that this is an issue?

0 Replies