| 程序包 | 说明 |
|---|---|
| cn.chiship.sdk.third.wechat.core.common | |
| cn.chiship.sdk.third.wechat.core.util | |
| cn.chiship.sdk.third.wechat.network |
| 限定符和类型 | 方法和说明 |
|---|---|
static WeChatCommonResult |
WeiXinMiniProgramCommonConstants.analysisPubHttpResponse(String responseResult) |
static WeChatCommonResult |
WeChatCommonConstants.analysisPubHttpResponse(String responseResult) |
static WeChatCommonResult |
WeChatCommonResult.error(BaseResult baseResult) |
static WeChatCommonResult |
WeChatCommonResult.error(BaseResultEnum baseResultEnum,
Object data) |
static WeChatCommonResult |
WeChatCommonResult.error(Object data) |
static WeChatCommonResult |
WeChatCommonResult.ok(Object data) |
| 限定符和类型 | 方法和说明 |
|---|---|
WeChatCommonResult |
WxBizDataCrypt.decryptData()
AES解密
填充模式AES/CBC/PKCS7Padding
解密模式128
|
| 限定符和类型 | 方法和说明 |
|---|---|
WeChatCommonResult |
WeiXinPubServicesUtil.addMaterial(File file,
MaterialTypeEnum materialTypeEnum)
新增其他类型永久素材
|
WeChatCommonResult |
WeiXinPubServicesUtil.addMaterial(File file,
String title,
String desc,
MaterialTypeEnum materialTypeEnum)
新增其他类型永久素材
|
WeChatCommonResult |
WeiXinMiniProgramServicesUtil.code2Session(String code)
通过code换取网页授权access_token
|
WeChatCommonResult |
WeiXinPubServicesUtil.createMenu(Menu menu)
创建自定义菜单
1.自定义菜单最多包括3个一级菜单,每个一级菜单最多包含5个二级菜单。
|
WeChatCommonResult |
WeiXinPubServicesUtil.createTag(String tagName)
创建微信用户标签
|
WeChatCommonResult |
WeiXinMiniProgramServicesUtil.decryptingOpenData(String encryptedData,
String iv,
String sessionKey)
解密开放数据
|
WeChatCommonResult |
WeiXinPubServicesUtil.deleteTag(String tagId)
删除用户标签
|
WeChatCommonResult |
WeiXinPubServicesUtil.deleteTemplate(String templateId)
删除消息模板
|
WeChatCommonResult |
WeiXinPubServicesUtil.getAccessUserInfo(String token,
String openId)
拉取用户信息(需scope为 snsapi_userinfo)
获得授权的用户信息
|
WeChatCommonResult |
WeiXinPubServicesUtil.getAllPrivateMessageTemplate()
获取模板列表
|
WeChatCommonResult |
WeiXinPubServicesUtil.getBatchMaterial(Integer pageIndex,
MaterialTypeEnum materialTypeEnum)
素材列表
|
WeChatCommonResult |
WeiXinPubServicesUtil.getMaterial(String mediaId)
获取永久素材
|
WeChatCommonResult |
WeiXinPubServicesUtil.getQrCodeByForever(String sceneStr)
永久二维码
|
WeChatCommonResult |
WeiXinPubServicesUtil.getQrCodeByTemporary(Integer expireSeconds,
String sceneStr)
临时二维码
|
WeChatCommonResult |
WeiXinPubServicesUtil.getTags()
获得微信标签
|
WeChatCommonResult |
WeiXinPubServicesUtil.getToken()
获得accessToken
1.access_token是公众号的全局唯一接口调用凭据,公众号调用各接口时都需使用access_token。
|
WeChatCommonResult |
WeiXinPubServicesUtil.getUserInfo(String openId)
获取用户基本信息
1.在关注者与公众号产生消息交互后,公众号可获得关注者的OpenID(加密后的微信号,每个用户对每个公众号的OpenID是唯一的。
|
WeChatCommonResult |
WeiXinPubServicesUtil.getUserInfo(String openId,
WeiXinLanguageEnum weiXinLanguageEnum)
获得用户基本信息
|
WeChatCommonResult |
WeiXinPubServicesUtil.memberBatchTag(List<String> openIds,
String tagId)
用户绑定标签
|
WeChatCommonResult |
WeiXinPubServicesUtil.memberBatchTag(String openId,
String tagId)
用户绑定标签
|
WeChatCommonResult |
WeiXinPubServicesUtil.memberBatchUnTag(List<String> openIds,
String tagId)
用户取消绑定标签
|
WeChatCommonResult |
WeiXinPubServicesUtil.memberBatchUnTag(String openId,
String tagId)
用户取消绑定标签
|
WeChatCommonResult |
WeiXinMiniProgramServicesUtil.messageSubscribeSend(Template template)
订阅消息发送
待整理
|
WeChatCommonResult |
WeiXinPubServicesUtil.messageTemplateSend(MessageTemplateSend messageTemplateSend)
模板消息发送
|
WeChatCommonResult |
WeiXinPubServicesUtil.oauth2AccessToken(String code)
通过code换取网页授权access_token
网页授权 第二步
|
WeChatCommonResult |
WeiXinPubServicesUtil.syncUser()
第一个拉取的OPENID,不填默认从头开始拉取
1.公众号可通过本接口来获取帐号的关注者列表,关注者列表由一串OpenID(加密后的微信号,每个用户对每个公众号的OpenID是唯一的)组成。
|
WeChatCommonResult |
WeiXinPubServicesUtil.syncUser(String nextOpenId) |
WeChatCommonResult |
WeiXinPubServicesUtil.tagGetUser(String tagId)
获得标签下用户
|
WeChatCommonResult |
WeiXinPubServicesUtil.tagGetUser(String tagId,
String nextOpenId)
获得标签下用户
|
WeChatCommonResult |
WeiXinPubServicesUtil.updateTag(String tagId,
String tagName)
编辑用户标签
|
WeChatCommonResult |
WeiXinPubServicesUtil.updateUserRemark(String openId,
String remark)
设置用户备注名
|
Copyright © 2022. All rights reserved.