תמיכת The Movie Database

Is there any api call for to remove the movie or the tv show from the watchlist?

3 תגובות (בדף 1 מתוך 1)

Jump to last post

@melissacskn said:
Remove Watchlist Item
Is there any api call for to remove the movie or the tv show from the watchlist?

I've never used it.
But I think it should be this one.
https://developer.themoviedb.org/v4/reference/list-remove-items

Maybe using v3 will also work for TV, even though the page title is Movie,
https://developer.themoviedb.org/reference/list-remove-movie

@ticao2 I think @melissacskn is talking about an account watchlist, not a general user list.

If that's the case, you just need to set the watchlist value to false. So to add an item:

curl --request POST \
     --url https://api.themoviedb.org/3/account/548/watchlist \
     --header 'Authorization: Bearer XXXXXXX' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "media_type": "movie",
  "media_id": 11,
  "watchlist": true
}
'

And then to remove an item:

curl --request POST \
     --url https://api.themoviedb.org/3/account/548/watchlist \
     --header 'Authorization: Bearer XXXXXXX' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "media_type": "movie",
  "media_id": 11,
  "watchlist": false
}
'

@travisbell said:

@ticao2 I think @melissacskn is talking about an account watchlist, not a general user list.

If that's the case, you just need to set the watchlist value to false. So to add an item:

curl --request POST \
     --url https://api.themoviedb.org/3/account/548/watchlist \
     --header 'Authorization: Bearer XXXXXXX' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "media_type": "movie",
  "media_id": 11,
  "watchlist": true
}
'

And then to remove an item:

curl --request POST \
     --url https://api.themoviedb.org/3/account/548/watchlist \
     --header 'Authorization: Bearer XXXXXXX' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "media_type": "movie",
  "media_id": 11,
  "watchlist": false
}
'

Thank you this is what i was looking for👍🏻

.לא מצאת סרט או סדרה? היכנס כדי ליצור אותם

עולמי

s התמקד בשורת החיפוש
p פתח תפריט פרופיל
esc סגור חלון פתוח
? פתח חלון קיצורי דרך של מקלדת

בדפי מדיה

b לך חזרה (או אל הורה אם ישים)
e לך אל דף עריכה

בדפי עונות

(חץ ימני) לך אל העונה הבאה
(חץ שמאלי) לך אל העונה הקודמת

בדפי סדרות

(חץ ימני) לך אל הפרק הבא
(חץ שמאלי) לך אל הפרק הקודם

בכל דפי תמונה

a פתח חלון הוספת תמונה

בכל דפי עריכה

t פתח בוחר תרגום
ctrl+ s הגש טופס

בדפי דיון

n צור דיון חדש
w עורר מעמד צפייה
p עורר ציבורי/פרטי
c עורר סגירה/פתיחה
a פתח פעילות
r השב אל דיון
l לך אל תשובה אחרונה
ctrl+ enter הגש את הודעתך
(חץ ימני) הדף הבא
(חץ שמאלי) הדף הקודם

הגדרות

?רוצה לדרג או להוסיף פריט אל רשימה

היכנס