Υποστήριξη για το The Movie Database

Hi, can anybody help ?, I keep geting status code 34 , "The resource you requested could not be found." errors.

I am trying to set a movie favorite. The url im using is:

https://api.themoviedb.org/3/movie/favorite?api_key=xxx&session_id=xxx

and im sending this message body:

{
    "media\_type": "movie",
    "media\_id": "50963-deep-jaws",
    "favorite": true
}

Is there something im doing wrong ? Thanks.

4 απαντήσεις(στη σελίδα 1 από 1)

Jump to last post

Hi, ive tried that too and its not working still. Looking at the documentation im not sure if the request url needs to be"

https://api.themoviedb.org/3/movie/favorite?api_key=xxx&session_id=xxx or https://api.themoviedb.org/3/account/movie/favorite?api_key=xxx&session_id=xxx or https://api.themoviedb.org/3/50963/favorite?api_key=xxx&session_id=xxx

Can anyone tell me ?

Roby's example won't quite work as you need to pass the media_id in as an integer, but you also need to be interacting with the account, not a movie.

curl -H "Accept: application/json" -H "Content-Type: application/json" -d \
  "{'media_type': 'movie', 'media_id': 550, 'favorite': true}" \
  "https://api.themoviedb.org/3/account/{ID}/favorite?api_key=###&session_id=###"

Note the {ID} variable you need to replace along with the api_key and session_id.

Great thanks for you help, its working for me now. One thing I've noticed is that adding a favourite works instantly but so far removing a favourite by setting favourite to false in the request has not worked, do you know why that is ?.

Hi dshalom03,

I'm not sure as my tests are working properly. To be sure, you're setting it as a boolean and not a string, correct? Both of these calls are working for me (you can easily see it working on the website):

curl -H "Accept: application/json" -H "Content-Type: application/json" -d \
    "{'media_type': 'movie', 'media_id': 550, 'favorite': true}" \
    "https://api.themoviedb.org/3/account/{ID}/favorite?api_key=###&session_id=###"

curl -H "Accept: application/json" -H "Content-Type: application/json" -d \
    "{'media_type': 'movie', 'media_id': 550, 'favorite': false}" \
    "https://api.themoviedb.org/3/account/{ID}/favorite?api_key=###&session_id=###"

Δεν μπορείτε να βρείτε κάποια ταινία ή σειρά; Συνδεθείτε για να τη δημιουργήσετε.

Σε όλες τις σελίδες

s Εστίαση στη μπάρα αναζήτησης
p Άνοιγμα μενού προφίλ
esc Κλείσιμο ανοιχτού παραθύρου
? Άνοιγμα παραθύρου συντομεύσεων πληκτρολογίου

Στις σελίδες μέσων

b Επιστροφή στην προηγούμενη σελίδα(ή στην αρχική σελίδα όταν είναι εφικτό)
e Μετάβαση στη σελίδα επεξεργασίας

Στις σελίδες κύκλων σειρών

(Δεξιό βέλος) Μετάβαση στον επόμενο κύκλο
(Αριστερό βέλος) Μετάβαση στον προηγούμενο κύκλο

Στις σελίδες επεισοδίων σειρών

(Δεξιό βέλος) Μετάβαση στο επόμενο επεισόδιο
(Αριστερό βέλος) Μετάβαση στο προηγούμενο επεισόδιο

Σε όλες τις σελίδες εικόνων

a Άνοιγμα παραθύρου προσθήκης εικόνας

Σε όλες τις σελίδες επεξεργασίας

t Άνοιγμα επιλογέα μετάφρασης
ctrl+ s Υποβολή φόρμας

Στις σελίδες συζήτησης

n Δημιουργία νέας συζήτησης
w Ρύθμιση κατάστασης παρακολούθησης
p Ρύθμιση ως δημόσια/ιδιωτική
c Ρύθμιση ανοίγματος/κλεισίματος
a Άνοιγμα δραστηριότητας
r Απάντηση στη συζήτηση
l Μετάβαση στην τελευταία απάντηση
ctrl+ enter Υποβολή μηνύματος
(Δεξιό βέλος) Επόμενη σελίδα
(Αριστερό βέλος) Προηγούμενη σελίδα

Ρυθμίσεις

Θέλετε να αξιολογήσετε ή να προσθέσετε αυτό το στοιχείο σε μια λίστα;

Σύνδεση