public class JsSdkApi 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 |
|---|
JsSdkApi(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.
|
io.reactivex.rxjava3.core.Single<CorpConfigResponse> |
corpTicket(String url)
Corp ticket.
|
io.reactivex.rxjava3.core.Single<String> |
getLaunchCode(String operatorUserid,
String singleChatUserId)
打开个人聊天窗口schema
|
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
JsSdkApi(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 urlpublic io.reactivex.rxjava3.core.Single<String> getLaunchCode(String operatorUserid, String singleChatUserId)
在外部浏览器的web页面上,可通过该schema协议打开个人聊天窗口,目前仅支持windows和mac平台(仅3.1.6及以后版本支持)。 注意这是在外部浏览器web页面的调用方式,不需要引入企业微信的jssdk。
operatorUserid - the operator useridsingleChatUserId - the single chat user idprivate JSignatureResponse sha1(String ticket, String url)
Copyright © 2023. All rights reserved.