public class SdkTicketApi extends Object
| Modifier and Type | Field and Description |
|---|---|
private AgentDetails |
agentDetails |
private static cn.felord.utils.AlternativeJdkIdGenerator |
ID_GENERATOR |
private JsApi |
jsApi |
private static String |
SIGNATURE_FORMATTER |
private WeComAgentTicketCacheable |
weComAgentTicketCacheable |
| Constructor and Description |
|---|
SdkTicketApi(WorkWeChatApiClient workWeChatApiClient,
WeComAgentTicketCacheable weComAgentTicketCacheable)
Instantiates a new Sdk ticket api.
|
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.rxjava3.core.Single<AgentConfigResponse> |
agentTicket(String url)
Agent ticket js ticket response.
|
io.reactivex.rxjava3.core.Single<CorpConfigResponse> |
corpTicket(String url)
Corp ticket js ticket response.
|
private JSignatureResponse |
sha1(String ticket,
String url) |
private static final String SIGNATURE_FORMATTER
private static final cn.felord.utils.AlternativeJdkIdGenerator ID_GENERATOR
private final AgentDetails agentDetails
private final JsApi jsApi
private final WeComAgentTicketCacheable weComAgentTicketCacheable
SdkTicketApi(WorkWeChatApiClient workWeChatApiClient, WeComAgentTicketCacheable weComAgentTicketCacheable)
workWeChatApiClient - the work we chat api clientweComAgentTicketCacheable - the we com agent ticket cacheablepublic io.reactivex.rxjava3.core.Single<CorpConfigResponse> corpTicket(String url)
url - the urlpublic io.reactivex.rxjava3.core.Single<AgentConfigResponse> agentTicket(String url)
url - the urlprivate JSignatureResponse sha1(String ticket, String url)
Copyright © 2023. All rights reserved.