תמיכת The Movie Database

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!

2 תגובות (בדף 1 מתוך 1)

Jump to last post

First, our API doesn't support JSONP without adding a callback param. Try adding it to your quest.

http://private-174c-themoviedb.apiary.io/3/search/movie?api_key=[pastedMyApiKeyHere]&callback=test

Secondly, remember Apiary is only to be used for testing. Make sure to try that request on the real production end point.

That helped - thanks!

.לא מצאת סרט או סדרה? היכנס כדי ליצור אותם

עולמי

s התמקד בשורת החיפוש
p פתח תפריט פרופיל
esc סגור חלון פתוח
? פתח חלון קיצורי דרך של מקלדת

בדפי מדיה

b לך חזרה (או אל הורה אם ישים)
e לך אל דף עריכה

בדפי עונות

(חץ ימני) לך אל העונה הבאה
(חץ שמאלי) לך אל העונה הקודמת

בדפי סדרות

(חץ ימני) לך אל הפרק הבא
(חץ שמאלי) לך אל הפרק הקודם

בכל דפי תמונה

a פתח חלון הוספת תמונה

בכל דפי עריכה

t פתח בוחר תרגום
ctrl+ s הגש טופס

בדפי דיון

n צור דיון חדש
w עורר מעמד צפייה
p עורר ציבורי/פרטי
c עורר סגירה/פתיחה
a פתח פעילות
r השב אל דיון
l לך אל תשובה אחרונה
ctrl+ enter הגש את הודעתך
(חץ ימני) הדף הבא
(חץ שמאלי) הדף הקודם

הגדרות

?רוצה לדרג או להוסיף פריט אל רשימה

היכנס