rowntreerob

curl access on parse.com using nested params

Dec 10th, 2015
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. curl access to parse using nested param object
  2.  
  3. lib$ curl -X GET -H "X-Parse-Application-Id: dDgpCbCGWqIojuPcym19Ov6vEkmBH8Nk90P3qovv" -H "X-Parse-Master-Key: 16L0P" -d '{"limit":"10","order":"-createdAt","include":["requestedRole","requestedBy","ownedBy"],"where":{"createdBy":{"__type":"Pointer","className":"_User","objectId":"0faZFdEw9x"}}}' https://api.parse.com/1/classes/ChannelRequest
  4.  
  5. {"results":[{"ACL":{"*":{"read":true,"write":true}},"createdAt":"2015-12-01T01:38:04.613Z","objectId":"2ls88e3UpZ","ownedBy":{"__type":"Pointer","className":"_User","objectId":"0faZFdEw9x"},"requestedBy":[{"__type":"Pointer","className":"_User","objectId":"6bKV2b9mSO"}],"requestedRole":{"__type":"Pointer","className":"_Role","objectId":"EgdpmUfFSi"},"updatedAt":"2015-12-01T01:46:09.679Z"}]}
Advertisement
Add Comment
Please, Sign In to add comment