저는 Intel XDK에 처음 접했고 비디오 튜토리얼 Using Services Datafeed in App Designer에서 이와 같은 매우 간단한 응용 프로그램을 만들려고합니다.Intel XDK : Parse.com integration "Unauthorized"
하지만 Rotten Tomatoes의 특정 서비스 대신 Parse.com에있는 데이터베이스를 통합하려고합니다. 이를 위해 내가이 비디오 자습서 다음 : "새 서비스 통합을"
"[HTTPS] : //software.intel.com/en-us/html5/videos/integrating-a-new-service"
그리고 응답은 다음과 같습니다. "Unauthorized".
그런 다음 인텔의 HTML5 개발 포럼에서 나온 this answer 만 있습니다. 나는 이것으로 아무것도 얻지 못했습니다. 응답은 다시 : "Unauthorized"입니다.
그리고는 지금은 혼란 스러워요와 실망 때문에 :
- 나는 나 대신 다른 누군가 싶지 않아
- 내 자신의 도움을 다른 리소스를 찾을 수는 없지만,
- 전체 예제가 없으면 어떻게 배우려고합니까?
내 코드는 지금 영상이와 유사합니다
{
"MyService": {
"name": "The external service",
"description": "A great API with an external service",
"dashboardUrl": "https://parse.com",
"auth": "key",
"signature": "apiSecret"
}
}
에서 MyService.js
(function (credentials) {
var exports = {};
exports.ServiceObject = function(params) {
var url = 'https://api.parse.com/1/classes/ServiceObject';
params['apiKey'] = credentials.apiKey;
url = url + '?' + $.param(params);
return $.ajax({url: url, type: 'GET'});
};
return exports;
})
apiconfig.json에서 "새 서비스 통합"
그리고 에서 MyService.json
{
"endpoints": [
{
"name": "classes",
"dashboardUrl": "https://parse.com/docs/rest",
"methods": [
{
"MethodName": "ServiceObject",
"Synopsis": "Show the entries",
"parameters": [
{
"Name": "objectId",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "The object ID"
},
{
"Name": "text",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "The text"
}
]
}
]
}
]
}
누군가 나를 더 많이 도와 줄 수 있습니까? 어떤 방법 으로든 그가 가장 잘 생각합니다. 다음과 같은 답변을 한 후
, 해결 내 문제 :
는 당신에게 모든편집을 감사드립니다. 보정 후
"MyService.js"파일은 다음과 같습니다 user1736947 @
(function (credentials) {
var exports = {};
exports.ServiceObject = function(params) {
var url = 'https://api.parse.com/1/classes/ServiceObject';
return $.ajax({
url : url,
headers : {
'X-Parse-Application-Id' : credentials.apiKey,
'X-Parse-REST-API-Key' : credentials.apiSecret
}
});
};
return exports;
})
: 당신의 대답은 내가 필요 정확히, 간결하고 정확했다. 앞으로도 많은 도움이 필요할 것입니다. 그러나 지금은 당신에게 감사드립니다. 대단히 감사합니다.
[이] (http://stackoverflow.com/questions/25854683/intel-xdk-listview-sort/25857916#25857916)에 대한 제안 사항이 있으십니까? – GSav