دعم الموقع

How to set backdrop_path in user's collection using http request? (Mobile)

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

Jump to last post

@lLump said:
Collection background image
How to set backdrop_path in user's collection using http request? (Mobile)

If I understood your question correctly...

Background images for your lists, or user collections as you say,
can only be a background image from one of the films on your list.
It is not possible to use or upload an external image.

User collections json response of single collection (https://developer.themoviedb.org/v4/reference/account-lists)

{ "account_object_id": "___", "adult": 0, "average_rating": 7.9, "backdrop_path": "/38aCLy0BdFbOAIEfuDladoITHN0.jpg", "created_at": "2024-03-06 22:47:38 UTC", "description": "Фильмы которые я посмотрел", "featured": 0, "id": 8293167, "iso_3166_1": "UA", "iso_639_1": "uk", "name": "Просмотренные", "number_of_items": 12, "poster_path": null, "public": 1, "revenue": 3294665949, "runtime": "1477", "sort_by": 1, "updated_at": "2024-05-31 16:00:05 UTC" }

By default backdrop_path == null. Can i set some string in that field using API?

For some reason i get error when trying to send json code with code style

@lLump said:

User collections json response of single collection (https://developer.themoviedb.org/v4/reference/account-lists)

{ "account_object_id": "___", "adult": 0, "average_rating": 7.9, "backdrop_path": "/38aCLy0BdFbOAIEfuDladoITHN0.jpg", "created_at": "2024-03-06 22:47:38 UTC", "description": "Фильмы которые я посмотрел", "featured": 0, "id": 8293167, "iso_3166_1": "UA", "iso_639_1": "uk", "name": "Просмотренные", "number_of_items": 12, "poster_path": null, "public": 1, "revenue": 3294665949, "runtime": "1477", "sort_by": 1, "updated_at": "2024-05-31 16:00:05 UTC" }

By default backdrop_path == null.
Can i set some string in that field using API?

Again, I'm not sure I understand correctly.

The _path backdrop is in the response.
"backdrop_path": "/38aCLy0BdFbOAIEfuDladoITHN0.jpg",
To access the image use the images URL.
https://developer.themoviedb.org/docs/image-basics

The request should be similar to these:

https://image.tmdb.org/t/p/[size]/[poster_path]  
https://image.tmdb.org/t/p/original/38aCLy0BdFbOAIEfuDladoITHN0.jpg  
https://image.tmdb.org/t/p/w500/38aCLy0BdFbOAIEfuDladoITHN0.jpg  

https://image.tmdb.org/t/p/original/38aCLy0BdFbOAIEfuDladoITHN0.jpg

Make sure to read the documentation around images.
https://developer.themoviedb.org/docs/image-basics
https://developer.themoviedb.org/reference/configuration-details
Image Sizes

https://api.themoviedb.org/3/configuration?api_key=THE_KEY

I understand how to get image from response. But can i set it? So that in the future, I can get the backdrop_path that I set by myself.

I can do it on the site (https://www.themoviedb.org/list/8293167/edit?active_nav_item=step_3), but can i do the same thing using API?

I want to edit info about one of my collection, to get in the future response that i set. There is a request for this (https://developer.themoviedb.org/v4/reference/list-update), but in the request example there is no info about putting backdrop_path

I hope i said all of this correctly, just in case, sorry for bad English. Hello from Ukraine!

@lLump said:
I hope i said all of this correctly, just in case, sorry for bad English. Hello from Ukraine!

Hello from Brazil. :-)
English is also not my native language.

I understand how to get image from response. But can i set it?
So that in the future, I can get the backdrop_path that I set by myself.

I do not think so.
It must be an image that already exists here on TMDb.
You cannot enter a URL.

I can do it on the site (https://www.themoviedb.org/list/8293167/edit?active_nav_item=step_3),
but can i do the same thing using API?

No. Only on the WEB interface. You cannot do this using the API.

I want to edit info about one of my collection, to get in the future response that i set.
There is a request for this (https://developer.themoviedb.org/v4/reference/list-update),
but in the request example there is no info about putting backdrop_path

I have never used the V4 version of the API.
I'm not the best person to clarify details.
You'd better open a specific topic for this.
Something like API v4 - Update - How to use it?

Hi @lLump,

You can actually pass a backdrop_path param to the update list request I believe. Did you try and it failed?

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

عام

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

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

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

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

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

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

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

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

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

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

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

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

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

الاعدادات

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

تسجيل الدخول