C# Class Senparc.Weixin.QY.AdvancedAPIs.AsynchronousApi

异步任务接口
Show file Open project: JeffreySu/WeiXinMPSDK

Public Methods

Method Description
BatchInviteUser ( string accessToken, string toUser, string toParty, string toTag, string inviteTips, Asynchronous_CallBack callBack, int timeOut = Config.TIME_OUT ) : AsynchronousJobId

邀请成员关注

BatchInviteUserAsync ( string accessToken, string toUser, string toParty, string toTag, string inviteTips, Asynchronous_CallBack callBack, int timeOut = Config.TIME_OUT ) : Task

【异步方法】邀请成员关注

BatchReplaceParty ( string accessToken, string mediaId, Asynchronous_CallBack callBack, int timeOut = Config.TIME_OUT ) : AsynchronousJobId

全量覆盖部门 CSV模板下载地址:http://qydev.weixin.qq.com/batch_party_sample.csv 注意事项: 1.文件中存在、通讯录中也存在的部门,执行修改操作 2.文件中存在、通讯录中不存在的部门,执行添加操作 3.文件中不存在、通讯录中存在的部门,当部门为空时,执行删除操作 4.CSV文件中,部门名称、部门ID、父部门ID为必填字段,部门ID必须为数字;排序为可选字段,置空或填0不修改排序

BatchReplacePartyAsync ( string accessToken, string mediaId, Asynchronous_CallBack callBack, int timeOut = Config.TIME_OUT ) : Task

【异步方法】全量覆盖部门 CSV模板下载地址:http://qydev.weixin.qq.com/batch_party_sample.csv 注意事项: 1.文件中存在、通讯录中也存在的部门,执行修改操作 2.文件中存在、通讯录中不存在的部门,执行添加操作 3.文件中不存在、通讯录中存在的部门,当部门为空时,执行删除操作 4.CSV文件中,部门名称、部门ID、父部门ID为必填字段,部门ID必须为数字;排序为可选字段,置空或填0不修改排序

BatchReplaceUser ( string accessToken, string mediaId, Asynchronous_CallBack callBack, int timeOut = Config.TIME_OUT ) : AsynchronousJobId

全量覆盖成员 CSV模板下载地址:http://qydev.weixin.qq.com/batch_user_sample.csv 注意事项: 1.模板中的部门需填写部门ID,多个部门用分号分隔,部门ID必须为数字 2.文件中存在、通讯录中也存在的成员,完全以文件为准 3.文件中存在、通讯录中不存在的成员,执行添加操作 4.通讯录中存在、文件中不存在的成员,执行删除操作。出于安全考虑,如果需要删除的成员多于50人,且多于现有人数的20%以上,系统将中止导入并返回相应的错误码

BatchReplaceUserAsync ( string accessToken, string mediaId, Asynchronous_CallBack callBack, int timeOut = Config.TIME_OUT ) : Task

【异步方法】全量覆盖成员 CSV模板下载地址:http://qydev.weixin.qq.com/batch_user_sample.csv 注意事项: 1.模板中的部门需填写部门ID,多个部门用分号分隔,部门ID必须为数字 2.文件中存在、通讯录中也存在的成员,完全以文件为准 3.文件中存在、通讯录中不存在的成员,执行添加操作 4.通讯录中存在、文件中不存在的成员,执行删除操作。出于安全考虑,如果需要删除的成员多于50人,且多于现有人数的20%以上,系统将中止导入并返回相应的错误码

BatchSyncUser ( string accessToken, string mediaId, Asynchronous_CallBack callBack, int timeOut = Config.TIME_OUT ) : AsynchronousJobId

增量更新成员 CSV模板下载地址:http://qydev.weixin.qq.com/batch_user_sample.csv 注意事项: 1.模板中的部门需填写部门ID,多个部门用分号分隔,部门ID必须为数字 2.文件中存在、通讯录中也存在的成员,更新成员在文件中指定的字段值 3.文件中存在、通讯录中不存在的成员,执行添加操作 4.通讯录中存在、文件中不存在的成员,保持不变

