pixelead0 / tmdb_v3-PHP-API-

Wrapper in PHP for The Movie Data Base version 3
119 stars 81 forks source link

director name and other fields not picked #13

Closed tdguchi closed 10 years ago

tdguchi commented 10 years ago

Hi, i have tried you php script... but i couldnt get some some fields, like as director or the released year

which changes could I made to get the director name?

thanks

akeinhell commented 10 years ago

try this

$tmdb->movieInfo($MovieId, "Credits");

returns below parts of response

{
   id: 603,
   cast: [....],
   crew: [
   {
      credit_id: "52fe425bc3a36847f8018117",
      department: "Directing",
      id: 9339,
      job: "Director",
      name: "Andy Wachowski",
      profile_path: "/nh5SBuv9cm1FByTc7dlV0zyO3GO.jpg"
   },
   {
      credit_id: "52fe425bc3a36847f801811d",
      department: "Directing",
      id: 9340,
      job: "Director",
      name: "Lana Wachowski",
      profile_path: "/8mbcXfOpmOiDLk6ZWfMsBGHEnet.jpg"
   },
tdguchi commented 10 years ago

Im getting an empty array when adding:

$ cred = $ tmdb_V3->movieInfo($ idMovie, "Credits"); echo"

";var_dump($cred);echo"
";

PD:where I can get a full map of the web? to know the name of every field?

akeinhell commented 10 years ago

try this

$cred = $tmdb_V3->movieInfo($idMovie, "credits");
tdguchi commented 10 years ago

that works! thanks!

and how about the question of where to find a map of the web? I mean, something where find what to put into the functions (like "credits") how do you know that the plot is a result of moviedetail()?