Package com.bytedesk.social.whatsapp
Class WhatsAppService
java.lang.Object
com.bytedesk.social.whatsapp.WhatsAppService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.springframework.web.client.RestTemplate
private final WhatsAppConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Process incoming webhook event from WhatsAppvoid
sendTextMessage
(String to, String text) Send text message to WhatsApp userboolean
verifyWebhook
(String mode, String verifyToken, String challenge) Verify webhook token
-
Field Details
-
whatsAppConfig
-
restTemplate
private final org.springframework.web.client.RestTemplate restTemplate
-
-
Constructor Details
-
WhatsAppService
public WhatsAppService()
-
-
Method Details
-
sendTextMessage
Send text message to WhatsApp user -
processWebhookEvent
Process incoming webhook event from WhatsApp -
verifyWebhook
Verify webhook token
-