Can I use the jQuery $.ajax() method instead of the provided sample code? For some reason I am attempting this but it is not working:
$(function() {
alert("Hi");
$.ajax({
url: "http://private-174c-themoviedb.apiary.io/3/search/movie?api_key=[pastedMyApiKeyHere]",
contentType: "application/json",
type: "GET",
crossDomain: true,
success: function(data) {
alert("It worked");
},
error: function(err) {
alert(JSON.stringify(err));
}
});
});
Any insight would be greatly appreciated. Thank you!
찾으시는 영화나 TV 프로그램이 없나요? 로그인 하셔서 직접 만들어주세요.
이 항목을 평가하거나 목록에 추가할까요?
회원이 아닌가요?
Travis Bell님의 댓글
10월 24, 2012 at 11:25 오전
First, our API doesn't support JSONP without adding a callback param. Try adding it to your quest.
Secondly, remember Apiary is only to be used for testing. Make sure to try that request on the real production end point.
blaster151님의 댓글
10월 25, 2012 at 3:54 오후
That helped - thanks!