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!
Nevari atrast filmu vai TV pārraidi? Jāpiesakās, lai to izveidotu.
Vēlies novērtēt šo vienumu vai pievienot to sarakstam?
Neesi dalībnieks?
Atbilde no aikimagic
on decembris 30, 2012 at 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(); } }