public class WxaMessageApi extends Object
| 构造器和说明 |
|---|
WxaMessageApi() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ApiResult |
sendImage(String openId,
String mediaId)
发送图片消息
|
static ApiResult |
sendLink(String openId,
String title,
String description,
String url,
String thumbUrl)
发送图文链接
|
static ApiResult |
sendMiniProgramPage(String openId,
String title,
String pagePath,
String thumbMediaId)
发送 小程序卡片
|
static ApiResult |
sendText(String openId,
String text)
发送文本客服消息
|
public static ApiResult sendText(String openId, String text)
openId - openIdtext - 文本消息public static ApiResult sendImage(String openId, String mediaId)
openId - openIdmediaId - 图片媒体idpublic static ApiResult sendLink(String openId, String title, String description, String url, String thumbUrl)
openId - 用户的 openIdtitle - 消息标题description - 图文链接消息描述url - 跳转的链接thumbUrl - 图文链接消息的图片链接,支持 JPG、PNG 格式,较好的效果为大图 640 X 320,小图 80 X 80Copyright © 2021. All rights reserved.