The Movie Database Подршка

Hi! I'm using rate movie endpoint to rate a movie using a guest session, and I get a success response:

{
    "success": true,
    "status_code": 12,
    "status_message": "The item/record was updated successfully."
}

However, when I try to get the movies that guest session rated with Get Guest Session Rated Movies endpoint, I'm receiving the following response with no movies:

{
    "page": 1,
    "results": [],
    "total_pages": 0,
    "total_results": 0
}

Could someone let me know if there's some time between the rate action and the actual saving of that rating? Thank you!

5 одговора (на страни 1 од 1)

Jump to last post

I fixed it! I was using Bearer Token Authentication, which made ratings to be linked to my TMDB account instead of the Guest Session I was sending. I switched to API Key Authentication and it started working like a charm!

Hey man! excuse me. I have the same problem, what do you mean by switched to API Key Authentication? (hope you will get some email about this message)

@vimevi57 said:

Hey man! excuse me. I have the same problem, what do you mean by switched to API Key Authentication? (hope you will get some email about this message)

Hi @vimevi57 ! Yeah, thankfully I got an email, I had totally forgotten I asked this question 😂.

What I meant is that when sending the POST request to the rate endpoint, I sent my API key as a querystring param instead of sending my token in the Authorization header.

I don't remember why it didn't work when using Bearer Token authentication as it's been a long time since I worked on the project, but it seems that I was able to make it work by using API Key authentication back then.

I've just reviewed my project's code and this is the request I'm sending (for movies):

Woow! Thank you @mbahamonde6! May I see get request with getting rated list? Because for some reason it doesn't still work. It turns emty array. Maybe I overlooked something

i handled it

Не можеш да нађеш филм или серију? Пријави се да додаш.

Глобално

s фокусирај траку за претрагу
p отворите мени профила
esc затворити отворени прозор
? отвори прозор пречице на тастатури

На страницама медија

b вратити се назад (или родитељу кад је то применљиво)
e иди на страницу за уређивање

На страницама ТВ сезона

(стрелица надесно) пређите на следећу сезону
(лева стрелица) иди на претходну сезону

На страницама ТВ епизода

(стрелица надесно) пређите на следећу епизоду
(лева стрелица) иди на претходну епизоду

На свим страницама са сликама

a отвори прозор за додавање слике

На свим страницама за уређивање

t отвори селектор превода
ctrl+ s пошаљи образац

На страницама за дискусију

n отвори нову дискусију
w мења статус гледања
p мења јавно/приватно
c мења отвори/затвори
a отвори активност
r одговор на дискусију
l иди на последњи одговор
ctrl+ enter пошаљи поруку
(стрелица надесно) следећа страница
(лева стрелица) претходна страница

Подешавања

Желите ли да оцените или додате ову ставку у листу?

Пријави се