I am working on developing a webapplication , where I need to use the TMDB ... for displaying the movie details and posters.
I have added the posters as a Hyperlink in the website... which on click should take me to the movie page.
https://www.tmb.org/movie${movie.id} - this is the url path i gave in my js application, but it's taking me nowhere.
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
رد بواسطة superboy97
بتاريخ سبتمبر 9, 2024 في 5:11 صباحا
First, you need a slash between the word movie and the Id.
Secondly, the URL of our site is https://www.themoviedb.org , not https://www.tmb.org .
رد بواسطة rna_j_rohan
بتاريخ سبتمبر 9, 2024 في 5:25 صباحا
@superboy97 -
{
https://www.themoviedb.org/movie${movie.id}
} - this is the edited URL, even this is not working.رد بواسطة superboy97
بتاريخ سبتمبر 9, 2024 في 5:27 صباحا
It seems that you didn't read my answer completely. Especially, the first line.
رد بواسطة rna_j_rohan
بتاريخ سبتمبر 9, 2024 في 5:52 صباحا
@superboy97 . I have read it.... isn't the ${movie.id} contains a slash in it already?..
I am following a course,.. there they mentioned that it contains the slash already
رد بواسطة superboy97
بتاريخ سبتمبر 9, 2024 في 5:54 صباحا
If you put one in it, it will be there. But, if you just put the Id in it, it will not be there.
رد بواسطة rna_j_rohan
بتاريخ سبتمبر 9, 2024 في 5:55 صباحا
@superboy97 .. that's giving empty page.
رد بواسطة superboy97
بتاريخ سبتمبر 9, 2024 في 5:59 صباحا
What is your id value ? and what is the exact complete URL you have generated ?
رد بواسطة rna_j_rohan
بتاريخ سبتمبر 9, 2024 في 6:07 صباحا
like it ain't via API.. what I am trying to do is
I am trying to display popular movies list in the website.
and I have used state variables - movie.original_title - for the name || movie.release_date - for the release date... similarly
I need to be able to go to that particular movie page... where the details about the movie are there.. via react application.
رد بواسطة superboy97
بتاريخ سبتمبر 9, 2024 في 6:11 صباحا
I need the answer to my questions. Without that, I can't help you.
رد بواسطة rna_j_rohan
بتاريخ سبتمبر 9, 2024 في 7:21 صباحا
id value - it has to fetch from the ${movie.id} variable and render it.
"https://api.themoviedb.org/3/movie/popular?api_key=THE_KEY" - this is the API call used for fetch method.
رد بواسطة superboy97
بتاريخ سبتمبر 9, 2024 في 10:10 صباحا
This has nothing to do with my questions.
I want to know:
رد بواسطة ticao2 🇧🇷 pt-BR
بتاريخ سبتمبر 9, 2024 في 10:17 صباحا
I got the first ID from the response of this API Request.
https://api.themoviedb.org/3/movie/popular?api_key=THE_KEY
I used this ID 533535 in this example.
I added the forward slash, "/"
https://www.themoviedb.org/movie/533535
I accessed the WEB page without any problems.
رد بواسطة ticao2 🇧🇷 pt-BR
بتاريخ سبتمبر 9, 2024 في 10:24 صباحا
I will replace your API Key with THE_KEY expression.
It is not good to show your Key to all forum users.
رد بواسطة Travis Bell
بتاريخ سبتمبر 9, 2024 في 12:37 مساءا
@rna_j_rohan, as @superboy97 and @ticao2 have said, you need to add a slash.
Compare these two strings, the first is what you are doing (wrong), and the second is what you need to do (correct):
Vs.