public final class ModuleWebhooks.Async extends Object
Use ModuleWebhooks.async() to retrieve this class, to be able to do asynchronous
requests to Contentful.
| Constructor and Description |
|---|
Async() |
public CMACallback<CMAWebhook> create(String spaceId, CMAWebhook webhook, CMACallback<CMAWebhook> callback)
ModuleWebhooks.create(String, CMAWebhook)spaceId - id of the space to be used.webhook - data to be used for creation.callback - the callback to be called once finished.IllegalArgumentException - if space's id is null.IllegalArgumentException - if webhook is null.public CMACallback<CMAWebhook> create(String spaceId, String webhookId, CMAWebhook webhook, CMACallback<CMAWebhook> callback)
ModuleWebhooks.create(String, String, CMAWebhook)spaceId - id of the space to be used.webhookId - id for the webhook to be created/updated.webhook - data to be used for creation.callback - the callback to be called once finished.IllegalArgumentException - if space's id is null.IllegalArgumentException - if webhookId is null.IllegalArgumentException - if webhook is null.public CMACallback<String> delete(String spaceId, String webhookId, CMACallback<String> callback)
ModuleWebhooks.delete(String, String)spaceId - id of the space to be used.webhookId - id of the webhook to be deleted.callback - the callback to be called once finished.IllegalArgumentException - if spaceId is null.IllegalArgumentException - if webhookId is null.public CMACallback<CMAArray<CMAWebhook>> fetchAll(String spaceId, CMACallback<CMAArray<CMAWebhook>> callback)
ModuleWebhooks.fetchAll(String)spaceId - id of the space to be used.callback - the callback to be called once finished.IllegalArgumentException - if spaceId is null.public CMACallback<CMAWebhook> fetchOne(String spaceId, String webhookId, CMACallback<CMAWebhook> callback)
ModuleWebhooks.fetchOne(String, String)spaceId - id of the space to be used.webhookId - id of the webhook to be retrieved.callback - the callback to be called once finished.IllegalArgumentException - if spaceId is null.IllegalArgumentException - if webhookId is null.public CMACallback<CMAWebhook> update(CMAWebhook webhook, CMACallback<CMAWebhook> callback)
ModuleWebhooks.update(CMAWebhook)webhook - data to be used for update.callback - the callback to be called once finished.IllegalArgumentException - if webhook is null.IllegalArgumentException - if webhookId is null.IllegalArgumentException - if spaceId is null.IllegalArgumentException - if version is null.public CMACallback<CMAArray<CMAWebhookCall>> calls(String spaceId, String webhookId, CMACallback<CMAArray<CMAWebhookCall>> callback)
ModuleWebhooks.calls(String, String)spaceId - id of the space to be used.webhookId - id to be used to retrieve calls from.callback - the callback to be called once finished.IllegalArgumentException - if spaceId is null.IllegalArgumentException - if webhook is null.public CMACallback<CMAWebhookCallDetail> callDetails(String spaceId, String webhookId, String callId, CMACallback<CMAWebhookCallDetail> callback)
ModuleWebhooks.callDetails(String, String, String)spaceId - id of the space to be used.webhookId - id of webhook.callId - id of call.callback - the callback to be called once finished.IllegalArgumentException - if spaceId is null.IllegalArgumentException - if webhook is null.IllegalArgumentException - if callId is null.public CMACallback<CMAWebhookHealth> health(String spaceId, String webhookId, CMACallback<CMAWebhookHealth> callback)
ModuleWebhooks.health(String, String)spaceId - id of the space to be used.webhookId - id to be used for healthy check.callback - the callback to be called once finished.IllegalArgumentException - if spaceId is null.IllegalArgumentException - if webhook is null.Copyright © 2017 Contentful, GmbH.. All Rights Reserved.