Klasse AsyncWebhookResource
java.lang.Object
com.cloudconvert.resource.AbstractResource
com.cloudconvert.resource.AbstractWebhooksResource<AsyncResult<WebhookResponse>,AsyncResult<Pageable<WebhookResponse>>,AsyncResult<Void>>
com.cloudconvert.resource.async.AsyncWebhookResource
- Alle implementierten Schnittstellen:
Closeable,AutoCloseable
public class AsyncWebhookResource
extends AbstractWebhooksResource<AsyncResult<WebhookResponse>,AsyncResult<Pageable<WebhookResponse>>,AsyncResult<Void>>
-
Feldübersicht
Von Klasse geerbte Felder com.cloudconvert.resource.AbstractWebhooksResource
HMAC_SHA256, PATH_SEGMENT_WEBHOOKSVon Klasse geerbte Felder com.cloudconvert.resource.AbstractResource
BEARER, HEADER_AUTHORIZATION, HEADER_USER_AGENT, INPUT_STREAM_TYPE_REFERENCE, JOB_RESPONSE_PAGEABLE_TYPE_REFERENCE, JOB_RESPONSE_TYPE_REFERENCE, MAP_STRING_TO_OBJECT_TYPE_REFERENCE, OPERATION_RESPONSE_PAGEABLE_TYPE_REFERENCE, TASK_RESPONSE_PAGEABLE_TYPE_REFERENCE, TASK_RESPONSE_TYPE_REFERENCE, USER_RESPONSE_TYPE_REFERENCE, V2, VALUE_USER_AGENT, VOID_TYPE_REFERENCE, WEBHOOKS_RESPONSE_PAGEABLE_TYPE_REFERENCE, WEBHOOKS_RESPONSE_TYPE_REFERENCE -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungAsyncWebhookResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider, AsyncRequestExecutor asyncRequestExecutor) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidclose()create(@NotNull WebhookRequest webhookRequest) Create a webhook.Delete a webhook.list()List all webhooks.List all webhooks.list(@NotNull Map<Filter, String> filters, @Nullable Pagination pagination) List all webhooks.Von Klasse geerbte Methoden com.cloudconvert.resource.AbstractWebhooksResource
getCreateHttpUriRequest, getDeleteHttpUriRequest, getListHttpUriRequest, verifyVon Klasse geerbte Methoden com.cloudconvert.resource.AbstractResource
getHttpEntity, getHttpEntity, getHttpUriRequest, getHttpUriRequest, getJson, getSyncUri, getSyncUri, getUri, getUri, requestToMap
-
Konstruktordetails
-
AsyncWebhookResource
public AsyncWebhookResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider, AsyncRequestExecutor asyncRequestExecutor)
-
-
Methodendetails
-
create
public AsyncResult<WebhookResponse> create(@NotNull @NotNull WebhookRequest webhookRequest) throws IOException, URISyntaxException Beschreibung aus Klasse kopiert:AbstractWebhooksResourceCreate a webhook. Requires the webhook.write scope.- Angegeben von:
createin KlasseAbstractWebhooksResource<AsyncResult<WebhookResponse>,AsyncResult<Pageable<WebhookResponse>>, AsyncResult<Void>> - Parameter:
webhookRequest-WebhookRequest- Gibt zurück:
AbstractWebhooksResource- Löst aus:
IOExceptionURISyntaxException
-
list
Beschreibung aus Klasse kopiert:AbstractWebhooksResourceList all webhooks. Requires the webhook.read scope.- Angegeben von:
listin KlasseAbstractWebhooksResource<AsyncResult<WebhookResponse>,AsyncResult<Pageable<WebhookResponse>>, AsyncResult<Void>> - Gibt zurück:
AbstractWebhooksResource- Löst aus:
IOExceptionURISyntaxException
-
list
public AsyncResult<Pageable<WebhookResponse>> list(@NotNull @NotNull Map<Filter, String> filters) throws IOException, URISyntaxExceptionBeschreibung aus Klasse kopiert:AbstractWebhooksResourceList all webhooks. Requires the webhook.read scope.- Angegeben von:
listin KlasseAbstractWebhooksResource<AsyncResult<WebhookResponse>,AsyncResult<Pageable<WebhookResponse>>, AsyncResult<Void>> - Parameter:
filters- (optional) Filters: - url - The result will be filtered to include only webhooks with a specific URL.- Gibt zurück:
AbstractWebhooksResource- Löst aus:
IOExceptionURISyntaxException
-
list
public AsyncResult<Pageable<WebhookResponse>> list(@NotNull @NotNull Map<Filter, String> filters, @Nullable @Nullable Pagination pagination) throws IOException, URISyntaxExceptionBeschreibung aus Klasse kopiert:AbstractWebhooksResourceList all webhooks. Requires the webhook.read scope.- Angegeben von:
listin KlasseAbstractWebhooksResource<AsyncResult<WebhookResponse>,AsyncResult<Pageable<WebhookResponse>>, AsyncResult<Void>> - Parameter:
filters- (optional) Filters: - url - The result will be filtered to include only webhooks with a specific URL.pagination- (optional) Pagination: - per_page - Number of tasks per page, defaults to 100. - page - The result page to show.- Gibt zurück:
AbstractWebhooksResource- Löst aus:
IOExceptionURISyntaxException
-
delete
public AsyncResult<Void> delete(@NotNull @NotNull String webhookId) throws IOException, URISyntaxException Beschreibung aus Klasse kopiert:AbstractWebhooksResourceDelete a webhook. Requires the webhook.write scope.- Angegeben von:
deletein KlasseAbstractWebhooksResource<AsyncResult<WebhookResponse>,AsyncResult<Pageable<WebhookResponse>>, AsyncResult<Void>> - Parameter:
webhookId- webhook id- Gibt zurück:
- VR
- Löst aus:
IOExceptionURISyntaxException
-
close
- Löst aus:
IOException
-