BatchSyncUserAsync ( string accessToken, string mediaId, Asynchronous_CallBack callBack, int timeOut = Config.TIME_OUT ) : Task

【异步方法】增量更新成员 CSV模板下载地址:http://qydev.weixin.qq.com/batch_user_sample.csv 注意事项: 1.模板中的部门需填写部门ID,多个部门用分号分隔,部门ID必须为数字 2.文件中存在、通讯录中也存在的成员,更新成员在文件中指定的字段值 3.文件中存在、通讯录中不存在的成员,执行添加操作 4.通讯录中存在、文件中不存在的成员,保持不变

GetInviteUserResult ( string accessToken, string jobId ) : AsynchronousInviteUserResult

获取异步邀请成员关注结果

GetInviteUserResultAsync ( string accessToken, string jobId ) : Task

【异步方法】获取异步邀请成员关注结果

GetReplacePartyResult ( string accessToken, string jobId ) : AsynchronousReplacePartyResult

获取异步全面覆盖部门结果

GetReplacePartyResultAsync ( string accessToken, string jobId ) : Task

【异步方法】获取异步全面覆盖部门结果

GetReplaceUserResult ( string accessToken, string jobId ) : AsynchronousReplaceUserResult

获取异步更新或全面覆盖成员结果

GetReplaceUserResultAsync ( string accessToken, string jobId ) : Task

【异步方法】获取异步更新或全面覆盖成员结果

Method Details

BatchInviteUser() public static method

邀请成员关注
public static BatchInviteUser ( string accessToken, string toUser, string toParty, string toTag, string inviteTips, Asynchronous_CallBack callBack, int timeOut = Config.TIME_OUT ) : AsynchronousJobId
accessToken string 企业的access_token
toUser string 成员ID列表,多个接收者用‘|’分隔,最多支持1000个。
toParty string 部门ID列表,多个接收者用‘|’分隔,最多支持100个。
toTag string 标签ID列表,多个接收者用‘|’分隔。
inviteTips string 推送到微信上的提示语(只有认证号可以使用)。当使用微信推送时,该字段默认为“请关注XXX企业号”,邮件邀请时,该字段无效。
callBack Senparc.Weixin.QY.AdvancedAPIs.Asynchronous.Asynchronous_CallBack 回调信息。任务完成后,通过callback推送事件给企业。具体请参考应用回调模式中的相应选项
timeOut int
return Senparc.Weixin.QY.AdvancedAPIs.Asynchronous.AsynchronousJobId

BatchInviteUserAsync() public static method

【异步方法】邀请成员关注
public static BatchInviteUserAsync ( string accessToken, string toUser, string toParty, string toTag, string inviteTips, Asynchronous_CallBack callBack, int timeOut = Config.TIME_OUT ) : Task
accessToken string 企业的access_token
toUser string 成员ID列表,多个接收者用‘|’分隔,最多支持1000个。
toParty string 部门ID列表,多个接收者用‘|’分隔,最多支持100个。
toTag string 标签ID列表,多个接收者用‘|’分隔。
inviteTips string 推送到微信上的提示语(只有认证号可以使用)。当使用微信推送时,该字段默认为“请关注XXX企业号”,邮件邀请时,该字段无效。
callBack Senparc.Weixin.QY.AdvancedAPIs.Asynchronous.Asynchronous_CallBack 回调信息。任务完成后,通过callback推送事件给企业。具体请参考应用回调模式中的相应选项
timeOut int
return Task

BatchReplaceParty() public static method

