SaleSmartly
  1. V1
SaleSmartly
  • V1
    • 获取客户列表
      GET
    • 获取聊天记录列表
      GET
    • 获取成员关系表
      GET
    • 获取群表
      GET
    • 获取进退群记录表
      GET
    • 获取分流链接记录表
      GET
    • 获取分流链接表
      GET
    • 获取群发计划列表
      GET
    • 获取群发计划详情列表
      GET
    • 获取Whatsapp APP列表
      GET
    • 获取群成员表
      GET
    • 批量操作标签
      POST
    • 获取大报表
      GET
    • 获取团队管理成员
      GET
    • 获取社媒渠道分析
      GET
    • 获取Messenger列表
      GET
    • 获取成员分配明细渠道分析
      GET
    • 会话分配客服接口
      POST
    • 获取Whatsapp API 自助号列表
      GET
    • 获取Whatsapp Api模板列表
      GET
    • 发送WhatsApp Api模板消息
      POST
    • 更新客户资料
      POST
  • V2
    • 获取群成员表
      GET
  1. V1

发送WhatsApp Api模板消息

POST
https://api.salesmartly.com/api/whatsapp/send-whatsapp-template

请求参数

Header 参数
external-sign
string 
必需
发送请求所需签名(签名是以参数名称按字典序排序后衔接到token进行MD5加密后的值),详情查看:https://help.salesmartly.com/docs/API-Header
示例值:
string
Body 参数multipart/form-data
chat_user_id
string 
访客ID
必需
示例值:
project_id
string 
项目ID
必需
template_content
string 
模板消息
必需
template_variables
string 
模板消息变量
可选
示例值:
{"text":["111","222"],"image":"https://ss.com/ss.jpg","video":"https://ss.com/ss.mp4","file":"https://ss.com/ss.txt"}

示例代码

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://api.salesmartly.com/api/whatsapp/send-whatsapp-template' \
--header 'external-sign: string' \
--form 'chat_user_id=""' \
--form 'project_id=""' \
--form 'template_content=""' \
--form 'template_variables="{\"text\":[\"111\",\"222\"],\"image\":\"https://ss.com/ss.jpg\",\"video\":\"https://ss.com/ss.mp4\",\"file\":\"https://ss.com/ss.txt\"}"'

返回响应

🟢200成功
application/json
Body
data
object 
必需
count
object 
必需
code
integer 
必需
msg
string 
必需
示例
{
    "data": {},
    "count": {},
    "code": 0,
    "msg": "string"
}
上一页
获取Whatsapp Api模板列表
下一页
更新客户资料
Built with