Class WhatsAppService

java.lang.Object
com.bytedesk.social.whatsapp.WhatsAppService

@Service public class WhatsAppService extends Object
  • Field Details

    • whatsAppConfig

      private final WhatsAppConfig whatsAppConfig
    • restTemplate

      private final org.springframework.web.client.RestTemplate restTemplate
  • Constructor Details

    • WhatsAppService

      public WhatsAppService()
  • Method Details

    • sendTextMessage

      public void sendTextMessage(String to, String text)
      Send text message to WhatsApp user
    • processWebhookEvent

      public void processWebhookEvent(WhatsAppWebhookEvent event)
      Process incoming webhook event from WhatsApp
    • verifyWebhook

      public boolean verifyWebhook(String mode, String verifyToken, String challenge)
      Verify webhook token