public class WxopenAPI extends BaseAPI
| 构造器和说明 |
|---|
WxopenAPI() |
| 限定符和类型 | 方法和说明 |
|---|---|
static weixin.popular.bean.wxopen.TemplateAddResult |
templateAdd(String access_token,
String id,
List<Integer> keyword_id_list)
组合模板并添加至帐号下的个人模板库
|
static BaseResult |
templateDel(String access_token,
String template_id)
删除帐号下的某个模板
|
static weixin.popular.bean.wxopen.TemplateLibraryGetResult |
templateLibraryGet(String access_token,
String id)
获取模板库某个模板标题下关键词库
|
static weixin.popular.bean.wxopen.TemplateLibraryListResult |
templateLibraryList(String access_token,
int offset,
int count)
获取小程序模板库标题列表
|
static weixin.popular.bean.wxopen.TemplateListResult |
templateList(String access_token,
int offset,
int count)
获取帐号下已存在的模板列表
|
static BaseResult |
wxamplink(String access_token,
weixin.popular.bean.wxopen.Wxamplink wxamplink)
关联小程序
|
static weixin.popular.bean.wxopen.WxamplinkgetResult |
wxamplinkget(String access_token)
获取公众号关联的小程序
|
static BaseResult |
wxampunlink(String access_token,
String appid)
解除已关联的小程序
|
public static weixin.popular.bean.wxopen.WxamplinkgetResult wxamplinkget(String access_token)
access_token - access_tokenpublic static BaseResult wxamplink(String access_token, weixin.popular.bean.wxopen.Wxamplink wxamplink)
access_token - access_tokenwxamplink - wxamplinkpublic static BaseResult wxampunlink(String access_token, String appid)
access_token - access_tokenappid - appidpublic static weixin.popular.bean.wxopen.TemplateLibraryListResult templateLibraryList(String access_token, int offset, int count)
access_token - access_tokenoffset - offset和count用于分页,表示从offset开始,拉取count条记录,offset从0开始,count最大为20。count - offset和count用于分页,表示从offset开始,拉取count条记录,offset从0开始,count最大为20。public static weixin.popular.bean.wxopen.TemplateLibraryGetResult templateLibraryGet(String access_token, String id)
access_token - access_tokenid - 模板标题id,可通过接口获取,也可登录小程序后台查看获取public static weixin.popular.bean.wxopen.TemplateAddResult templateAdd(String access_token, String id, List<Integer> keyword_id_list)
access_token - access_tokenid - 模板标题id,可通过接口获取,也可登录小程序后台查看获取keyword_id_list - 开发者自行组合好的模板关键词列表,关键词顺序可以自由搭配(例如[3,5,4]或[4,5,3]),最多支持10个关键词组合public static weixin.popular.bean.wxopen.TemplateListResult templateList(String access_token, int offset, int count)
access_token - access_tokenoffset - offset和count用于分页,表示从offset开始,拉取count条记录,offset从0开始,count最大为20。最后一页的list长度可能小于请求的countcount - offset和count用于分页,表示从offset开始,拉取count条记录,offset从0开始,count最大为20。最后一页的list长度可能小于请求的countpublic static BaseResult templateDel(String access_token, String template_id)
access_token - access_tokentemplate_id - 要删除的模板idCopyright © 2021. All rights reserved.