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)
发送机器人信息
|
MediaResponse |
uploadMedia(String webhookKey,
MultipartResource resource)
上传素材
|
private final InternalWebhookApi internalWebhookApi
WebhookApi(retrofit2.Retrofit retrofit)
retrofit - the retrofitpublic <B extends WebhookBody> WeComResponse send(String key, B body)
key - the keybody - the bodypublic MediaResponse uploadMedia(String webhookKey, MultipartResource resource)
webhookKey - the webhook keyresource - the resourceCopyright © 2023. All rights reserved.