获取-文章详情
GET
/v1_0/mp/articles/{target}获取-文章详情
请求参数
Path 参数
target
string
文章id
示例值:
22b17f0d-4c4a-4858-a7f6-d6cceebf9521
Header 参数
Authorization
string
必需
Bearer token值 例如: Bearer 2d087800-f3a5-4a66-9feb-74404d350943
示例值:
{{GK_ACCESS_TOKEN}}
示例代码
返回响应
成功(200)
服务器错误(文章id不存在)(500)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
data
object
响应数据
id
string
文章id
title
string
文章标题
channel_id
integer
文章频道id
content
string
文章内容
cover
object
文章封面对象
pub_date
string
文章发布时间
message
string
响应消息
示例
成功示例
{
"data": {
"id": "22b17f0d-4c4a-4858-a7f6-d6cceebf9521",
"title": "我是文章",
"channel_id": 11,
"content": "<p>123123</p>",
"cover": {
"type": 1,
"images": [
"http://geek.itheima.net/uploads/1659337489923.jpg"
]
},
"pub_date": "2022-08-01 15:04:53"
},
"message": "OK"
}
最后修改时间: 3 年前