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.RestTemplateprivate final WhatsAppConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidProcess incoming webhook event from WhatsAppvoidsendTextMessage(String to, String text) Send text message to WhatsApp userbooleanverifyWebhook(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
-