I followed the steps for creating a bearer token for application-only authentication, and was able to successfully grab data from the newsfeed REST endpoint
However, using the same headers to GET https://ads-api.twitter.com/1/accounts results in
{
"errors": [
{
"code": "UNAUTHORIZED_ACCESS",
"message": "This request is not properly authenticated"
}
],
"request": {
"params": {}
}
}
Sample code in https://github.com/twitterdev/twitter-python-ads-sdk seems to imply that ACCESS_TOKEN and ACCESS_TOKEN_SECRET are also required. How to throw those into the mix?
What are all the headers required? What would a successful curl command look like, and what are the steps to get each one?
I’ve been digging through google and the docs site for hours, guidance would be so incredibly appreciated