I tried to access twitter ads API using my application and twurl. But I can’t get account details, it gives unauthorized access error. Please find my bellow steps for twurl.
1). first I used my consumer key and consumer secret with following command.
twurl authorize --consumer-key xxxxxxxxxxxxxxxxxx --consumer-secret xxxxxxxxxxxxxxxxxxxxxxx
it authenticated successfully.
2). Then I used following command to get account details.
twurl -H “https://ads-api.twitter.com” “/1/accounts/”
But it fails and display following error message
{“errors”:[{“code”:“UNAUTHORIZED_ACCESS”,“message”:“This request is not properly
authenticated”}],“request”:{“params”:{}}}
How can I solve this ? your help is highly appreciate.
Than you …
My App ID : 12818655