我需要使用檢索特定數據AngularJS的$ HTTP調用解析RESTful API,因此解析允許我做它處於「--data-進行urlencode發送到哪裏的唯一途徑= { 「STOREID」:2}」來形成捲曲呼叫。
curl -X GET -H "X-Parse-Application-Id:ApplicationId" -H "X-Parse-REST-API-Key: ApiKey" -G --data-urlencode 'where={"storeId":2}' https://api.parse.com/1/classes/Stores/
在這裏看到:https://parse.com/docs/rest#queries-arrays
我能夠返回使用終端JSON結果,但不能含有$ HTTP()。任何人都知道我可以注入 「--data-進行urlencode其中= {」 STOREID 「:2}」 到AngularJS $ HTTP()或$資源()方法?
在這裏看到:http://docs.angularjs.org/api/ng.$http
謝謝你這麼多kmoerman。這解決了我的問題! –
歡迎您。 – kmoerman