【发布时间】:2013-06-19 18:52:40
【问题描述】:
我需要使用 AngularJS 的 $http 调用 Parse RESTFUL API 来检索特定数据,Parse 允许我这样做的唯一方法是将“--data-urlencode where={"storeId":2}" 发送到卷曲调用。
curl -X GET -H "X-Parse-Application-Id:ApplicationId" -H "X-Parse-REST-API-Key: ApiKey" -G --data-urlencode 'where={"storeId":2}' @987654321@
请看这里:https://parse.com/docs/rest#queries-arrays
我可以使用终端返回 JSON 结果,但不能使用 $http()。有人知道我如何将“--data-urlencode where={"storeId":2}" 注入 AngularJS $http() 或 $resource() 方法吗?
见这里:http://docs.angularjs.org/api/ng.$http
【问题讨论】:
标签: javascript jquery parsing angularjs