发送卡片消息
POST
/api/SendRichText
请求参数
Body 参数application/json
name
string
左下显示的名字
account
string
必需
title
string
标题,最多两行
digest
string
摘要,三行
url
string
点击后跳转的链接
thumb_url
string
缩略图的链接
receiver
string
必需
示例
{
"name": "关注公众号: 一条爱睡觉的咸鱼",
"account": "gh_0c617dab0f5f",
"title": "测试",
"digest": "测试",
"url": "https://apifox.com/apidoc/shared-edbfcebc-6263-4e87-9813-54520c1b3c19",
"thumb_url": "https://wx.qlogo.cn/mmopen/r48cSSlr7jgFutEJFpmolCux6WWZsm92KLTOmWITDvqPVIO5kLpTblfqsxuGzaZvGkgHsBOohkWuZlZuF48hRVEIcjRu1wVF/64",
"receiver": "39139856094@chatroom"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/SendRichText' \
--header 'Content-Type: application/json' \
--data-raw '{
"name":"关注公众号: 一条爱睡觉的咸鱼",
"account":"gh_0c617dab0f5f",
"title":"测试",
"digest":"测试",
"url":"https://apifox.com/apidoc/shared-edbfcebc-6263-4e87-9813-54520c1b3c19",
"thumb_url":"https://wx.qlogo.cn/mmopen/r48cSSlr7jgFutEJFpmolCux6WWZsm92KLTOmWITDvqPVIO5kLpTblfqsxuGzaZvGkgHsBOohkWuZlZuF48hRVEIcjRu1wVF/64",
"receiver":"39139856094@chatroom"
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2024-06-28 23:41:29