向用户推送消息
相关内容:
该接口用于向用户推送客服消息。
接口地址
该地址为微信的接口地址。
请求方式 | 地址 |
---|---|
POST | https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN |
示例
{
"touser": "OPENID",
"msgtype": "text",
"text": {
"content": "Hello World"
}
}
字段说明
字段 | 字段类型 | 字段说明 |
---|---|---|
access_token | string | 微信接口调用凭证, 获取微信accessToken的方式 |
touser | string | 用户openid |
msgtype | string | 消息类型 |
content | string | 文本消息内容,msgtype="text" 时必填 |
该接口为微信接口,请按照微信提供的文档发放消息。
关于 MsgType
的详细说明,请参考 发送客服消息(微信文档) 。