We have Elevated privileges for our project.
But despite this, when I hit a 1.1 endpoint, like so:
curl --request GET --url {{base_url}}/1.1/account_activity/webhooks.json --header “Authorization: Bearer {{bearer_token}}”
I get an error like this:
{“errors”:[{“code”:32,“message”:“Could not authenticate you.”}]}%
According to my dashboard I should have 1.1 access.
I also have a sandbox dev environment running (which says I have access to the Account Activity API).
Am I wrong in thinking I can access the Account Activity API at my current level of access (Elevated)? The Dashboard seems to suggest I have the appropriate level of access.
Am I doing something else wrong?
I carefully followed the instructions and samples in the API documents. (Generated keys, etc.)
I can’t seem to get the API to work through Postman, Curl, or through my server (written in Go using the standard library).
I tried using the Curl commands from Twitter’s documentation directly, and they give the same error. I don’t think using the project you linked will result in anything different.
Which exact curl commands in the docs? Running:
this? I would make sure that the variables are actually properly set, for base_url and bearer_token - or try without using variable substitution at all. Also this URL path doesn’t match any of the endpoints on Premium Account Activity API | Docs | Twitter Developer Platform - is this the endpoint you are looking for? (Modify with your own Bearer token)
curl --request GET --url "https://api.twitter.com/1.1/account_activity/all/webhooks.json" --header "authorization: Bearer AAAaaaa...bbb"
2 Likes
system
closed
#5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.