获取-文章频道列表
GET
/mp/v1_0/channels获取-文章频道列表
请求参数
Header 参数
Authorization
string
必需
Bearer token值字符串; 例如: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2OTA0NTEwOTksInVzZXJfaWQiOjEsInJlZnJlc2giOmZhbHNlLCJ2ZXJpZmllZCI6dHJ1ZX0.-aXDyXCTJDWWybYBC2cGcbCGmymVt5w79h-_UlSX_yI
示例值:
{{HM_ACCESS_TOKEN}}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
message
string
响应消息
data
object
响应数据
channels
array [object {2}]
频道数组
示例
成功示例
{
"message": "OK",
"data": {
"channels": [
{
"id": 2,
"name": "开发者资讯"
},
{
"id": 3,
"name": "ios"
},
{
"id": 4,
"name": "c++"
},
{
"id": 5,
"name": "android"
},
{
"id": 6,
"name": "css"
},
{
"id": 7,
"name": "数据库"
},
{
"id": 8,
"name": "区块链"
},
{
"id": 9,
"name": "go"
},
{
"id": 10,
"name": "产品"
},
{
"id": 11,
"name": "后端"
},
{
"id": 12,
"name": "linux"
},
{
"id": 13,
"name": "人工智能"
},
{
"id": 14,
"name": "php"
},
{
"id": 15,
"name": "javascript"
},
{
"id": 16,
"name": "架构"
},
{
"id": 17,
"name": "前端"
},
{
"id": 18,
"name": "python"
},
{
"id": 19,
"name": "java"
},
{
"id": 20,
"name": "算法"
},
{
"id": 21,
"name": "面试"
},
{
"id": 22,
"name": "科技动态"
},
{
"id": 23,
"name": "js"
},
{
"id": 24,
"name": "设计"
},
{
"id": 25,
"name": "数码产品"
},
{
"id": 1,
"name": "html"
},
{
"id": 26,
"name": "软件测试"
},
{
"id": 27,
"name": "测试开发"
}
]
}
}
最后修改时间: 2 年前