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!
Can't find a movie or TV show? Login to create it.
Ĉu volas taksi aŭ aldoni ĉi tiun elementon al listo?
Ĉu ne estas membro?
Respondo de aikimagic
je Decembro 30 2012 je 11:16 AM
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(); } }