- 开放接口-V1文档
- 开发前必读(Must Read Before Development)
- OAuth授权(Authorization)
- 用户管理(User Management)
- 用户群组
- 用户标签(User Tags)
- 活动管理
- 邮件管理
- 短信管理
- 来源管理
- 二维码管理
- 会员管理
- 成员管理
- 微信公众号
- 线索管理(Lead Management)
- 客户管理(Account Management)
- CRM 对象通用接口(CRM Object Interface)
- CTA管理
- 模板消息
- 隐私条款v1(Privacy Policy)
- 隐私条款v2
- 企业微信
- 评分管理
- 自定义事件
- 公司管理
- webhook
- 用户(User)
- 活动
- 线索(Lead)
- 线索事件说明文档(Description Document of Lead Event)
- 创建线索webhook推送事件(Create Push Events of User webhook)
- 线索更新(Lead Update)
- 线索状态更新(Lead Update Status)
- 线索作废(Lead Voided)
- 线索负责人变更(Lead Owner Change)
- 线索生命周期变更(Lead Lifecycle Change)
- 线索添加备注(Lead Add Notes)
- 线索添加协作人(Lead Add Collaborator)
- 线索移除协作人(Lead Remove Collaborator)
- 公海池变更(Lead Pool Change)
- 线索关联(Lead Association)
- 线索恢复(Lead Restore)
- 线索来源 (Lead Source)
- 客户(Account)
- 模板消息(Template Message)
- Jingtrack
- 评分(Scoring)
- 用户行为(User Action)
- 系统行为(System Action)
创建模板消息推送
live-阿里云(Alibaba Cloud)
https://jingopenapi.jingsocial.com
live-阿里云(Alibaba Cloud)
https://jingopenapi.jingsocial.com
POST
https://jingopenapi.jingsocial.com
请求参数
Header 参数
app_id
string
应用id
默认值:
{{app_id}}
access_token
string
应用密钥
默认值:
{{access_token}}
Body 参数application/json
wechat_official_account_id
string
必需
scene_id
integer
必需
push_type
string
推送对象类型
push_data
array[string]
必需
extraParam
object
可选
extra_url_params
string
必需
meetting_title
string
必需
meetting_time
string
必需
url
string
url
miniprogram
object
小程序
appid
string
小程序appid
pagepath
string
小程序路径
示例
{
"wechat_official_account_id": "59",
"scene_id": 2031,
"push_type": "openids",
"push_data": [
"ohaIcwF_WQnzmfF2bpBi-krtObV4"
],
"extraParam": {
"url": "fanyi.baidu.com/"
},
"url": "https://fanyi.baidu.com/",
"miniprogram": {
"appid": "wx7a92039c57638182",
"pagepath": "pages/index/index/index"
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://jingopenapi.jingsocial.com/v2/template/message/pushTask/create' \
--header 'app_id;' \
--header 'access_token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"wechat_official_account_id":"59",
"scene_id": 2031,
"push_type": "openids",
"push_data": [
"ohaIcwF_WQnzmfF2bpBi-krtObV4"
],
"extraParam": {
"url":"fanyi.baidu.com/"
},
"url":"https://fanyi.baidu.com/",
"miniprogram":{
"appid":"wx7a92039c57638182",
"pagepath":"pages/index/index/index"
}
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
data
object
必需
push_id
integer
推送任务id
request_id
string
必需
timestamp
number
必需
message
string
可选
示例
{
"code": 0,
"data": {
"push_id": 7661
},
"message": "success"
}
🟢200OK