Commit 9320245e authored by Nico Schallehn's avatar Nico Schallehn

test

parent a47ec0eb
......@@ -12,8 +12,17 @@ if ($imdb->isReady) {
$tmdbKey = "b1ddcc7d16281ce09f692896f882ba9d";
$url = "https://api.themoviedb.org/3/find/tt"."0489270"."?external_source=imdb_id&api_key=".$tmdbKey."&language=de&append_to_response=trailers";
echo $url.PHP_EOL;
$tmdb = json_decode(file_get_contents($url), true);
//echo $tmdb;
var_dump($tmdb["movie_results"]);
\ No newline at end of file
var_dump($tmdb["movie_results"][0]["id"]);
echo PHP_EOL;
$url2="https://api.themoviedb.org/3/movie/".$tmdb["movie_results"][0]["id"]."?api_key=".$tmdbKey."&append_to_response=trailers";
$tmdb = json_decode(file_get_contents($url2), true);
//echo $tmdb;
var_dump($tmdb);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment