Skip to content

XinyueZ/tinyurl-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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
}

About

A wrapper of tinyurl to a json feeds.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages