I use HostM for livecode hosting. can you give me example how to translate curl form parsepaltfom to livecode server code.
Code: Select all
curl -X POST \
-H "X-Parse-Application-Id: APPLICATION_ID" \
-H "X-Parse-REST-API-Key: REST_API_KEY" \
-H "X-Parse-Revocable-Session: 1" \
-H "Content-Type: application/json" \
-d '{"username":"cooldude6","password":"p_n7!-e8","phone":"415-392-0202"}' \
https://YOUR.PARSE-SERVER.HERE/parse/users
Code: Select all
<?lc
get shell(curl -X POST \
-H "X-Parse-Application-Id: GrktQDet4zmzA4z0gxf1ygPhGLXUErPQPnUuQiFNeZ" \
-H "X-Parse-REST-API-Key: ROi2aFXVAZkbEyrDOsXmXPZgAGrQneFUPMzQXFhzNx" \
-H "X-Parse-Revocable-Session: 1" \
-H "Content-Type: application/json" \
-d '{"username":"cooldude6","password":"p_n7!-e8","phone":"415-392-0202"}' \
https://pg-app-13t3b9qqzidvx36sygwz74dqddly89iobjp5.scalabl.cloud/1/classes/_User)
?>
Code: Select all
file "/home/ua856198/public_html/blastblast.com/api.lc"
row 3, col 17: Function: separator is not a ',' (POST)
row 3, col 17: shell: bad parameter (POST)
row 3, col 17: Expression: bad function (POST)
row 3, col 17: get: bad expression (POST)
row 3, col 17: script: bad statement (POST)