public class WebhookApi extends Object
| Modifier and Type | Field and Description |
|---|---|
private InternalWebhookApi |
internalWebhookApi |
| Constructor and Description |
|---|
WebhookApi(retrofit2.Retrofit retrofit)
Instantiates a new Webhook api.
|
| Modifier and Type | Method and Description |
|---|---|
<B extends WebhookBody> |
send(String key,
B body)
发送机器人信息
|
io.reactivex.rxjava3.core.Single<MediaResponse> |
uploadMedia(String webhookKey,
MultipartResource resource)
上传素材
|
private final InternalWebhookApi internalWebhookApi
WebhookApi(retrofit2.Retrofit retrofit)
retrofit - the retrofitpublic <B extends WebhookBody> io.reactivex.rxjava3.core.Single<WeComResponse> send(String key, B body)
B - the type parameterkey - the keybody - the bodypublic io.reactivex.rxjava3.core.Single<MediaResponse> uploadMedia(String webhookKey, MultipartResource resource)
webhookKey - the webhook keyresource - the resourceCopyright © 2023. All rights reserved.