Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Support to get reactions to message #79

Closed
ipimran opened this issue Jun 5, 2020 · 8 comments
Closed

Support to get reactions to message #79

ipimran opened this issue Jun 5, 2020 · 8 comments

Comments

@ipimran
Copy link

ipimran commented Jun 5, 2020

Is it possible to get reactions to message ?
Current response does not have any attributes which can indicate reaction to DM Message, web version shows message reactions and by which users.
This content request has to be indicated in payload or in url ?

@Mincka
Copy link
Owner

Mincka commented Jun 5, 2020

Maybe the content is already in the response. It's possible to check with --raw-output option.
But, how do you see it included in the text logs?
I think it could be very messy to include reactions in the log.

@ipimran
Copy link
Author

ipimran commented Jun 5, 2020

I don't see it in raw o/p either. Web version contains support_reactions=true in url query, tried same in post json payload, did not work.

@ipimran
Copy link
Author

ipimran commented Jun 10, 2020

Not feasible with current approach this flow is using. Found other ways to get that, along with more data. Thank You.

@ipimran ipimran closed this as completed Jun 10, 2020
@Mincka
Copy link
Owner

Mincka commented Jun 10, 2020

Maybe you can give details for others?

@ipimran
Copy link
Author

ipimran commented Jun 10, 2020

I attempted below request with all required headers and query params
https://api.twitter.com/1.1/dm/conversation/<conv_id>.json?query_params...

Response was having:
min , max ids, conversation_timeline , message entries, reactions, participant details, user mentions, hashtags , attachment details ... many more objects...

All this in a fine json, easy parsing, no more html/xml handling.

@Mincka
Copy link
Owner

Mincka commented Jun 10, 2020

Ah, the API yes.
Did you reach any limit while retrieving the messages from the conversations? Not more than 30 days or 3200 messages?

When I created this tool, this was limited to 200 messages using the API.

@ipimran
Copy link
Author

ipimran commented Jun 11, 2020

I think this is not a documented API ( I refer here )

My objective is little different. Not the complete dump.
But a periodic collector job (few times a day), and feed that to a processor.
Twitter DM APIs are not fetching group DMs (may be does not support yet).
Hence this this weird way.

@Mincka
Copy link
Owner

Mincka commented Jun 11, 2020

Ok, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants