跳到主要内容

获取最新 Banner

HTTP request 获取指定类型最新发布的 Banner。

  • GET /api/v3/content/banners/latest

权重(IP): 1

请求头

请求头是否必须描述
locale否Banner 语言,默认 en_US。可选值:ar_AR、az_AZ、de_DE、en_US、es_419、es_AR、es_ES、fa_IR、fr_FR、in_ID、it_IT、ja_JP、pl_PL、pt_BR、pt_PT、ru_RU、uk_UK、vi_VN、zh_CN、zh_TW。

请求参数

参数名类型是否必须描述
typeString是Banner 类型:News、Wiki、Learn main、Learn details、News details bottom、learn pop up、learn pop up detail、News details text。

请求示例

curl "https://api-spot.weex.com/api/v3/content/banners/latest?type=News" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*******" \
-H "ACCESS-PASSPHRASE:*****" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale: en_US" \
-H "Content-Type: application/json"

返回参数

字段名类型描述
idLongBanner ID。
documentIdString文档 ID。
titleString标题。
descriptionString描述。
ctaStringCTA 文案。
linkString跳转链接。
typeStringBanner 类型。
thumbnailObjectBanner 图片信息;无图片时省略该字段。
publishedAtLong发布时间,UTC 毫秒时间戳。
createdAtLong创建时间,UTC 毫秒时间戳。
updatedAtLong更新时间,UTC 毫秒时间戳。

返回示例

{
"id": 1001,
"documentId": "banner-news-latest",
"title": "最新加密市场新闻",
"description": "了解最新的 Web3 市场动态。",
"cta": "查看更多",
"link": "https://www.weex.com/zh-CN/news",
"type": "News",
"thumbnail": {
"id": 9001,
"documentId": "banner-image-doc",
"name": "news-banner.png",
"url": "https://example.com/news-banner.png",
"width": 1200,
"height": 480,
"mime": "image/png",
"size": 245.5
},
"publishedAt": 1780993501641,
"createdAt": 1780993356022,
"updatedAt": 1780993519507
}