code-scan / cfwork_shortlink_text

使用cf的work实现的短网址和文本分享
Other
47 stars 19 forks source link

能否兼容short menu 的Responses #4

Closed coppea closed 2 years ago

coppea commented 2 years ago

Responses The response received from your server must either be plain text, containg only the shortened URL, or JSON. The following JSON formats are supported by Short Menu:

{ "shorturl" : "SHORT_URL_HERE" } { "shortURL" : "SHORT_URL_HERE" } { "short" : "SHORT_URL_HERE" } { "id" : "SHORT_URL_HERE" } { "url_short" : "SHORT_URL_HERE" } { "data" : { "url" : "SHORT_URL_HERE" } } { "message" : "ERROR_MESSAGE_HERE" } Your API can also return an array whose first object is a dictionary conforming to one of the above formats.

https://shortmenu.com/support/custom-services/ name修改为short或者shorturl或者id