-
I tried to register webhook simply by using:
Request fails. I tried with I might not know how to do this right... Wonder if it's bundled within the lib, but I can't find it within examples. Useful links: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi, No, Account Activity API is not wrapped by specific methods. // use .v1, because API prefix is https://api.twitter.com/1.1
// >>> Don't forget to add the .json at the end of the URL !
// >>> Give parameters in body, not in URL!
const webhook = await client.v1.post('account_activity/all/dev/webhooks.json', { url: 'http://46aa-178-149-218-192.ngrok.io/webhook/twitter' }) |
Beta Was this translation helpful? Give feedback.
-
I found an alternative lib for activity events only. It's unfortunate that it's not all covered by a single lib, but this will do. Thanks @alkihis and keep up the good work! |
Beta Was this translation helpful? Give feedback.
Hi,
No, Account Activity API is not wrapped by specific methods.
You are making 2 little mistakes in your request: