Parse.com. Would somebody be prepared to show to use the Query Constraints? my GET function works without constraints…
eg a Corona version of the example on the Parse REST API docs would be great!
curl -X GET \
-H "X-Parse-Application-Id: MyID
-H "X-Parse-REST-API-Key: MyKey
-G \
–data-urlencode ‘where={“playerName”:“Sean Plott”,“cheatMode”:false}’ \
https://api.parse.com/1/classes/GameScore
I’ve tried many, many, many, many combinations including adding the data in params or in the URL, and with or without the urlencoding
Here’s an example of one combination, note my data is a simple AccessKey checking accessKey, myAppName against objects in the classes LoginVerif
local function verifyAccessKey(accessKey,myAppname)
headers[“Content-Type”] = “application/json”
local query = urlencode(value.encode ({“where” = {[“AccessKey”]= accessKey} }) )
params.body = nil
request = “loginverif” --my code in the listener
network.request( baseUrl … class.LoginVerif… query, “GET”, networkListener, params)
end
Parse.verifyAccessKey = verifyAccessKey
Also nor I’m not using the example USER login, I’m verifying access to an App via an AccessKey for a business service App.
Any help VERY much appreciated…
[import]uid: 137150 topic_id: 36453 reply_id: 336453[/import]