diff --git a/src/WebApp/application/views/getMovie.php b/src/WebApp/application/views/getMovie.php new file mode 100644 index 0000000000000000000000000000000000000000..20d59909bdbdae7d79fd4ac6239bc979c5d01581 --- /dev/null +++ b/src/WebApp/application/views/getMovie.php @@ -0,0 +1,29 @@ + +<?php +function getMoviebyID($id) +{ + $tmdb_url = 'https://api.themoviedb.org/3/movie/' . $id . '?api_key=7ac6810245f15284418f2a15b9b22225'; + $movie_json = file_get_contents($tmdb_url); + $movie_array = json_decode($movie_json, true); + + $title = $movie_array['original_title']; + + return $title; +} + +$title = getMoviebyID(100); + +?> +<html> + <head> + <meta charset="utf-8"/> + <title>BingeWatcher</title> +</head> + <body> + <?php + echo $title; + ?> + + +</body> +</html> \ No newline at end of file