From d0617dd707b38ebbc560f5aab691a6ac9f2e8237 Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Tue, 24 Dec 2013 14:30:06 -0500 Subject: [PATCH] Added pretty parameter Closes #22 --- templates/api.phtml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/api.phtml b/templates/api.phtml index c94b09b..e0ae256 100644 --- a/templates/api.phtml +++ b/templates/api.phtml @@ -35,6 +35,13 @@ if ($this->module['api_key'])

{endpoint}?key={key} where {endpoint} is the call being made and {key} is your API key.

+

Results

+ +

The API only returns a JSON formatted string and utilizes both HTTP status codes as well as a response_code variable in the results. On error, there will also be a error variable that will contain additional information about the error that was encountered.

+ +

Pretty Print

+ +

To help with readability of the returned JSON we offer the pretty parameter which will force the JSON output to be prettified. Simply add &pretty=true after your key to use this parameter.

Endpoints