public class WebhooksApi extends Object
| Constructor and Description |
|---|
WebhooksApi(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 a [paginated](#pagination) list of the webhooks registered by the calling app.
|
io.reactivex.Single<FailedWebhooks> |
getFailedWebhooks(Optional<Integer> maxResults,
Optional<Long> after,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get failed webhooks
Returns webhooks that have recently failed to be delivered to the requesting app after the maximum number of retries.
|
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 io.reactivex.Completable deleteWebhookById(ContainerForWebhookIDs containerForWebhookIDs, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
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)
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<FailedWebhooks> getFailedWebhooks(Optional<Integer> maxResults, Optional<Long> after, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
maxResults - The maximum number of webhooks to return per page. If obeying the maxResults directive would result in records with the same failure time being split across pages, the directive is ignored and all records with the same failure time included on the page. (optional)after - The time after which any webhook failure must have occurred for the record to be returned, expressed as milliseconds since the UNIX epoch. (optional)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)
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)
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.