Class WeChatWorkRestNotification

java.lang.Object
com.bytedesk.wechat.work.WeChatWorkRestNotification

@RestController @RequestMapping("/wechat/work") public class WeChatWorkRestNotification extends Object
  • Field Details

  • Constructor Details

    • WeChatWorkRestNotification

      public WeChatWorkRestNotification()
  • Method Details

    • verifyUrl

      @GetMapping("/hook/{uid}") public String verifyUrl(@PathVariable String uid, @RequestParam(name="msg_signature",required=false) String signature, @RequestParam(name="timestamp",required=false) String timestamp, @RequestParam(name="nonce",required=false) String nonce, @RequestParam(name="echostr",required=false) String echostr)
      See Also:
    • receiveMessage

      @PostMapping("/hook/{uid}") public String receiveMessage(@PathVariable String uid, @RequestBody String requestBody, @RequestParam("msg_signature") String signature, @RequestParam("timestamp") String timestamp, @RequestParam("nonce") String nonce)
      Returns:
      string
      See Also:
    • oauthCallback

      @PostMapping("/web/command/{CORPID}/callback") public Object oauthCallback(@PathVariable("CORPID") String corpId, @RequestBody(required=false) String requestBody, @RequestParam("timestamp") String timestamp, @RequestParam("nonce") String nonce, @RequestParam(name="msg_signature",required=false) String msgSignature, jakarta.servlet.http.HttpSession session)
    • miniOauthCallback

      @PostMapping("/mini/command/{CORPID}/callback") public Object miniOauthCallback(@PathVariable("CORPID") String corpId, @RequestBody(required=false) String requestBody, @RequestParam("timestamp") String timestamp, @RequestParam("nonce") String nonce, @RequestParam(name="msg_signature",required=false) String msgSignature, jakarta.servlet.http.HttpSession session)