知了提醒 OPENAPI
  1. 幽灵消息
知了提醒 OPENAPI
  • 频道消息
    • 发送(文本消息)
      POST
    • 发送(图片消息)
      POST
    • 发送(自定义模板消息)
      POST
  • 幽灵消息
    • 发送(图片消息)
      POST
    • 发送(文本消息)
      POST
    • 发送(自定义模板消息)
      POST
  • 消息推送
    POST
  1. 幽灵消息

发送(文本消息)

开发中
POST
/push/public
最后修改时间:2024-07-08 05:40:55

请求参数

Body 参数application/json
number
string 
对方公开号
必需
指定某个用户
msg_type
string 
消息类型
必需
text(文本消息),img(图片消息),template(模板消息)
content
string 
内容
必需
最大长度1024
示例
{
    "account": "请输入对方的知了ID",
    "msg_type": "text",
    "content": "hello"
}

示例代码

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/public' \
--header 'Content-Type: application/json' \
--data-raw '{
    "account": "请输入对方的知了ID",
    "msg_type": "text",
    "content": "hello"
}'

返回响应

🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2024-07-08 05:40:55
上一页
发送(图片消息)
下一页
发送(自定义模板消息)
Built with