6. Third Party APP Shorturl - UniqueStudio/open-platform GitHub Wiki

6.1 Generate Short Url

Generate Short Url

URLhttps://open.hustunique.com/genurl

Method:Get

Auth required : AccessKey

Request Json

content example:

{
    "number":3,
     "urllist":[
         "www.google.com",
         "www.github.com",
         "https://www.bilibili.com/video/BV18E41177zQ?from=search&seid=472887671426257925"
     ]
}

Success Response

Code:200 OK

Content example:

{
    "urls":{
        "https://www.bilibili.com/video/BV18E41177zQfrom=search\\u0026seid=472887671426257925":"http:/127.0.0.1:7073/v/1",
        "www.github.com":"http:/127.0.0.1:7073/v/l",
        "www.google.com":"http:/127.0.0.1:7073/v/v"
    }
}

6.2 ShortUrl Redirect

URL

​ for local test:http://127.0.0.1:7073/v/:shorturl

​ for official use:https://uniqs.cc/v/:shorturl

Method:Get

example

https://uniqs.cc/v/ABC
⚠️ **GitHub.com Fallback** ⚠️