【问题标题】:PARSE Rest API curl command to get data from back4app application解析 Rest API curl 命令以从 back4app 应用程序获取数据
【发布时间】:2018-11-29 05:57:32
【问题描述】:

我试图在特定时间范围内输出我的安装 ID,但我的 back4app.com 应用程序上的 REST API 通过 cURL 返回了 {"code":1,"message":"Internal server error."}

我想知道我的代码是否有问题,因为这个例子对我有用:

curl -k -X GET \
-H "X-Parse-Application-Id: shsAUNbSadstestuMAMga" \
-H "X-Parse-Master-Key: mvRKtestQ7H" \
-G \
--data-urlencode 'where={

"createdAt":{
"$gte":{"__type":"Date","iso":"2018-11-28T00:00:01.274Z"}
}

}' \
--data-urlencode 'limit=20000000000000000000000' \
https://parseapi.back4app.com/classes/_Installation

但是当我包含设备类型时,它对我不起作用:

curl -k -X GET \
-H "X-Parse-Application-Id: shsAUNbSadstestuMAMga" \
-H "X-Parse-Master-Key: mvRKtestQ7H" \
-G \
--data-urlencode 'where={

"deviceType":{"ios"},

"createdAt":{
"$gte":{"__type":"Date","iso":"2018-11-28T00:00:01.274Z"}
}

}' \
--data-urlencode 'limit=20000000000000000000000' \
https://parseapi.back4app.com/classes/_Installation

【问题讨论】:

    标签: json rest parse-platform back4app


    【解决方案1】:

    改为:

    "deviceType":{"ios"},
    

    试试看:

    "deviceType":"ios",
    

    【讨论】:

      猜你喜欢
      • 2022-07-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-18
      • 1970-01-01
      • 2015-06-28
      • 2016-03-25
      • 1970-01-01
      相关资源
      最近更新 更多