Class WhatsAppWebhookController

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

@RestController @RequestMapping("/webhook/whatsapp") public class WhatsAppWebhookController extends Object
  • Field Details

    • whatsAppService

      private final WhatsAppService whatsAppService
    • objectMapper

      private final com.fasterxml.jackson.databind.ObjectMapper objectMapper
  • Constructor Details

    • WhatsAppWebhookController

      public WhatsAppWebhookController()
  • Method Details

    • verifyWebhook

      @GetMapping public org.springframework.http.ResponseEntity<String> verifyWebhook(@RequestParam("hub.mode") String mode, @RequestParam("hub.verify_token") String verifyToken, @RequestParam("hub.challenge") String challenge)
    • handleWebhook

      @PostMapping public org.springframework.http.ResponseEntity<String> handleWebhook(@RequestBody String body)