Class WebHook

java.lang.Object
com.whatsapp.api.domain.webhook.WebHook

public final class WebHook extends Object
The type Webhook. Use this class to deserialize webhook events
  • 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.