发送(自定义模板消息)
开发中
POST
/push/ghost
最后修改时间:2024-05-20 07:48:15
请求参数
Body 参数application/json
account
string
用户的知了ID
msg_type
string
消息类型
title
string
标题
link
string
链接URL
data
array [object {2}]
模板内容数组
name
string
自定义名称
value
string
自定义内容
示例
{
"account": "请输入对方的知了ID",
"msg_type": "template",
"title": "请输入你的标题",
"link": "请输入你的链接",
"data": [
{
"name": "自定义name1",
"value": "自定义value1"
},
{
"name": "自定义name2",
"value": "自定义value2"
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/push/ghost' \
--header 'Content-Type: application/json' \
--data-raw '{
"account": "请输入对方的知了ID",
"msg_type": "template",
"title": "请输入你的标题",
"link": "请输入你的链接",
"data": [
{
"name": "自定义name1",
"value": "自定义value1"
},
{
"name":"自定义name2",
"value":"自定义value2"
}
]
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2024-05-20 07:48:15