You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
909 B

2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. package in.gov.chennaicorporation.gccoffice.callcenter.controller;
  2. import org.springframework.beans.factory.annotation.Autowired;
  3. import org.springframework.http.ResponseEntity;
  4. import org.springframework.web.bind.annotation.PostMapping;
  5. import org.springframework.web.bind.annotation.RequestMapping;
  6. import org.springframework.web.bind.annotation.RequestParam;
  7. import org.springframework.web.bind.annotation.RestController;
  8. import in.gov.chennaicorporation.gccoffice.callcenter.service.WhatsappMsgService;
  9. @RestController
  10. @RequestMapping("/gcc/api/whatsapp")
  11. public class WhatsappController {
  12. @Autowired
  13. private WhatsappMsgService whatsappMsgService;
  14. @PostMapping("/send-whatsapp-message")
  15. public ResponseEntity<String> sendWhatsAppMessage(@RequestParam String msgUrl) {
  16. String response = whatsappMsgService.sendMsg(msgUrl);
  17. return ResponseEntity.ok(response);
  18. }
  19. }