【问题标题】:Raw Data Download in FlurryFlurry 中的原始数据下载
【发布时间】:2018-10-26 07:54:00
【问题描述】:

我正在尝试在 Flurry 中使用原始数据下载。(link)

所以,我正在使用 Postman 向 Flurry 的原始数据 api 发送 POST 请求。

curl -X POST \
  https://rawdata.flurry.com/pulse/v1/rawData \
  -H 'Accept: application/vnd.api+json' \
  -H 'Authorization: **programmtics user token** \
  -H 'Cache-Control: no-cache' \
  -H 'Content-Type: application/vnd.api+json' \
  -H 'Postman-Token: 9df055be-304a-4403-b300-603ec4c21e30' \
  -H 'cache-control: no-cache' \
  -d '{
    "data": 
    {
     "type": "rawData",
     "attributes": {
         "startTime": "1537833600000",
         "endTime": "1540425600000",
         "outputFormat": "JSON",
         "apiKey": "app token"
        }
    }
}

'

我得到这个错误:

{"code":401,"message":"Unauthorized"}

我做错了什么,是什么?

我的程序化用户启用了原始数据下载。

【问题讨论】:

    标签: flurry


    【解决方案1】:

    尝试交换

    -H 'Authorization: **programmtics user token**
    

    -H 'Authorization: Bearer **programmtics user token**
    

    【讨论】:

    • 我的错,没有注意到 Bearer 关键字。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-01-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多