api.brand

list()

api.brand.list() → Promise<BrandSummary[]>

账户中的所有品牌,以摘要形式返回:足以绘制一个画廊,而无需逐个加载品牌。

GET /api/brandfree
Using Python?

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

const brands = await api.brand.list();
// [{ id, name, tagline, logo: { id, url, … } | null, colors: ["#6B3E26", …],
//    completeness: { done, total, missing }, updatedAt }]
brands = api.brand.list()
# [{"id", "name", "tagline", "logo": {"id", "url", ...} | None, "colors": ["#6B3E26", ...],
#   "completeness": {"done", "total", "missing"}, "updatedAt"}]

logo 是带有绝对 url 的主标志,或 null。要读取或修改品牌,请用 get(id) 打开它。