The Movie Database 支持

i want to add my own review, i get session id, but again i cant add my review using api

7 回复(第 1 页,共 1 页)

Jump to last post

@saida.humbataliyeva said:
post request for review
i want to add my own review, i get session id, but again i cant add my review using api

Where do you want to add?
In a movie from a personal list of yours?
Or in a movie with data here on the WEB available to everyone?

If you've already tried it, please post here the API Request you used.

Problems with API Request

In order for someone to help you with API Request questions,
it is critical that you post here the API Request you are sending to the TMDb server.
Remember to replace your Key with MY_KEY , YOUR_KEY , THE_KEY , or something like that.

Not the programming code/script you used to build the API Request.
But the API Request that is sent to the TMDb server.
Or the API Request you would like to send.

I want to add a movie that has publicly available data here on the WEB, I'm creating a movie app, users can add review to movie

@saida.humbataliyeva said:
I want to add a movie that has publicly available data here on the WEB,
I'm creating a movie app, users can add review to movie

I think you are talking about this type of review.
https://www.themoviedb.org/review/63a25604be6d88008cb15033
It is not possible to add on the TMDb website using the API.
See here what can be done using the API.
https://developers.themoviedb.org/3/getting-started/introduction
You will have to store your users' reviews on your server.

i have api key, i can get movies, details, but now, when i want to create session id, i get "status_message": "Invalid API key: You must be granted a valid key.", this error, how can i solve this problem?

@saida.humbataliyeva said:
i have api key, i can get movies, details, but now, when i want to create session id, i get "status_message":
"Invalid API key: You must be granted a valid key.",
this error, how can i solve this problem?

I've never used Token, so I don't know how this feature operates.
I can give you the following initial information.

TOKEN - Initial Information
In your profile you will find your API Read Access Token (v4 auth)
https://www.themoviedb.org/settings/api
And here you find the initial instructions.
https://developers.themoviedb.org/3/getting-started/authentication
https://developers.themoviedb.org/3/authentication/how-do-i-generate-a-session-id

And here some pages to test

TOKEN Test
You can use test scripts to see how all of this works.
All of this code is frontend only (inspect the source), so it's easy to see what's happening.
Start with v3_auth.html.

v3

v4

Token Issues
Some tips on how to do it.
https://www.themoviedb.org/talk/605cbdda8f26bc002a612929#605e51579a64350054ff8c63

https://api.themoviedb.org/3/movie/${movieId}/reviews?api_key=THE_KEY&guest_session_id=TOKEN_ID
from this i get {"status_code": 34, "status_message": "The resource you requested could not be found.", "success": false} error

@saida.humbataliyeva said:

https://api.themoviedb.org/3/movie/${movieId}/reviews?api_key=THE_KEY&guest_session_id=TOKEN_ID
from this i get {"status_code": 34, "status_message": "The resource you requested could not be found.", "success": false} error

It's not a good idea to show all users your API key.
The same goes for your TOKEN_ID.
I replaced both.

What is the Title, Link and/or ID of the movie you are asking for Reviews?

找不到电影或节目?登录并创建它吧。

全站通用

s 聚焦到搜索栏
p 打开个人资料菜单
esc 关闭打开的窗口
? 打开键盘快捷键窗口

在媒体页面

b 返回(或返回上级)
e 进入编辑页面

在电视季页面

(右箭头)下一季
(左箭头)前一季

在电视集页面

(右箭头)下一集
(左箭头)上一集

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

t 打开翻译选择器
ctrl+ s 提交

在讨论页面

n 创建新讨论
w 切换关注状态
p 设为公开 / 私密讨论
c 关闭 / 开放讨论
a 打开活动页
r 回复讨论
l 跳转至最新回复
ctrl+ enter 发送信息
(右箭头)下一页
(左箭头)前一页

设置

想给这个条目评分或将其添加到片单中?

登录

还不是会员?

注册加入社区