Working with webhooks from Java SDK
Java SDK offers you a way to work with webhooks through the API.
Webhooks are great to know what is happening by simply listening on your server for things to happen. See bellow how you can use our API in regards to webhooks.
java SDK Webooks Methods
- create Create a new webhook for the given url to catch the given events.
ziggeo.webhooks().create(JSONObject arguments)
- target_url The url that will catch the events
- encoding Data encoding to be used by the webhook to send the events.
- events Comma-separated list of the events the webhook will catch. They must be valid webhook type events.
This method returns string - confirm Confirm a webhook using its ID and the corresponding validation code.
ziggeo.webhooks().confirm(JSONObject arguments)
- webhook_id Webhook ID that's returned in the creation call.
- validation_code Validation code that is sent to the webhook when created.
This method returns string - delete Delete a webhook using its URL.
ziggeo.webhooks().delete(JSONObject arguments)
- target_url The url that will catch the events
This method returns string