Good Day
I have successfully subscribed to my webhooks on our server and I’m planning to delete the said subscription and resubscribe on another server. I execute the said command on a twurl registered server but it returns a command of:
/usr/local/rvm/wrappers/ruby-2.4.9/twurl -X DELETE “/1.1/account_activity/all/:env/subscriptions/webhookid.json”
result:
errors":[{“code”:32,“message”:“Could not authenticate you.”}]}
screenshot:
my server was authenticated and most of the twurl commands are running perfectly
also tried the PHP script that generates oath key but I still get the same result
hope you can help me thanks!
If it is bad authentication (error 32) before it hits the webhook, then you should check to make sure that you have done the following. This information and more is located in our troubleshooting doc:
- you are using the proper auth keys that you pulled from the Twitter app that is designated as your AAAPI dev environment. Since this endpoint requires user auth, you will need to use both your consumer keys and access tokens.
- you have properly generated the
oauth nonce , oauth_signature , and oauth_timestamp for your request.
If you have properly set up your Twitter app, then chances are that you aren’t handling number two properly. If so, please consider using an oauth library (example), one of our github repositories (account-activity-dashboard or twitter-webhook-boilerplate-node), using Insomnia, or try using Twurl.
system
Closed
#3
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.