Skip to content

Instantly share code, notes, and snippets.

@jake-walker
Created February 18, 2017 16:29
Show Gist options
  • Save jake-walker/9db5f3026aba90ab9dc590bc4f558c55 to your computer and use it in GitHub Desktop.
Save jake-walker/9db5f3026aba90ab9dc590bc4f558c55 to your computer and use it in GitHub Desktop.
VH7 API Reference

VH7 API Reference

The root URL for the api is https://vh7.uk/api/

GET: /new/:URL

Generate a new short URL for the given URL.

Success Response Body:

{
  url: "https://vh7.uk/00"
}

Error Response Body:

{
  error: 100
}

For error code reference see below

GET: /new/:URL?human

Generate a human readable URL for the given URL.

Success Response Body:

{
  url: "https://vh7.uk/word-word"
}

Error Response Body:

{
  error: 100
}

For error code reference see below

Error Code Reference

Code Issue Solution
100 Try again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment