Hi, I am using the .NET WatTMDB dll in my application, plus I have just received my first TMDB api key. Problem is I don't know whether WatTMDB dll isnt working or its the new TMDB key not working. E.g. The message I'm getting back when I search for 'The Lion King' is....
{"status_code":6,"status_message":"Invalid id - The pre-requisite id is invalid or not found"}
Any assistance would brighten my day.
Thanks!
Es fehlt ein Film oder eine Serie? Logge dich ein zum Ergänzen.
Diesen Eintrag bewerten oder zu einer Liste hinzufügen?
Kein Mitglied?
Antwort von aikimagic
am 30. Dezember 2012 um 11:16
Sorry...my bad (although was a little misleading). I was passing and index of 0 into the api.SearchMovie() method. When I passed 1 it worked. I guess it's a page not an index. Doh!
private void buttonSearch_Click(object sender, EventArgs e) { TmdbMovieSearch res = api.SearchMovie(textBoxTitle.Text, 1); if (res.total_pages > 0) { foreach (MovieResult movie in res.results) { textBoxResults.Text = movie.id.ToString(); textBoxResults.AppendText(movie.title); } } else { textBoxResults.Text = api.ResponseContent.ToString(); } }