Json 如何在没有数据url编码的情况下解释解析RESTAPI?
对于Prase REST API,我们可以Json 如何在没有数据url编码的情况下解释解析RESTAPI?,json,curl,parse-platform,Json,Curl,Parse Platform,对于Prase REST API,我们可以 curl -X GET \ -H "X-Parse-Application-Id: Y6i5v9PQOAAGlnKnULJJu5odT72ffSCpOnqqPhx9" \ -H "X-Parse-REST-API-Key: T6STkwY6XqVMySTbqeSZfmli3naZZK9KoxnAcEhR" \ -G \ --data-url-encode 'where={"username":"someUser"}' \ https
curl -X GET \
-H "X-Parse-Application-Id: Y6i5v9PQOAAGlnKnULJJu5odT72ffSCpOnqqPhx9" \
-H "X-Parse-REST-API-Key: T6STkwY6XqVMySTbqeSZfmli3naZZK9KoxnAcEhR" \
-G \
--data-url-encode 'where={"username":"someUser"}' \
https://api.parse.com/1/users
现在,我尝试发送请求时不使用--data url encode
,而是将相关查询附加到urlhttps://api.parse.com/1/users
,我该怎么办
我试过了
curl -X GET \
-H "X-Parse-Application-Id: Y6i5v9PQOAAGlnKnULJJu5odT72ffSCpOnqqPhx9" \
-H "X-Parse-REST-API-Key: T6STkwY6XqVMySTbqeSZfmli3naZZK9KoxnAcEhR" \
-G \
https://api.parse.com/1/users?where={"username":"someUser"}
但它不起作用
谢谢。首先将where={“username”:“someUser”}
编码到where%3D%7B%22username%22%3A%22someUser%22%7D
,然后
curl -X GET \
-H "X-Parse-Application-Id: Y6i5v9PQOAAGlnKnULJJu5odT72ffSCpOnqqPhx9" \
-H "X-Parse-REST-API-Key: T6STkwY6XqVMySTbqeSZfmli3naZZK9KoxnAcEhR" \
-G \
https://api.parse.com/1/users?where%3D%7B%22username%22%3A%22someUser%22%7D
工作