Hello!
We enable Account activity API sandbox for our app with id 9185918. Then we’ve tried to make requests to create new webhook and to get the list of active webhook. Nevertheless, we were unable to do it because of auth errors.
Example request for creating new webhook
curl 'https://api.twitter.com/1.1/account_activity/webhooks.json?url=https://rc.semrush.net/wh' \
-X 'POST' \
-H 'authorization: OAuth oauth_consumer_key="<OUR_KEY>", oauth_nonce="GENERATED", oauth_signature="GENERATED", oauth_signature_method="HMAC-SHA1", oauth_timestamp="GENERATED", oauth_token="<OUR_TOKEN>", oauth_version="1.0"' \
The result
{"errors":[{"code":215,"message":"Bad Authentication data."}]}
Example request for getting the list of active webhooks
curl --request GET --url https://api.twitter.com/1.1/account_activity/webhooks.json --header 'authorization: Bearer <OUR_TOKEN>'
The result
{"errors":[{"code":32,"message":"Could not authenticate you."}]}
We’ve tried to regenerate all the keys and tokens, but faced the same issues. Could you please help?
Thank you,
Artem