o5.cx

功能

本服务可生成所有URL地址 (([\w]+)://([\S]+)) 的短链接

API

curl -X POST \
    -d '{"url": "https://www.google.com/"}' \
    https://o5.cx/api/set.php
    
{"success":"true","content":{"url":"https://o5.cx/s/9e938443"}}
curl -X POST \
    -d '{"url": "google.com"}' \
    https://o5.cx/api/set.php
    
{"success":"false","content":"请输入正确格式的链接。"}
curl -X POST \
    -d '{"url": "https://o5.cx/s/9e938443"}' \
    https://o5.cx/api/set.php
    
{success: "false", content: "链接已经是短地址了。"}