POSTMAN gets UNAUTHORIZED_ACCESS when calling https://ads-api.twitter.com/1/stats/accounts/<acc-id>


#1

When using POSTMAN to make this call:
https://ads-api.twitter.com/1/stats/accounts/18ce54cq4k3?entity_ids=18ce54cq4k3&entity=ACCOUNT&start_time=2016-07-13T16:00:00Z&end_time=2016-07-20T17:00:00Z&granularity=TOTAL&metric_groups=ENGAGEMENT&placement=ALL_ON_TWITTER

Using OAUTH 1.0, I am getting:
{
“errors”: [
{
“code”: “UNAUTHORIZED_ACCESS”,
“message”: “This request is not properly authenticated”
}
],
“request”: {
“params”: {}
}
}

The same call goes through with Twurl!!!
Also, this call goes through with POSTMAN: https://ads-api.twitter.com/1/accounts

Why?


#2

Hi, @bpirvali. We’ve reproduced the call using twurl and can confirm, as you mentioned, that the call goes through (200). Good to know the Ads API is working as expected.

In terms of POSTMAN, since it’s not a Twitter tool, we can’t say why it’s not working. It may have to do with POSTMAN not properly implementing OAuth 1.0a.

Thanks!