【微信公众号】17、SpringBoot整合WxJava实现短key托管(短链接管理)

短 key 托管类似于短链 API,开发者可以通过 GenShorten 将不超过 4KB 的长信息转成短 key,再通过 FetchShorten 将短key还原为长信息

1、短key托管(GenShorten)

String shortUrl = wxMpService.genShorten("www.baidu.com", 2592000);
  • 请求参数说明
参数 是否必须 类型 说明
long_data string
expire_seconds int
  • 响应参数说明
参数 说明

猜你喜欢

转载自blog.csdn.net/qq_40065776/article/details/131776625