2016-12-14 5 views
0

REST APIで解析するために、「GET /解析/ 1 /ログインできませんか?ユーザー名= user123 &パスワード= parse123」という応答が常に得られます。以下は私のコードですREST APIを使用してサーバーを解析する

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); 
    }); 

私は何も欠けていますか?

+0

を削除しますか? Parse.comサーバーは2017年1月末に閉鎖されます。 – Robert

+0

@Robert:コードを慎重に見なければならないかもしれません。それは私自身のサーバーです。 – shivaP

+0

'api.parse.com'はあなた自身のサーバーですか? – Robert

答えて

1

あなたのgetのURLが間違っているためです。あなたが死んだ馬に乗って開始なぜあなたのURLが

yourdomain/parse/login 

なく

yourdomain/parse/1/login 

あるべき構文解析サーバと1

+0

@ shivaPよろしくお願いします。 – Cliffordwh

関連する問題