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!
找不到电影或节目?登录并创建它吧。
aikimagic 的回复
于 2012 年 12 月 30 日 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(); } }