200 error: missing username when logging in using Parse and LiveCode

安稳与你 提交于 2019-12-06 14:06:49

You have a handler setPostHeaders, which suggests that you need to use the POST instead of the GET method. If that's true, you need to change part of your script.

put urlEncode ( JSON_stringified ( tLoginA ) ) into tLogin
post tLogin to url "https://api.parse.com/1/login"
put the result into rslt // check for errors if not empty
put the urlResponse into myResponse // empty if error occurred

Provided that the parse.com part of your script is correct, this should work.

According to the docs: "send a GET request to the /1/login endpoint with username and password as URL-encoded parameters"

Try the following;

put "username=" & urlEncode("YourUser") & "&password=" & urlEncode("YourPass") into tLogin
get url ( "https://api.parse.com/1/login?" & tLogin )
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!