C# Class Senparc.Weixin.Work.AdvancedAPIs.AppApi

管理企业号应用
Datei anzeigen Open project: JeffreySu/WeiXinMPSDK

Public Methods

Method Description
GetAppInfo ( string accessToken, int agentId, int timeOut = Config.TIME_OUT ) : GetAppInfoResult

获取企业号应用信息

GetAppInfoAsync ( string accessToken, int agentId, int timeOut = Config.TIME_OUT ) : Task

【异步方法】获取企业号应用信息

GetAppList ( string accessToken, int timeOut = Config.TIME_OUT ) : GetAppListResult

获取应用概况列表

GetAppListAsync ( string accessToken, int timeOut = Config.TIME_OUT ) : Task

【异步方法】获取应用概况列表

SetApp ( string accessToken, SetAppPostData data, int timeOut = Config.TIME_OUT ) : QyJsonResult

设置企业号应用 此App只能修改现有的并且有权限管理的应用,无法创建新应用(因为新应用没有权限)

SetAppAsync ( string accessToken, SetAppPostData data, int timeOut = Config.TIME_OUT ) : Task

【异步方法】设置企业号应用 此App只能修改现有的并且有权限管理的应用,无法创建新应用(因为新应用没有权限)

Method Details

GetAppInfo() public static method

获取企业号应用信息
public static GetAppInfo ( string accessToken, int agentId, int timeOut = Config.TIME_OUT ) : GetAppInfoResult
accessToken string
agentId int 企业应用的id,可在应用的设置页面查看
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.Work.AdvancedAPIs.App.GetAppInfoResult

GetAppInfoAsync() public static method

【异步方法】获取企业号应用信息
public static GetAppInfoAsync ( string accessToken, int agentId, int timeOut = Config.TIME_OUT ) : Task
accessToken string
agentId int 企业应用的id,可在应用的设置页面查看
timeOut int 代理请求超时时间(毫秒)
return Task

GetAppList() public static method

获取应用概况列表
public static GetAppList ( string accessToken, int timeOut = Config.TIME_OUT ) : GetAppListResult
accessToken string
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.Work.AdvancedAPIs.App.GetAppListResult

GetAppListAsync() public static method

【异步方法】获取应用概况列表
public static GetAppListAsync ( string accessToken, int timeOut = Config.TIME_OUT ) : Task
accessToken string
timeOut int 代理请求超时时间(毫秒)
return Task

SetApp() public static method

设置企业号应用 此App只能修改现有的并且有权限管理的应用,无法创建新应用(因为新应用没有权限)
public static SetApp ( string accessToken, SetAppPostData data, int timeOut = Config.TIME_OUT ) : QyJsonResult
accessToken string
data Senparc.Weixin.Work.AdvancedAPIs.App.SetAppPostData 设置应用需要Post的数据
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.Entities.QyJsonResult

SetAppAsync() public static method

【异步方法】设置企业号应用 此App只能修改现有的并且有权限管理的应用,无法创建新应用(因为新应用没有权限)
public static SetAppAsync ( string accessToken, SetAppPostData data, int timeOut = Config.TIME_OUT ) : Task
accessToken string
data Senparc.Weixin.Work.AdvancedAPIs.App.SetAppPostData 设置应用需要Post的数据
timeOut int 代理请求超时时间(毫秒)
return Task