Class DouyinHudongNotification

java.lang.Object
com.bytedesk.douyin.hudong.DouyinHudongNotification

@RestController @RequestMapping("/douyin/web") public class DouyinHudongNotification extends Object
微语互动 https://developer.open-douyin.com/docs/resource/zh-CN/web-app/open-capacity/operation/customer-service/customer-service-introduce https://developer.open-douyin.com/docs/resource/zh-CN/dop/develop/webhooks/summarize
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<?>
    抖音IM客服-回调 https://developer.open-douyin.com/microapp/ttd5c6a37b4afdd307/interactivity/ma.others.im_manager?
    getPushWebhook(String token, String signature, String timestamp, String nonce, String echostr, String msg)
    消息推送客服-回调 https://developer.open-douyin.com/docs/resource/zh-CN/web-app/open-capacity/operation/customer-service/message-push-customer-service http://127.0.0.1:9003/douyin/web/webhook/push/df_dy_uid https://api.weiyuai.cn/douyin/web/webhook/push/df_dy_uid Example URL: msg=signatureMsg nonce=267 signature=142b6acb8e2d389618f5f9648c2f722cff30c79c timestamp=1726472641000

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DouyinHudongNotification

      public DouyinHudongNotification()
  • Method Details

    • getIMWebhook

      @PostMapping("/webhook/im/{token}") public org.springframework.http.ResponseEntity<?> getIMWebhook(@PathVariable String token, @RequestBody DouyinWebhookVerification verification)
      抖音IM客服-回调 https://developer.open-douyin.com/microapp/ttd5c6a37b4afdd307/interactivity/ma.others.im_manager?categoryID=2061 https://developer.open-douyin.com/docs/resource/zh-CN/web-app/open-capacity/operation/customer-service/douyin-im-customer-service http://127.0.0.1:9003/douyin/web/webhook/im/df_dy_uid https://api.weiyuai.cn/douyin/web/webhook/im/df_dy_uid 网站应用开发设置-Webhooks: 微语互动测试: https://api.weiyuai.cn/douyin/web/webhook/im/hudong https://developer.open-douyin.com/webapp/awtsu3rrwk89cmtz/setting/develop-info?tabType=Webhooks
      Parameters:
      verification -
      Returns:
    • getPushWebhook

      @GetMapping("/webhook/push/{token}") public String getPushWebhook(@PathVariable String token, @RequestParam("signature") String signature, @RequestParam("timestamp") String timestamp, @RequestParam("nonce") String nonce, @RequestParam("echostr") String echostr, @RequestParam("msg") String msg)
      消息推送客服-回调 https://developer.open-douyin.com/docs/resource/zh-CN/web-app/open-capacity/operation/customer-service/message-push-customer-service http://127.0.0.1:9003/douyin/web/webhook/push/df_dy_uid https://api.weiyuai.cn/douyin/web/webhook/push/df_dy_uid Example URL: msg=signatureMsg nonce=267 signature=142b6acb8e2d389618f5f9648c2f722cff30c79c timestamp=1726472641000
      Parameters:
      verificationMsg - The verification message to be processed
      Returns: