内容类型
- 接口地址:
/api/v2/global/{type}/content-types - 请求方式:
GET - 传参方式:
Rest
Headers 可选参数
| 参数名 | 公开模式(是否必传) | 私有模式(是否必传) |
|---|---|---|
| X-Fresns-Aid | NO | YES |
| X-Fresns-Aid-Token | NO | YES |
| X-Fresns-Uid | NO | YES |
| X-Fresns-Uid-Token | NO | YES |
Rest 参数
| 参数名 | 类型 | 是否必传 | 说明 |
|---|---|---|---|
| type | String | YES | post, comment |
返回结果
json
{
"code": 0,
"message": "ok",
"data": [
{
"fskey": "String / 插件 Fskey",
"name": "String / 名称",
"icon": "String / 服务商图标 URL",
"url": "String / 服务商访问 URL",
"badgesType": "Number / 显示类型 1.红点 2.文字 3.数字",
"badgesValue": "String / 显示文字或者数字",
"pluginRating": {
"postByAll": [
{
"id": "Number / 用于列表接口 pluginRatingId 参数",
"title":"String / 标题",
"description":"String / 描述"
}
],
"postByFollow": [
// 同上
],
"postByNearby": [
// 同上
],
"commentByAll": [
// 同上
],
"commentByFollow": [
// 同上
],
"commentByNearby": [
// 同上
]
}
}
]
}