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
-
-
Constructor Summary
Constructors Constructor Description ProviderApi(com.foxinmy.weixin4j.token.TokenManager providerTokenManager, com.foxinmy.weixin4j.cache.CacheStorager<com.foxinmy.weixin4j.model.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
-
-
-
-
Method Detail
-
getOUserInfoByCode
public OUserInfo getOUserInfoByCode(String authCode) throws com.foxinmy.weixin4j.exception.WeixinException
第三方套件获取企业号管理员登录信息- Parameters:
authCode
- oauth2.0授权企业号管理员登录产生的code- Returns:
- 登陆信息
- Throws:
com.foxinmy.weixin4j.exception.WeixinException
- See Also:
- 授权获取企业号管理员登录信息,
OUserInfo
-
getLoginUrl
public String getLoginUrl(String corpId, LoginTargetType targetType, int agentId) throws com.foxinmy.weixin4j.exception.WeixinException
获取登录企业号官网的url- Parameters:
corpId
- oauth授权的corpidtargetType
- 登录跳转到企业号后台的目标页面agentId
- 授权方应用id 小余1时则不传递- Returns:
- 登陆URL
- Throws:
com.foxinmy.weixin4j.exception.WeixinException
- See Also:
- 获取登录企业号官网的url
-
-