api.brand

get()

api.brand.get(id) → Promise<Brand>

علامة تجارية واحدة، كاملة، في صورة كائن Brand يمكنك تعديله.

GET /api/brand/:idfree
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

const brand = await api.brand.get(id);
console.log(brand.name, brand.logos.main?.url, brand.palette.role("primary"));
brand = api.brand.get(brand_id)
print(brand.name, brand.logos.main and brand.logos.main["url"], brand.palette.role("primary"))

العلامة التجارية التابعة لحساب آخر تُرجع brand_not_found، تمامًا مثل معرّف غير معروف.