public interface WxCpCorpGroupConfigStorage
限定符和类型 | 方法和说明 |
---|---|
boolean |
autoRefreshToken()
Auto refresh token boolean.
|
void |
expireCorpAccessToken(String corpId,
Integer agentId)
Expire access token.
|
Integer |
getAgentId()
Gets agent id.
|
ApacheHttpClientBuilder |
getApacheHttpClientBuilder()
Gets apache http client builder.
|
String |
getApiUrl(String path)
读取企业微信 API Url.
|
String |
getCorpAccessToken(String corpId,
Integer agentId)
授权企业的access token相关
|
WxAccessToken |
getCorpAccessTokenEntity(String corpId,
Integer agentId)
Gets access token entity.
|
Lock |
getCorpAccessTokenLock(String corpId,
Integer agentId)
Gets access token lock.
|
String |
getCorpId()
Gets corp id.
|
String |
getHttpProxyHost()
网络代理相关
|
String |
getHttpProxyPassword()
Gets http proxy password.
|
int |
getHttpProxyPort()
Gets http proxy port.
|
String |
getHttpProxyUsername()
Gets http proxy username.
|
boolean |
isCorpAccessTokenExpired(String corpId,
Integer agentId)
Is access token expired boolean.
|
void |
setAgentId(Integer agentId) |
void |
setBaseApiUrl(String baseUrl)
设置企业微信服务器 baseUrl.
|
void |
setCorpId(String corpId) |
void |
updateCorpAccessToken(String corpId,
Integer agentId,
String corpAccessToken,
int expiresInSeconds)
Update corp access token.
|
void setBaseApiUrl(String baseUrl)
baseUrl
- 企业微信服务器 UrlString getApiUrl(String path)
path
- the pathvoid updateCorpAccessToken(String corpId, Integer agentId, String corpAccessToken, int expiresInSeconds)
corpId
- agentId
- corpAccessToken
- the corp access tokenexpiresInSeconds
- the expires in secondsString getCorpAccessToken(String corpId, Integer agentId)
corpId
- the corp idagentId
- WxAccessToken getCorpAccessTokenEntity(String corpId, Integer agentId)
corpId
- the corp idagentId
- boolean isCorpAccessTokenExpired(String corpId, Integer agentId)
corpId
- the corp idagentId
- void expireCorpAccessToken(String corpId, Integer agentId)
corpId
- the corp idagentId
- String getHttpProxyHost()
int getHttpProxyPort()
String getHttpProxyUsername()
String getHttpProxyPassword()
ApacheHttpClientBuilder getApacheHttpClientBuilder()
boolean autoRefreshToken()
Lock getCorpAccessTokenLock(String corpId, Integer agentId)
corpId
- the corp idvoid setCorpId(String corpId)
void setAgentId(Integer agentId)
String getCorpId()
Integer getAgentId()
Copyright © 2024. All rights reserved.