微信消息接口
2019-03-11 18:28:14 23 举报
微信消息接口
作者其他创作
大纲/内容
http请求方式: POST地址:https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN参数:touser/msgtype/msgmenu/head_content/list/id/content/tail_content
返回参数:errcode/errmsg/msgid
发送模版消息给客户
参数:ToUserName/FromUserName/CreateTime/MsgType/Event/Latitude/Longitude/Precision
参数:ToUserName/FromUserName/CreateTime/MsgType/Content/MsgId
返回参数:errcode/errmsg
http请求方式: POST地址:https://api.weixin.qq.com/cgi-bin/template/api_set_industry?access_token=ACCESS_TOKEN参数:access_token/industry_id1/industry_id2
http请求方式: GET地址:https://api.weixin.qq.com/cgi-bin/template/get_industry?access_token=ACCESS_TOKEN参数:access_token
微信模版消息接口
获取公众号的自动回复规则
设置行业信息
点击菜单拉取消息时的事件推送
用户触发事件
参数:ToUserName/FromUserName/CreateTime/MsgType/Location_X/Location_Y/Scale/Label/MsgId
发送给用户
是否发送成功
发送客服消息-小程序卡片
返回参数:access_token/template_id/title/primary_industry/deputy_industry/content/example
参数:ToUserName/FromUserName/CreateTime/MsgType/PicUrl/MediaId/MsgId
获得模版列表
用户
参数:ToUserName/FromUserName/CreateTime/MsgType/Content
参数:ToUserName/FromUserName/MediaId/MsgType
已关注扫描二维码
发送客服消息-图片
获取所有客服账号信息
http请求方式: POST地址:https://api.weixin.qq.com/cgi-bin/template/del_private_template?access_token=ACCESS_TOKEN参数:access_token/template_id
参数:ToUserName/FromUserName/CreateTime/MsgType/Title/Description/Url/MsgId
用户向公众号发消息
返回参数:access_token/kf_account/kf_nick/kf_id/nickname/password/media
参数:is_add_friend_reply_open/is_autoreply_open\t/add_friend_autoreply_info/type/content/message_default_autoreply_info/keyword_autoreply_info/rule_name/create_time/reply_mode/keyword_list_info/match_mode/news_info/title/digest/author/show_cover/cover_url/content_url/source_url
被动回复语音消息
http请求方式: GET地址:https://api.weixin.qq.com/cgi-bin/template/get_all_private_template?access_token=ACCESS_TOKEN参数:access_token
发送客服消息-菜单消息
发送客服消息-语音
参数:ToUserName/FromUserName/CreateTime/MsgType/MediaId/ThumbMediaId/MsgId
http请求方式: POST地址: https://api.weixin.qq.com/cgi-bin/message/custom/typing?access_token=ACCESS_TOKEN参数:access_token/touser/command
根据配置好的策略为用户做相应推送
http请求方式: POST地址:https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN参数:touser/msgtype/news/articles/title/description/url/picurl
被动回复视频消息
http请求方式: POST/FORM地址:http://api.weixin.qq.com/customservice/kfaccount/uploadheadimg?access_token=ACCESS_TOKEN&kf_account=KFACCOUNT
http请求方式: POST地址:https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN参数:touser/msgtype/image/media_id
用户反馈
关注/取消事件
地理位置消息
添加客服帐号
查看行业信息
http请求方式: POST地址:https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN参数:touser/msgtype/mpnews/media_id
http请求方式: POST地址:https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN参数:touser/msgtype/voice/media_id
发送客服消息-视频
http请求方式: POST地址:https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN参数:touser/msgtype/music/musicurl/thumb_media_id/title/description/hqmusicurl
http请求方式: POST地址:https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN参数:touser/msgtype/video/media_id/thumb_media_id/title/description
http请求方式: GET地址:https://api.weixin.qq.com/cgi-bin/customservice/getkflist?access_token=ACCESS_TOKEN
被动回复图片消息
http请求方式: GET地址:https://api.weixin.qq.com/cgi-bin/get_current_autoreply_info?access_token=ACCESS_TOKEN
参数:ToUserName/FromUserName/CreateTime/MsgType/MediaId/Format/MsgId
MA
删除客服帐号
修改客服帐号
上报地理位置事件
参数:ToUserName/FromUserName/CreateTime/MsgType/Event
发送客服消息-卡券
参数:ToUserName/FromUserName/CreateTime/MsgType/Event/EventKey/Ticket
被动回复文字消息
http请求方式: POST地址:https://api.weixin.qq.com/customservice/kfaccount/update?access_token=ACCESS_TOKEN参数:kf_account/nickname/password
参数:ToUserName/FromUserName/CreateTime/MsgType/Event/EventKey
发送模版消息
参数:ToUserName/FromUserName/MsgType/ArticleCount/Articles/Title/Description/PicUrl/Url
微信
未关注扫描二维码
http请求方式: GET地址:https://api.weixin.qq.com/customservice/kfaccount/del?access_token=ACCESS_TOKEN参数:kf_account/nickname/password
http请求方式: POST地址:https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN参数:touser/msgtype/wxcard/card_id
发送客服输入状态
返回参数:access_token/primary_industry/secondary_industry
小视频消息
微信后台
微信客服消息接口
配置被动回复消息/事件触发操作
获得模版ID
参数:ToUserName/FromUserName/MediaId/MsgType/Title/Description
http请求方式: POST地址:https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=ACCESS_TOKEN参数:touser/template_id/url\t/miniprogram/appid/pagepath/data/color
http请求方式: POST地址:https://api.weixin.qq.com/customservice/kfaccount/add?access_token=ACCESS_TOKEN参数:kf_account/nickname/password
视频消息
被动回复图文消息
返回参数:\"template_id\":\"xxx\"
发送客服消息-图文外链
http请求方式: POST地址:https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN参数:touser/msgtype/text/content
链接消息
http请求方式: POST地址:https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN参数:touser/msgtype/miniprogrampage/title/appid/pagepath/thumb_media_id
点击菜单跳转链接时的事件推送
微信消息和微信事件
被动回复音乐消息
http请求方式: GET地址:https://api.weixin.qq.com/cgi-bin/template/api_add_template?access_token=ACCESS_TOKEN参数:access_token/template_id_short
设置客服账号头像
图片消息
发送客服消息-文本
删除模版
返回参数:ToUserName/FromUserName/CreateTime/MsgType/Event/MsgID/Status
发送客服消息-图文内链
返回参数:ToUserName/FromUserName/CreateTime/MsgType/Content/MsgId/bizmsgmenuid
参数:ToUserName/FromUserName/MediaId/MsgType/Title/Description/MusicURL/HQMusicUrl/ThumbMediaId
语音消息
发送客服消息-音乐
文本消息
0 条评论
下一页