documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Get conversation IDs

Open cage2 opened this issue 5 years ago • 2 comments

Hi!

in https://docs.joinmastodon.org/methods/timelines/conversations/ GET /api/v1/conversations

i have problem to understand the parameters max_id, since_id and min_id

are they referring to the ID of a conversation or ID of a status?

I ask this because in the method to delete or mark a conversation as read the ID is specified as a conversation ID.

I think the same should be made for the method to get conversations.

Bye! C.

cage2 avatar Apr 16 '20 18:04 cage2

The idea is you use GET conversations, then you cache the response. Marking/deleting is done with the conversation ID, not the status ID.

trwnh avatar Apr 16 '20 20:04 trwnh

On Thu, Apr 16, 2020 at 01:07:06PM -0700, trwnh wrote:

Hi!

Thank you for your reply. :)

The idea is you use GET conversations, then you cache the response. Marking/deleting is done with the conversation ID, not the status ID.

Yes, i think this is what i am actually doing in my code (or trying to do ;) ) the problem is that, in the aforementioned documentation, it is not clear (to me, at least) if the ID passed as value of 'min_id' 'since_id' etc. should be the ID of an entity conversation or the ID of an entity status. Based on your reply and on what i understood digging into the code (but if a know nothing about Ruby so i could easily be wrong) seems to me that the ID of a status is used. But if this is true it is not specified in the documentation and, in my opinion, it supposed to be.

Thank you again for your reply and for the software! :)

Bye! C.

cage2 avatar Apr 17 '20 13:04 cage2