A wrapper of tinyurl to a json feeds.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md

README.md

Tinyurl-wrapper

A wrapper for tinyurl

  • Based on GAE
  • Programmed with Go
  • Backend updates transformed urls for every entity regularly and automatically.
  • A jar will be provided for different client with project tinyurl4j.

LICENSE

Param and Return

Param:

Query Type Comment
q string Original url which wanna be shorted.

Return:

Var Type Comment
status bool Success request or not(false).
q string Original url which wanna be shorted.
result string The shorted url by tinyurl.
stored bool True if the result is direct from our own database instead of calling tinyurl.

Example

Query:

https://tinyurl-wrapper.appspot.com/?q=http://www.online.sh.cn

Return:

{
  "status": true,
  "q": "http://www.online.sh.cn",
  "result": "http://tinyurl.com/4fwf4",
  "stored": false
}