Twitter广告API" GET / 1 / stats / accounts /:account_id"越权存取

时间:2017-05-16 06:33:02

标签: twitter postman

我正在使用邮递员APP通过TWITTER API访问GET请求。虽然我能够通过OAUTH 1.0通过所有其他GET和POST请求生成输出。但是当我通过" GET / 1 / stats / accounts /:account_id"发送请求时方法,它产生以下错误。

{
  "errors": [
    {
      "code": "UNAUTHORIZED_ACCESS",
      "message": "This request is not properly authenticated"
    }
  ],
  "request": {
    "params": {}
  }
}

我正在使用以下请求:" https://ads-api.twitter.com/1/stats/accounts/:18ce53yh9sw?entity_ids=88hjg&entity=CAMPAIGN&end_time=2017-05-14T17:00:00Z&granularity=HOUR&metric_groups=BILLING&placement=ALL_ON_TWITTER&start_time=2017-05-05T15:00:00Z"

这是获取广告系列级数据的最重要的GET请求。任何其他方式可能会有所帮助。

更新:

以下请求适用于https://ads-api.twitter.com/1/accounts/:account_id

{
  "request": {
    "params": {}
  },
  "data": [
    {
      "name": "Wadi.com",
      "business_name": null,
      "timezone": "Asia/Riyadh",
      "timezone_switch_at": "2013-05-21T21:00:00Z",
      "id": "18ce53yh9sw",
      "created_at": "2015-03-12T07:33:09Z",
      "salt": "0f034423fa35f95e8efc844a25c4d7a3",
      "updated_at": "2017-05-17T06:03:58Z",
      "business_id": null,
      "approval_status": "ACCEPTED",
      "deleted": false
    }
  ],
  "data_type": "account",
  "total_count": 1,
  "next_cursor": null
}

此致 Shree Kant

0 个答案:

没有答案