The Movie Database támogatás

Hello, how is it possible to send a request for a movie to the APi?

I found this, but where is the part where i can add the name i am looking for?

Example: SampleName -> Where have i to add this at the api?

var request = System.Net.WebRequest.Create("http://private-d576-themoviedb.apiary.io/3/movie/{id}") as System.Net.HttpWebRequest;
    request.Method = "GET";
                request.Accept = ""application/json"";
              request.ContentLength = 0;
string responseContent;
using (var response = request.GetResponse() as System.Net.HttpWebResponse) {
  using (var reader = new System.IO.StreamReader(response.GetResponseStream())) {
    responseContent = reader.ReadToEnd();
  }
}

3 válasz érkezett (1 / 1 oldalból)

Jump to last post

A few things…

For title based searching, you're going to want to use the search endpoints. You can use the ?query parameter to do that. You'll also probably want to switch your request to the real production server, so a URL like this:

http://api.themoviedb.org/3/search/movie?api_key=###&query=x-men
var request = System.Net.WebRequest.Create("http://api.themoviedb.org/3/search/movie?api_key=###&query=x-men") as System.Net.HttpWebRequest;
    request.Method = "GET";
                request.Accept = ""application/json"";
              request.ContentLength = 0;
string responseContent;
using (var response = request.GetResponse() as System.Net.HttpWebResponse) {
  using (var reader = new System.IO.StreamReader(response.GetResponseStream())) {
    responseContent = reader.ReadToEnd();
  }
}

Cheers.

Is there any way to get a XML file back at my request?

No, our API is JSON only.

Nem találsz egy filmet vagy egy sorozatot? Jelentkezz be és hozd létre.

Globális

s focus the search bar
p profil menü megnyitása
esc close an open window
? billentyűparancsok ablak megnyitása

Minden média oldalon

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(jobbra nyíl) ugrás a következő évadra
(balra nyíl) vissza az előző évadra

Tévéepizód oldalakon

(jobbra nyíl) ugrás a következő részre
(balra nyíl) vissza az előző részre

Minden kép oldalon

a kép hozzáadása ablak megnyitása

Minden szerkesztő oldalon

t fordítás választó megnyitása
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l ugrás az utolsó válaszhoz
ctrl+ enter submit your message
(jobbra nyíl) következő oldal
(balra nyíl) előző oldal

Beállítások

Want to rate or add this item to a list?

Bejelentkezés