我正在使用,我希望得到对象总数的计数。通过传入count=1参数,我尝试在命令行上使用curl命令,如下所示:
curl -X GET
-H "X-Parse-Application-Id: <App ID Here>"
-H "X-Parse-REST-API-Key: <Rest Key Here>"
https://api.parse.com/1/classes/Restaurant
--data-urlencode 'count=0'但我得到了所有的结果。在这种可能的情况下,使用Parse.com或者我将不得不使用代码并依赖于客户端代码?
发布于 2015-03-21 13:36:05
如果您不想获得所有结果,可以添加限制参数,如下所示:
curl -X GET
-H "X-Parse-Application-Id: <App ID Here>"
-H "X-Parse-REST-API-Key: <Rest Key Here>"
https://api.parse.com/1/classes/Restaurant
--data-urlencode 'count=1'
--data-urlencode 'limit=0'https://stackoverflow.com/questions/29183069
复制相似问题