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

用户组接口
Show file Open project: JeffreySu/WeiXinMPSDK

Public Methods

Method Description
BatchUpdate ( string accessTokenOrAppId, int toGroupId, int timeOut = Config.TIME_OUT ) : WxJsonResult

批量移动用户分组

BatchUpdateAsync ( string accessTokenOrAppId, int toGroupId, int timeOut = Config.TIME_OUT ) : Task

【异步方法】批量移动用户分组

Create ( string accessTokenOrAppId, string name, int timeOut = Config.TIME_OUT ) : CreateGroupResult

创建分组

CreateAsync ( string accessTokenOrAppId, string name, int timeOut = Config.TIME_OUT ) : Task

【异步方法】创建分组

Delete ( string accessTokenOrAppId, int groupId, int timeOut = Config.TIME_OUT ) : WxJsonResult

删除分组

DeleteAsync ( string accessTokenOrAppId, int groupId, int timeOut = Config.TIME_OUT ) : Task

删除分组

Get ( string accessTokenOrAppId ) : GroupsJson

获取所有分组

GetAsync ( string accessTokenOrAppId ) : Task

【异步方法】获取所有分组

GetId ( string accessTokenOrAppId, string openId, int timeOut = Config.TIME_OUT ) : GetGroupIdResult

获取用户分组

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

【异步方法】获取用户分组

MemberUpdate ( string accessTokenOrAppId, string openId, int toGroupId, int timeOut = Config.TIME_OUT ) : WxJsonResult

移动用户分组

MemberUpdateAsync ( string accessTokenOrAppId, string openId, int toGroupId, int timeOut = Config.TIME_OUT ) : Task

【异步方法】移动用户分组

Update ( string accessTokenOrAppId, int id, string name, int timeOut = Config.TIME_OUT ) : WxJsonResult

修改分组名

UpdateAsync ( string accessTokenOrAppId, int id, string name, int timeOut = Config.TIME_OUT ) : Task

【异步方法】修改分组名

Method Details

BatchUpdate() public static method

批量移动用户分组
public static BatchUpdate ( string accessTokenOrAppId, int toGroupId, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string 调用接口凭证
toGroupId int 分组id
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.Entities.WxJsonResult

BatchUpdateAsync() public static method

【异步方法】批量移动用户分组
public static BatchUpdateAsync ( string accessTokenOrAppId, int toGroupId, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string 调用接口凭证
toGroupId int 分组id
timeOut int 代理请求超时时间(毫秒)
return Task

Create() public static method

创建分组
public static Create ( string accessTokenOrAppId, string name, int timeOut = Config.TIME_OUT ) : CreateGroupResult
accessTokenOrAppId string
name string 分组名字(30个字符以内)
timeOut int 代理请求超时时间(毫秒)
return CreateGroupResult

CreateAsync() public static method

【异步方法】创建分组
public static CreateAsync ( string accessTokenOrAppId, string name, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
name string 分组名字(30个字符以内)
timeOut int 代理请求超时时间(毫秒)
return Task

Delete() public static method

删除分组
public static Delete ( string accessTokenOrAppId, int groupId, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
groupId int 分组id
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.Entities.WxJsonResult

DeleteAsync() public static method

删除分组
public static DeleteAsync ( string accessTokenOrAppId, int groupId, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
groupId int 分组id
timeOut int 代理请求超时时间(毫秒)
return Task

Get() public static method

获取所有分组
public static Get ( string accessTokenOrAppId ) : GroupsJson
accessTokenOrAppId string
return GroupsJson

GetAsync() public static method

【异步方法】获取所有分组
public static GetAsync ( string accessTokenOrAppId ) : Task
accessTokenOrAppId string
return Task

GetId() public static method

获取用户分组
public static GetId ( string accessTokenOrAppId, string openId, int timeOut = Config.TIME_OUT ) : GetGroupIdResult
accessTokenOrAppId string
openId string
timeOut int 代理请求超时时间(毫秒)
return GetGroupIdResult

GetIdAsync() public static method

【异步方法】获取用户分组
public static GetIdAsync ( string accessTokenOrAppId, string openId, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
openId string
timeOut int 代理请求超时时间(毫秒)
return Task

MemberUpdate() public static method

移动用户分组
public static MemberUpdate ( string accessTokenOrAppId, string openId, int toGroupId, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
openId string
toGroupId int
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.Entities.WxJsonResult

MemberUpdateAsync() public static method

【异步方法】移动用户分组
public static MemberUpdateAsync ( string accessTokenOrAppId, string openId, int toGroupId, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
openId string
toGroupId int
timeOut int 代理请求超时时间(毫秒)
return Task

Update() public static method

修改分组名
public static Update ( string accessTokenOrAppId, int id, string name, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
id int
name string 分组名字(30个字符以内)
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.Entities.WxJsonResult

UpdateAsync() public static method

【异步方法】修改分组名
public static UpdateAsync ( string accessTokenOrAppId, int id, string name, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
id int
name string 分组名字(30个字符以内)
timeOut int 代理请求超时时间(毫秒)
return Task