[英]Parse server login using REST API
I'm trying to sign in with parse by REST API, always getting response as "Cannot GET /parse/1/login?username=user123&password=parse123") 404 . 我正在尝试通过REST API登录以进行解析,始终以“无法GET / parse / 1 / login?username = user123&password = parse123”) 404的形式获取响应。 Below is my code 下面是我的代码
var auth_data={
"Content-Type": "application/json",
"X-Parse-Revocable-Session": "1",
"X-Parse-Application-Id": "xxxxxxxxxxxxx",
"X-Parse-REST-API-Key": "xxxxxxxxxxxxxxx",
"X-Parse-Master-Key": "xxxxxxxxxx"
}
var res = $http.get('https://subodha.indiearts.in/parse/1/login?username=user123&password=parse123', auth_data);
res.then(function (response) {
$log.info(response);
}).catch(function (error) {
$log.error(error);
});
Am I missing anything?? 我错过了什么吗?
This is becasue your get
url is wrong. 这是因为您的get
网址错误。 With parse-server your url should be 使用parse-server时,您的网址应为
yourdomain/parse/login
and not 并不是
yourdomain/parse/1/login
Remove the 1 删除1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.