public interface WxMpUserService
| 限定符和类型 | 方法和说明 | 
|---|---|
| List<WxMpChangeOpenid> | changeOpenid(String fromAppid,
            List<String> openidList)
 微信公众号主体变更迁移用户 openid
 详情请见: http://kf.qq.com/faq/170221aUnmmU170221eUZJNf.html
 http://kf.qq.com/faq/1901177NrqMr190117nqYJze.html
 http请求方式: POST
 接口地址:https://api.weixin.qq.com/cgi-bin/changeopenid? | 
| WxMpUser | userInfo(String openid)
 获取用户基本信息(语言为默认的zh_CN 简体)
 详情请见: http://mp.weixin.qq.com/wiki? | 
| WxMpUser | userInfo(String openid,
        String lang)
 获取用户基本信息
 详情请见: http://mp.weixin.qq.com/wiki? | 
| List<WxMpUser> | userInfoList(List<String> openidList)
 获取用户基本信息列表
 开发者可通过该接口来批量获取用户基本信息。 | 
| List<WxMpUser> | userInfoList(WxMpUserQuery userQuery)
 获取用户基本信息列表
 开发者可通过该接口来批量获取用户基本信息。 | 
| WxMpUserList | userList()
 获取用户列表(全部)
 公众号可通过本接口来获取账号的关注者列表,
 关注者列表由一串OpenID(加密后的微信号,每个用户对每个公众号的OpenID是唯一的)组成。 | 
| WxMpUserList | userList(String nextOpenid)
 获取用户列表
 公众号可通过本接口来获取账号的关注者列表,
 关注者列表由一串OpenID(加密后的微信号,每个用户对每个公众号的OpenID是唯一的)组成。 | 
| void | userUpdateRemark(String openid,
                String remark)
 设置用户备注名
 详情请见: http://mp.weixin.qq.com/wiki? | 
void userUpdateRemark(String openid, String remark) throws WxErrorException
设置用户备注名 详情请见: http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140838&token=&lang=zh_CN http请求方式: POST(请使用https协议) 接口地址:https://api.weixin.qq.com/cgi-bin/user/info/updateremark?access_token=ACCESS_TOKEN
openid - 用户openidremark - 备注名WxErrorException - the wx error exceptionWxMpUser userInfo(String openid) throws WxErrorException
获取用户基本信息(语言为默认的zh_CN 简体) 详情请见: http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140839&token=&lang=zh_CN http请求方式: GET 接口地址:https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN
openid - 用户openidWxErrorException - the wx error exceptionWxMpUser userInfo(String openid, String lang) throws WxErrorException
获取用户基本信息 详情请见: http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140839&token=&lang=zh_CN http请求方式: GET 接口地址:https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN
openid - 用户openidlang - 语言,zh_CN 简体(默认),zh_TW 繁体,en 英语WxErrorException - the wx error exceptionList<WxMpUser> userInfoList(List<String> openidList) throws WxErrorException
获取用户基本信息列表 开发者可通过该接口来批量获取用户基本信息。最多支持一次拉取100条。 详情请见: http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140839&token=&lang=zh_CN http请求方式: POST 接口地址:https://api.weixin.qq.com/cgi-bin/user/info/batchget?access_token=ACCESS_TOKEN
openidList - 用户openid列表WxErrorException - the wx error exceptionList<WxMpUser> userInfoList(WxMpUserQuery userQuery) throws WxErrorException
获取用户基本信息列表 开发者可通过该接口来批量获取用户基本信息。最多支持一次拉取100条。 详情请见: http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140839&token=&lang=zh_CN http请求方式: POST 接口地址:https://api.weixin.qq.com/cgi-bin/user/info/batchget?access_token=ACCESS_TOKEN
userQuery - 详细查询参数WxErrorException - the wx error exceptionWxMpUserList userList(String nextOpenid) throws WxErrorException
获取用户列表 公众号可通过本接口来获取账号的关注者列表, 关注者列表由一串OpenID(加密后的微信号,每个用户对每个公众号的OpenID是唯一的)组成。 一次拉取调用最多拉取10000个关注者的OpenID,可以通过多次拉取的方式来满足需求。 详情请见: http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140840&token=&lang=zh_CN http请求方式: GET(请使用https协议) 接口地址:https://api.weixin.qq.com/cgi-bin/user/get?access_token=ACCESS_TOKEN&next_openid=NEXT_OPENID
nextOpenid - 可选,第一个拉取的OPENID,null为从头开始拉取WxErrorException - the wx error exceptionWxMpUserList userList() throws WxErrorException
获取用户列表(全部) 公众号可通过本接口来获取账号的关注者列表, 关注者列表由一串OpenID(加密后的微信号,每个用户对每个公众号的OpenID是唯一的)组成。
WxErrorException - the wx error exception#userList(java.lang.String)的增强,内部进行了多次数据拉取的汇总 详情请见: http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140840&token=&lang=zh_CN http请求方式: GET(请使用https协议) 接口地址:https://api.weixin.qq.com/cgi-bin/user/get?access_token=ACCESS_TOKEN&next_openid=NEXT_OPENID List<WxMpChangeOpenid> changeOpenid(String fromAppid, List<String> openidList) throws WxErrorException
微信公众号主体变更迁移用户 openid 详情请见: http://kf.qq.com/faq/170221aUnmmU170221eUZJNf.html http://kf.qq.com/faq/1901177NrqMr190117nqYJze.html http请求方式: POST 接口地址:https://api.weixin.qq.com/cgi-bin/changeopenid?access_token=ACCESS_TOKEN
fromAppid - 原公众号的 appidopenidList - 需要转换的openid,这些必须是旧账号目前关注的才行,否则会出错;一次最多100个WxErrorException - the wx error exceptionCopyright © 2024. All rights reserved.