Skip to content

Does it support Twitter's webhooks and activity API? #204

Answered by alkihis
dvlden asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

No, Account Activity API is not wrapped by specific methods.
You are making 2 little mistakes in your request:

// 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' })

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@dvlden
Comment options

Answer selected by dvlden
Comment options

You must be logged in to vote
5 replies
@alkihis
Comment options

alkihis Mar 1, 2022
Collaborator

@dvlden
Comment options

@winstxnhdw
Comment options

@dvlden
Comment options

@winstxnhdw
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants