public class DynamicWebhookApi extends Object
| Constructor and Description |
|---|
DynamicWebhookApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Completable |
deleteWebhookById(ContainerForWebhookIDs containerForWebhookIDs,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Delete webhooks by ID
Removes webhooks by ID.
|
io.reactivex.Single<PageBeanWebhook> |
getDynamicWebhooksForApp(Optional<Long> startAt,
Optional<Integer> maxResults,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get dynamic webhooks for app
Returns the webhooks registered by the calling app.
|
io.reactivex.Single<WebhooksExpirationDate> |
refreshWebhooks(ContainerForWebhookIDs containerForWebhookIDs,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Extend webhook life
Webhooks registered through the REST API expire after 30 days.
|
io.reactivex.Single<ContainerForRegisteredWebhooks> |
registerDynamicWebhooks(WebhookRegistrationDetails webhookRegistrationDetails,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Register dynamic webhooks
Registers webhooks.
|
public DynamicWebhookApi(org.everit.http.restclient.RestClient restClient)
public io.reactivex.Completable deleteWebhookById(ContainerForWebhookIDs containerForWebhookIDs, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Removes webhooks by ID. Only webhooks registered by the calling Connect app are removed. If webhooks created by other apps are specified, they are ignored.
Permissions required: Only Connect apps can use this operation.
containerForWebhookIDs - (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<PageBeanWebhook> getDynamicWebhooksForApp(Optional<Long> startAt, Optional<Integer> maxResults, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns the webhooks registered by the calling app.
Permissions required: Only Connect apps can use this operation.
startAt - The index of the first item to return in a page of results (page offset).
(optional, default to 0l)maxResults - The maximum number of items to return per page.
(optional, default to 100)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<WebhooksExpirationDate> refreshWebhooks(ContainerForWebhookIDs containerForWebhookIDs, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Webhooks registered through the REST API expire after 30 days. Call this resource periodically to keep them alive.
Unrecognized webhook IDs (nonexistent or belonging to other apps) are ignored. Permissions required: Only Connect apps can use this operation.
containerForWebhookIDs - (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<ContainerForRegisteredWebhooks> registerDynamicWebhooks(WebhookRegistrationDetails webhookRegistrationDetails, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Registers webhooks.
Permissions required: Only Connect apps can use this operation.
webhookRegistrationDetails - (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
Copyright © 2011–2021 Everit Kft.. All rights reserved.