全量覆盖部门 CSV模板下载地址:http://qydev.weixin.qq.com/batch_party_sample.csv 注意事项: 1.文件中存在、通讯录中也存在的部门,执行修改操作 2.文件中存在、通讯录中不存在的部门,执行添加操作 3.文件中不存在、通讯录中存在的部门,当部门为空时,执行删除操作 4.CSV文件中,部门名称、部门ID、父部门ID为必填字段,部门ID必须为数字;排序为可选字段,置空或填0不修改排序
public static BatchReplaceParty ( string accessToken, string mediaId, Asynchronous_CallBack callBack, int timeOut = Config.TIME_OUT ) : AsynchronousJobId
accessToken string
mediaId string 上传的csv文件的media_id
callBack Senparc.Weixin.QY.AdvancedAPIs.Asynchronous.Asynchronous_CallBack 回调信息。任务完成后,通过callback推送事件给企业。具体请参考应用回调模式中的相应选项
timeOut int
return Senparc.Weixin.QY.AdvancedAPIs.Asynchronous.AsynchronousJobId

BatchReplacePartyAsync() public static method

【异步方法】全量覆盖部门 CSV模板下载地址:http://qydev.weixin.qq.com/batch_party_sample.csv 注意事项: 1.文件中存在、通讯录中也存在的部门,执行修改操作 2.文件中存在、通讯录中不存在的部门,执行添加操作 3.文件中不存在、通讯录中存在的部门,当部门为空时,执行删除操作 4.CSV文件中,部门名称、部门ID、父部门ID为必填字段,部门ID必须为数字;排序为可选字段,置空或填0不修改排序
public static BatchReplacePartyAsync ( string accessToken, string mediaId, Asynchronous_CallBack callBack, int timeOut = Config.TIME_OUT ) : Task
accessToken string
mediaId string 上传的csv文件的media_id
callBack Senparc.Weixin.QY.AdvancedAPIs.Asynchronous.Asynchronous_CallBack 回调信息。任务完成后,通过callback推送事件给企业。具体请参考应用回调模式中的相应选项
timeOut int
return Task

BatchReplaceUser() public static method

全量覆盖成员 CSV模板下载地址:http://qydev.weixin.qq.com/batch_user_sample.csv 注意事项: 1.模板中的部门需填写部门ID,多个部门用分号分隔,部门ID必须为数字 2.文件中存在、通讯录中也存在的成员,完全以文件为准 3.文件中存在、通讯录中不存在的成员,执行添加操作 4.通讯录中存在、文件中不存在的成员,执行删除操作。出于安全考虑,如果需要删除的成员多于50人,且多于现有人数的20%以上,系统将中止导入并返回相应的错误码
public static BatchReplaceUser ( string accessToken, string mediaId, Asynchronous_CallBack callBack, int timeOut = Config.TIME_OUT ) : AsynchronousJobId
accessToken string
mediaId string 上传的csv文件的media_id
callBack Senparc.Weixin.QY.AdvancedAPIs.Asynchronous.Asynchronous_CallBack 回调信息。任务完成后,通过callback推送事件给企业。具体请参考应用回调模式中的相应选项
timeOut int
return Senparc.Weixin.QY.AdvancedAPIs.Asynchronous.AsynchronousJobId

BatchReplaceUserAsync() public static method

【异步方法】全量覆盖成员 CSV模板下载地址:http://qydev.weixin.qq.com/batch_user_sample.csv 注意事项: 1.模板中的部门需填写部门ID,多个部门用分号分隔,部门ID必须为数字 2.文件中存在、通讯录中也存在的成员,完全以文件为准 3.文件中存在、通讯录中不存在的成员,执行添加操作 4.通讯录中存在、文件中不存在的成员,执行删除操作。出于安全考虑,如果需要删除的成员多于50人,且多于现有人数的20%以上,系统将中止导入并返回相应的错误码
public static BatchReplaceUserAsync ( string accessToken, string mediaId, Asynchronous_CallBack callBack, int timeOut = Config.TIME_OUT ) : Task
accessToken string
mediaId string 上传的csv文件的media_id
callBack Senparc.Weixin.QY.AdvancedAPIs.Asynchronous.Asynchronous_CallBack 回调信息。任务完成后,通过callback推送事件给企业。具体请参考应用回调模式中的相应选项
timeOut int
return Task

