Film Veri Tabanı Desteği

I'm very new to APIs and jQuery in general and am trying to work out how to simply retrieve a movie poster.

$.getJSON("https://api.themoviedb.org/3/search/movie?api_key=XXXX&query=interstellar", function (response) {
      $("#poster").html("<img src=" + response.results[0].poster_path + "/>");
    });

I've also got a working jsFiddle here (link removed), but it's trying to retrieve this image from the jsFiddle website rather than tmdb. I realise I have to add something to start of that img src but have tried various combinations of (https://api.themoviedb.org/3/movie/157336/images + response.results[0].poster_path + ?api_key=XXXX) to no avail.

Could anyone point me in the right direction?

Any help is appreciated. Thanks!

P.S. While I may not have a working bit of code, this whole API thing is new to me and it's blowing my f****** mind!!! Oh, the possibilities...

1 yanıt (toplam 1 sayfanın 1.sayfasında)

Jump to last post

Sorry to sound silly. But where do I get the base_url and poster_size from?

Bir filmi veya diziyi bulamıyor musun? Eklemek için oturum aç.

Genel

s arama çubuğuna odaklan
p profil menüsünü aç
esc açık bir pencereyi kapat
? klavye kısayol penceresini aç

Medya sayfalarında

b geri git (veya uygulanabilirse ana ekrana)
e sayfayı düzenlemeye git

TV sezonu sayfalarında

(sağa ok) sonraki sezona git
(sol ok) önceki sezona git

TV bölüm sayfalarında

(sağa ok) sonraki bölüme git
(sol ok) önceki bölüme git

Tüm görüntü sayfalarında

a resim ekle penceresini aç

Tüm düzenleme sayfalarında

t çeviri seçiciyi aç
ctrl+ s formu gönder

Tartışma sayfalarında

n yeni tartışma oluştur
w izleme durumunu değiştir
p umumi/hususi değiştir
c kapalı/açık değiştir
a etkinliği aç
r tartışmayı yanıtla
l son yanıta git
ctrl+ enter mesajını gönder
(sağa ok) sonraki sayfa
(sol ok) önceki sayfa

Ayarlar

Bu öğeyi derecelendirmek veya bir listeye eklemek ister misiniz?

Giriş