获取文章列表
获取文章列表。
查询参数
section一次仅支持一个值:wiki、news、learn、questions。
category分类过滤,最长 64 个字符;用于 news 时与 categoryFilter 互斥。
categoryFilter排除指定分类,最长 64 个字符;与 category 互斥。
tagName按关联标签名称过滤。
title标题模糊搜索,最长 200 个字符。
prioritySort是否按优先级排序,默认 false。
levelBeginner、Intermediate、Advanced;与 excludeLevel 互斥。
excludeLevel排除一个学习等级;与 level 互斥。
excludeDocumentId排除指定 documentId,通常用于相关推荐查询。
excludeContentKey排除 contentKey。
withCount是否返回 total 和 pages,默认 false。
page页码,从 1 开始,默认 1。
pageSize每页数量,默认 25,最大 200。
populateThumbnail是否返回 thumbnail,默认 false;questions 会忽略该参数。
populateTagLists是否返回 tagLists,默认 false。
populateCoins是否返回 coinsMaps,默认 false。
获取文章列表 › 响应
成功响应
total总记录数,withCount=false 时为 null。
page当前页码。
pageSize每页数量。
pages总页数,withCount=false 时为 null。
hasNextPage是否存在下一页。
文章列表。
按币种获取文章列表
按币种获取文章列表。
查询参数
section内容板块:wiki、news、learn、questions。
symbol币种符号,例如 BTC;与 slug 至少传一个。
slug币种 slug,例如 btc;与 symbol 至少传一个。
startEnableDateenabledDate 区间起始值(含),支持 Unix 秒或毫秒时间戳;其他板块忽略。
endEnableDateenabledDate 区间结束值(含),支持 Unix 秒或毫秒时间戳;不传时结果默认不超过当前时间,其他板块忽略。
withCount是否返回总数和总页数,默认 false。
page页码,从 1 开始,默认 1。
pageSize每页数量,默认 25,最大 200。
populateThumbnail是否返回 thumbnail,默认 false;questions 板块忽略。
populateTagLists是否返回 tagLists,默认 false。
populateCoins是否返回 coinsMaps,默认 false。
按币种获取文章列表 › 响应
成功响应
total总记录数。withCount=false 时可能为 null。
page当前页码。
pageSize每页数量。
pages总页数。withCount=false 时可能为 null。
hasNextPage是否存在下一页。
文章列表,字段定义请参见获取文章列表。
获取文章详情
获取文章详情。
查询参数
section一次仅支持一个值:wiki、news、learn、questions。
documentId文档 ID;两个 ID 均传时优先使用该字段。
v4Id兼容旧版本数据的 ID;与 documentId 至少传一个。
populateThumbnail是否返回 thumbnail,默认 false;questions 会忽略该参数。
populateTagLists是否返回 tagLists,默认 false;news 会忽略该参数。
populateCoins是否返回 coinsMaps,默认 false。
获取文章详情 › 响应
成功响应
id内容 ID。
documentId文档 ID。
v4Id兼容旧版本数据的 ID。
sectionwiki、news、learn、questions。
title当前语言标题。
summary内容摘要,learn 为 null。
contentKey内容标识。
enabled是否启用,learn 为 null。
enabledDate启用时间,UTC 毫秒时间戳;learn 为 null。
category内容分类。
imgCategoryWiki 图片分类。
link外部来源链接。
sourceSite来源站点。
outerPic外部来源图片。
originalSourceUrl原始来源 URL。
priority新闻优先级。
date学院内容日期,UTC 毫秒时间戳。
levelBeginner、Intermediate、Advanced。
outerId外部内容 ID。
outerLocaleId外部语言 ID,news 为 null。
sourceLang来源语言,news 为 null。
titleEn英文标题。
translation翻译标识,news 为 null。
translationStatus翻译状态,news 为 null。
thumbnail板块不支持、未请求或无缩略图时为 null。
tagLists未请求时为 null;请求后没有标签时为空数组。
coinsMaps未请求时为 null;请求后没有币种时为空数组。
publishedAt发布时间,UTC 毫秒时间戳。
createdAt创建时间,UTC 毫秒时间戳。
updatedAt更新时间,UTC 毫秒时间戳。
bodyHTML 格式正文;learn 的 content 字段统一映射为 body。
articleUrl服务端生成的 WEEX 文章返链。
total总记录数,withCount=false 时为 null。
page当前页码。
pageSize每页数量。
pages总页数,withCount=false 时为 null。
hasNextPage是否存在下一页。
items文章列表。
获取最新 Banner
获取最新 Banner。
查询参数
typeBanner 类型:News、Wiki、Learn main、Learn details、News details bottom、learn pop up、learn pop up detail、News details text。
获取最新 Banner › 响应
成功响应
idBanner ID。
documentId文档 ID。
title标题。
description描述。
ctaCTA 文案。
link跳转链接。
typeBanner 类型。
Banner 图片信息;无图片时省略该字段。
publishedAt发布时间,UTC 毫秒时间戳。
createdAt创建时间,UTC 毫秒时间戳。
updatedAt更新时间,UTC 毫秒时间戳。