BatchSyncUser() public static method

增量更新成员 CSV模板下载地址:http://qydev.weixin.qq.com/batch_user_sample.csv 注意事项: 1.模板中的部门需填写部门ID,多个部门用分号分隔,部门ID必须为数字 2.文件中存在、通讯录中也存在的成员,更新成员在文件中指定的字段值 3.文件中存在、通讯录中不存在的成员,执行添加操作 4.通讯录中存在、文件中不存在的成员,保持不变
public static BatchSyncUser ( string accessToken, string mediaId, Asynchronous_CallBack callBack, int timeOut = Config.TIME_OUT ) : AsynchronousJobId
accessToken string
mediaId string 上传的csv文件的media_id
callBack Senparc.Weixin.QY.AdvancedAPIs.Asynchronous.Asynchronous_CallBack 回调信息。任务完成后,通过callback推送事件给企业。具体请参考应用回调模式中的相应选项
timeOut int
return Senparc.Weixin.QY.AdvancedAPIs.Asynchronous.AsynchronousJobId

BatchSyncUserAsync() public static method

【异步方法】增量更新成员 CSV模板下载地址:http://qydev.weixin.qq.com/batch_user_sample.csv 注意事项: 1.模板中的部门需填写部门ID,多个部门用分号分隔,部门ID必须为数字 2.文件中存在、通讯录中也存在的成员,更新成员在文件中指定的字段值 3.文件中存在、通讯录中不存在的成员,执行添加操作 4.通讯录中存在、文件中不存在的成员,保持不变
public static BatchSyncUserAsync ( string accessToken, string mediaId, Asynchronous_CallBack callBack, int timeOut = Config.TIME_OUT ) : Task
accessToken string
mediaId string 上传的csv文件的media_id
callBack Senparc.Weixin.QY.AdvancedAPIs.Asynchronous.Asynchronous_CallBack 回调信息。任务完成后,通过callback推送事件给企业。具体请参考应用回调模式中的相应选项
timeOut int
return Task

GetInviteUserResult() public static method

获取异步邀请成员关注结果
public static GetInviteUserResult ( string accessToken, string jobId ) : AsynchronousInviteUserResult
accessToken string
jobId string
return Senparc.Weixin.QY.AdvancedAPIs.Asynchronous.AsynchronousInviteUserResult

GetInviteUserResultAsync() public static method

【异步方法】获取异步邀请成员关注结果
public static GetInviteUserResultAsync ( string accessToken, string jobId ) : Task
accessToken string
jobId string
return Task

GetReplacePartyResult() public static method

获取异步全面覆盖部门结果
public static GetReplacePartyResult ( string accessToken, string jobId ) : AsynchronousReplacePartyResult
accessToken string
jobId string
return Senparc.Weixin.QY.AdvancedAPIs.Asynchronous.AsynchronousReplacePartyResult

GetReplacePartyResultAsync() public static method

【异步方法】获取异步全面覆盖部门结果
public static GetReplacePartyResultAsync ( string accessToken, string jobId ) : Task
accessToken string
jobId string
return Task

GetReplaceUserResult() public static method

获取异步更新或全面覆盖成员结果
public static GetReplaceUserResult ( string accessToken, string jobId ) : AsynchronousReplaceUserResult
accessToken string
jobId string
return Senparc.Weixin.QY.AdvancedAPIs.Asynchronous.AsynchronousReplaceUserResult

GetReplaceUserResultAsync() public static method

【异步方法】获取异步更新或全面覆盖成员结果
public static GetReplaceUserResultAsync ( string accessToken, string jobId ) : Task
accessToken string
jobId string
return Task