aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorreal-zephex <[email protected]>2024-05-07 03:38:39 +0530
committerGitHub <[email protected]>2024-05-07 03:38:39 +0530
commitec22f9e3fa3e64a2d79331325c753bbaf05b2ebd (patch)
treedeb3da965856da224b89ddf0441175256eddb39e /utils
parentMerge pull request #16 from zephex-alt/master (diff)
parentlast minute fixes (diff)
downloaddramalama-ec22f9e3fa3e64a2d79331325c753bbaf05b2ebd.tar.xz
dramalama-ec22f9e3fa3e64a2d79331325c753bbaf05b2ebd.zip
Merge pull request #17 from zephex-alt/master
Added MOVIES support
Diffstat (limited to 'utils')
-rw-r--r--utils/movie_urls.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/movie_urls.js b/utils/movie_urls.js
new file mode 100644
index 0000000..20cbfef
--- /dev/null
+++ b/utils/movie_urls.js
@@ -0,0 +1,8 @@
+const API_KEY = "171fe27dbfecc58e2a18fbced644cda9";
+
+// MOVIES
+export const TRENDING = `https://api.themoviedb.org/3/trending/movie/day?api_key=${API_KEY}`;
+export const SEARCH = `https://api.themoviedb.org/3/search/movie?api_key=${API_KEY}&query=`;
+export const POPULAR = `https://api.themoviedb.org/3/movie/popular?api_key=${API_KEY}`;
+export const getInfoURL = (movieId) =>
+ `https://api.themoviedb.org/3/movie/${movieId}?api_key=${API_KEY}`;