C# Class Senparc.Weixin.MP.AdvancedAPIs.UserApi

用户接口
Mostrar archivo Open project: JeffreySu/WeiXinMPSDK

Public Methods

Method Description
BatchGetUserInfo ( string accessTokenOrAppId, List userList, int timeOut = Config.TIME_OUT ) : BatchGetUserInfoJsonResult

批量获取用户基本信息

BatchGetUserInfoAsync ( string accessTokenOrAppId, List userList, int timeOut = Config.TIME_OUT ) : Task

【异步方法】批量获取用户基本信息

Get ( string accessTokenOrAppId, string nextOpenId ) : OpenIdResultJson

获取关注者OpenId信息

GetAsync ( string accessTokenOrAppId, string nextOpenId ) : Task

【异步方法】获取关注者OpenId信息

Info ( string accessTokenOrAppId, string openId, Language lang = Language.zh_CN ) : UserInfoJson

获取用户信息

InfoAsync ( string accessTokenOrAppId, string openId, Language lang = Language.zh_CN ) : Task

【异步方法】获取用户信息

UpdateRemark ( string accessTokenOrAppId, string openId, string remark, int timeOut = Config.TIME_OUT ) : WxJsonResult

修改关注者备注信息

UpdateRemarkAsync ( string accessTokenOrAppId, string openId, string remark, int timeOut = Config.TIME_OUT ) : Task

【异步方法】修改关注者备注信息

Method Details

BatchGetUserInfo() public static method

批量获取用户基本信息
public static BatchGetUserInfo ( string accessTokenOrAppId, List userList, int timeOut = Config.TIME_OUT ) : BatchGetUserInfoJsonResult
accessTokenOrAppId string
userList List
timeOut int
return Senparc.Weixin.MP.AdvancedAPIs.User.BatchGetUserInfoJsonResult

BatchGetUserInfoAsync() public static method

【异步方法】批量获取用户基本信息
public static BatchGetUserInfoAsync ( string accessTokenOrAppId, List userList, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
userList List
timeOut int
return Task

Get() public static method

获取关注者OpenId信息
public static Get ( string accessTokenOrAppId, string nextOpenId ) : OpenIdResultJson
accessTokenOrAppId string
nextOpenId string
return OpenIdResultJson

GetAsync() public static method

【异步方法】获取关注者OpenId信息
public static GetAsync ( string accessTokenOrAppId, string nextOpenId ) : Task
accessTokenOrAppId string
nextOpenId string
return Task

Info() public static method

获取用户信息
public static Info ( string accessTokenOrAppId, string openId, Language lang = Language.zh_CN ) : UserInfoJson
accessTokenOrAppId string 调用接口凭证
openId string 普通用户的标识,对当前公众号唯一
lang Language 返回国家地区语言版本,zh_CN 简体,zh_TW 繁体,en 英语
return UserInfoJson

InfoAsync() public static method

【异步方法】获取用户信息
public static InfoAsync ( string accessTokenOrAppId, string openId, Language lang = Language.zh_CN ) : Task
accessTokenOrAppId string 调用接口凭证
openId string 普通用户的标识,对当前公众号唯一
lang Language 返回国家地区语言版本,zh_CN 简体,zh_TW 繁体,en 英语
return Task

UpdateRemark() public static method

修改关注者备注信息
public static UpdateRemark ( string accessTokenOrAppId, string openId, string remark, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string 调用接口凭证
openId string 普通用户的标识,对当前公众号唯一
remark string 新的备注名,长度必须小于30字符
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.Entities.WxJsonResult

UpdateRemarkAsync() public static method

【异步方法】修改关注者备注信息
public static UpdateRemarkAsync ( string accessTokenOrAppId, string openId, string remark, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string 调用接口凭证
openId string 普通用户的标识,对当前公众号唯一
remark string 新的备注名,长度必须小于30字符
timeOut int 代理请求超时时间(毫秒)
return Task