Package com.foxinmy.weixin4j.qy.api
Class ProviderApi
- java.lang.Object
-
- com.foxinmy.weixin4j.api.BaseApi
-
- com.foxinmy.weixin4j.qy.api.QyApi
-
- com.foxinmy.weixin4j.qy.api.ProviderApi
-
-
Field Summary
-
Fields inherited from class com.foxinmy.weixin4j.api.BaseApi
weixinExecutor
-
-
Constructor Summary
Constructors Constructor Description ProviderApi(TokenManager providerTokenManager, CacheStorager<Token> cacheStorager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLoginUrl(String corpId, LoginTargetType targetType, int agentId)
获取登录企业号官网的urlOUserInfo
getOUserInfoByCode(String authCode)
第三方套件获取企业号管理员登录信息-
Methods inherited from class com.foxinmy.weixin4j.qy.api.QyApi
weixinBundle
-
Methods inherited from class com.foxinmy.weixin4j.api.BaseApi
getRequestUri
-
-
-
-
Constructor Detail
-
ProviderApi
public ProviderApi(TokenManager providerTokenManager, CacheStorager<Token> cacheStorager)
-
-
Method Detail
-
getOUserInfoByCode
public OUserInfo getOUserInfoByCode(String authCode) throws WeixinException
第三方套件获取企业号管理员登录信息- Parameters:
authCode
- oauth2.0授权企业号管理员登录产生的code- Returns:
- 登陆信息
- Throws:
WeixinException
- See Also:
- 授权获取企业号管理员登录信息,
OUserInfo
-
getLoginUrl
public String getLoginUrl(String corpId, LoginTargetType targetType, int agentId) throws WeixinException
获取登录企业号官网的url- Parameters:
corpId
- oauth授权的corpidtargetType
- 登录跳转到企业号后台的目标页面agentId
- 授权方应用id 小余1时则不传递- Returns:
- 登陆URL
- Throws:
WeixinException
- See Also:
- 获取登录企业号官网的url
-
-