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

发送(自定义模板消息)

开发中
POST
/push/app
最后修改时间:2024-05-20 07:48:03

请求参数

Body 参数application/json
appkey
string 
频道APPKEY
必需
msg_type
string 
消息类型
必需
text(文本消息),img(图片消息),template(模板消息)
title
string 
标题
可选
link
string 
链接URL
可选
data
array [object {2}] 
模板内容数组
可选
最大长度1024
name
string 
自定义名称
必需
value
string 
自定义内容
必需
示例
{
  "appkey": "填写频道的appkey",
  "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/app' \
--header 'Content-Type: application/json' \
--data-raw '{
    "appkey": "填写频道的appkey",
    "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:03
上一页
发送(图片消息)
下一页
发送(图片消息)
Built with