[WeChat Public Account] 17. SpringBoot integrates WxJava to realize short key hosting (short link management)

Short key hosting is similar to the short chain API. Developers can convert long information of no more than 4KB into short key through GenShorten, and then restore the short key to long information through FetchShorten

1. Short key hosting (GenShorten)

String shortUrl = wxMpService.genShorten("www.baidu.com", 2592000);
  • Description of request parameters
parameter Is it necessary type description
long_data yes string
expire_seconds no int
  • Response parameter description
parameter illustrate

Guess you like

Origin blog.csdn.net/qq_40065776/article/details/131776625