twitter / twurl

OAuth-enabled curl for the Twitter API
https://developer.twitter.com
MIT License
1.8k stars 301 forks source link

Forbidden 200 error when posting to webhook.json #177

Open paololazzari opened 2 years ago

paololazzari commented 2 years ago

I have created an application which I want to use so that whenever my Twitter account is mentioned, an HTTPS endpoint is hit. The app is deployed in a Production environment.

I authenticated successfully via the PIN-based authentication process:

$ twurl authorize --consumer-key xxx --consumer-secret xxx
Authorization successful

and I can list the tweets on my timeline successfully:

$ twurl /1.1/statuses/home_timeline.json

however, when I try to register the endpoint following the documentation I get a Forbidden error message:

$ twurl -X POST "/1.1/account_activity/all/Production/webhooks.json?url=https://7hyz3gryvlegrmurud7vpz6j7u0goqkf.lambda-url.eu-west-2.on.aws"
{"errors":[{"code":200,"message":"Forbidden."}]}
paololazzari commented 2 years ago

@andypiper any ideas?