Test Webhooks
What are webhooks
Steps to receive webhooks
Step 1: Create a webhook endpoint
@GetMapping("/ant-sms-deliver")
public ResponseEntity<Object> listenAnt(@RequestParam(name = "smsId") String msgId,
@RequestParam(name = "destination") String destination,
@RequestParam(name = "sendTime") String sendTime,
@RequestParam(name = "sendResult") String sendResult,
@RequestParam(name = "dr") String dr,
@RequestParam(name = "smsCount") String smsCount) {
try {
//todo your code
}catch (Exception e){
ILogger.info("listenAnt err ", e);
}
return new ResponseEntity<>(org.springframework.http.HttpStatus.OK);
}Step 2: Send your URL to ANT
Step 3: Handle requests from ANT
Last updated