دعم الموقع

Hello,

1) why do we have to pass account ID to Account API ? My tests seem to prove that this parameter is ignore by the API : I can pass any ID and I always get data related to session

2) I can't remove items from favorite nor whatchlist. I only can add. Seems the parameter favorite|watchlist = false is broken the api returns no error {"status_code"=>12, "status_message"=>"The item/record was updated successfully."}

2 ردود (على هذه الصفحة 1 من 1)

Jump to last post

Hi,

1) why do we have to pass account ID to Account API ? My tests seem to prove that this parameter is ignore by the API : I can pass any ID and I always get data related to session

Indeed this is the case today but it might not always be.

2) I can't remove items from favorite nor whatchlist. I only can add. Seems the parameter favorite|watchlist = false is broken the api returns no error

Using these 2 commands I'm not having any trouble adding and removing items from my watchlist:

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

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

In case if this is useful to anyone, I was having the same problem, could add movies to the "Favorites List" but not delete them. I mistakenly set the favorite parameter in the HTTPBody as a String. So even that it was set to false, the backed code was probably reading it as true because it was a String. Hence no error was being generated. Once I ensured favorite is a Bool, I was able to delete movies from the "Favorites List".

لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها

عام

s ركز شريط البحث
p افتح قائمة الملف الشخصي
esc اغلق النافذة المفتوحة
? افتح نافذة اختصارات لوحة المفاتيح

على كافة صفحات الوسائط

b ارجع للخلف (او للصفحة الام عند التطبيق)
e انتقل لصفحة التعديل

على كافة صفحات موسم المسلسل

(السهم الايمن) انتقل للموسم التالي
(السهم الايسر) انتقل للموسم السابق

على كافة صفحات حلقة المسلسل

(السهم الايمن) انتقل للحلقة التالية
(السهم الايسر) انتقل للحلقة السابقة

على كافة صفحات الصور

a افتح صفحة اضافة الصورة

على كافة صفحات التعديل

t افتح محدد الترجمة
ctrl+ s ارسال النموذج

على صفحات المناقشة

n انشى نقاش جديد
w تبديل حالة المتابعة
p تبديل عام / خاص
c تبديل اغلاق / فتح
a افتح الانشطة
r رد على النقاش
l انتقل لأخر رد
ctrl+ enter أرسل رسالتك
(السهم الايمن) الصفحة التالية
(السهم الايسر) الصفحة السابقة

الاعدادات

هل تريد تقييم او اضافة هذا العنصر للقائمة؟

تسجيل الدخول