public class UserApi extends Object
https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN
构造器和说明 |
---|
UserApi() |
限定符和类型 | 方法和说明 |
---|---|
static ApiResult |
batchGetUserInfo(List<String> openIdList)
批量获取用户基本信息
|
static ApiResult |
batchGetUserInfo(String jsonStr)
批量获取用户基本信息, by Unas
|
static ApiResult |
getFollowers(String nextOpenid)
获取用户列表
|
static ApiResult |
getFollows()
获取用户列表
|
static ApiResult |
getUserInfo(String openId)
获取用户基本信息(包括UnionID机制)
|
static ApiResult |
updateRemark(String openid,
String remark)
设置备注名
|
public static ApiResult getUserInfo(String openId)
openId
- 普通用户的标识,对当前公众号唯一public static ApiResult getFollowers(String nextOpenid)
nextOpenid
- 第一个拉取的OPENID,不填默认从头开始拉取public static ApiResult getFollows()
public static ApiResult batchGetUserInfo(String jsonStr)
jsonStr
- json字符串public static ApiResult batchGetUserInfo(List<String> openIdList)
openIdList
- openid列表Copyright © 2017. All rights reserved.