Package com.whatsapp.api.domain.webhook
Class WebHook
java.lang.Object
com.whatsapp.api.domain.webhook.WebHook
The type Webhook.
Use this class to deserialize webhook events
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic WebHookEvent
constructEvent
(String payload) Construct WebHookEvent object
-
Constructor Details
-
WebHook
public WebHook()
-
-
Method Details
-
constructEvent
public static WebHookEvent constructEvent(String payload) throws com.fasterxml.jackson.core.JsonProcessingException Construct WebHookEvent object- Parameters:
payload
- the webhook payload json sent by Whatsapp- Returns:
- an WebHookEvent instance
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
- JsonProcessingException if deserialization fails.
-