Trippy API
Trippy offers a robust API so you can freely develop apps and integrate Trippy within your website.
Calling URL
You will need to send parameters either via GET or POST to http://trippy.tk/api/call.
Actions
There are two types of actions for the Trippy API: ShortURL and Expand
ShortURL
The ShortURL action allows you to create a trippified link. It requires 2 parameters besides itself: URL and Format. The URL parameter needs to be passed a full URL to the page needed to be shortened. You can read about formats in the "Formats" section. A basic call might look like this: http://trippy.tk/api/call?action=shorturl&url=<URL>&format=simple.
Expand
The Expand action allows you to see the original URL of a trippified link. It requires 2 parameters besides itself: ShortURL and Format. You can read about formats in the "Formats" section. A basic call might look like this: http://trippy.tk/api/call?action=expand&shorturl=<KEYWORD>&format=simple
Formats
There are three formats which the data can be formatted in: Simple, XML, and JSON.
Simple
The simple format is the easiest way to get what you want, without getting too technical in your code. You can add an action parameter to the URL to get the trippified version in text.
XML
The XML format gives you a structured XML document with more information than the simple format. It provides you with the keyword, original URL, date of creation, IP of the person who created it, and the shorturl.
JSON
The JSON format is similar to XML, however you can use JavaScript or JS like language to get an array of the data.

