获取分享短链
POST
/api/xhs/short_link请求参数
Header 参数
Cookie
string
可选
Body 参数application/json
object {0}
示例
{
"note_id": "66b497d4000000001e01a0a9"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
msg
string
必需
path
string
必需
data
object
必需
response_status
integer
必需
response_body
object
必需
response_headers
object
必需
示例
{
"code": 200,
"msg": "success",
"path": "/api/xhs/short_link",
"data": {
"response_status": 200,
"response_body": {
"data": {
"short_url": "xhslink.com/A/OiASTL"
}
},
"response_headers": {
"date": "Mon, 09 Sep 2024 13:12:42 GMT",
"content-type": "application/json; charset=utf-8",
"content-length": "46",
"alt-svc": "h3=\":443\"; ma=2592000, h3-29=\":443\"; ma=2592000, h3-27=\":443\"; ma=2592000, h3-Q050=\":443\"; ma=2592000, h3-Q046=\":443\"; ma=2592000, h3-Q043=\":443\"; ma=2592000, h3-Q039=\":443\"; ma=2592000, quic=\":443\"; ma=2592000; v=\"39,43,46\"",
"connection": "keep-alive",
"server": "nginx",
"access-control-allow-credentials": "true",
"access-control-allow-origin": "https://www.xiaohongshu.com",
"cat-msg-id": "karen-gateway-snsdefault-0a0fe8fa.13162-479402-11597521",
"request-id": "99636281057f4a13918b3981e8a14682",
"x-kong-sign": "0",
"xhs-request-time": "0.052",
"xhs-real-ip": "120.228.242.210"
}
}
}
最后修改时间: 1 个月前