survey/items
Important: An API Key is required to work with these API Calls
Returns the HTML to draw the Q-Diary. The date passed must be in the format YYYY-MM-DD (MySQL's format).
This is a really complex function and it needs to return the raw HTML because the operations to draw the Diary are hard and it's not easy to do them in the Client-side using jQuery.
Sample Request
http://api.verifiapp.com/survey/items/{API-KEY}/{DATE}
Sample Response
{"result":"success","results":"<table class='nostyle-table'><tr><td style='width:50px;vertical-align:top;'><div class='dairy_item hour' style='min-height:150px;'>08:00<\/div><div class='dairy_item hour' style='min-height:150px;'>08:30<\/div><div class='dairy_item hour' style='min-height:150px;'>09:00<\/div><div class='dairy_item hour' style='min-height:150px;'>09:30<\/div><div class='dairy_item hour' style='min-height:150px;'>10:00<\/div><div class='dairy_item hour' style='min-height:150px;'>10:30<\/div><div class='dairy_item hour' style='min-height:150px;'>11:00<\/div><div class='dairy_item hour' style='min-height:150px;'>11:30<\/div><div class='dairy_item hour' style='min-height:150px;'>12:00<\/div><div class='dairy_item hour' style='min-height:150px;'>12:30<\/div><div class='dairy_item hour' style='min-height:150px;'>13:00<\/div><div class='dairy_item hour' style='min-height:150px;'>13:30<\/div><div class='dairy_item hour' style='min-height:150px;'>14:00<\/div><div class='dairy_item hour' style='min-height:150px;'>14:30<\/div><div class='dairy_item hour' style='min-height:150px;'>15:00<\/div><div class='dairy_item hour' style='min-height:150px;'>15:30<\/div><div class='dairy_item hour' style='min-height:150px;'>16:00<\/div><div class='dairy_item hour' style='min-height:150px;'>16:30<\/div><div class='dairy_item hour' style='min-height:150px;'>17:00<\/div><div class='dairy_item hour' style='min-height:150px;'>17:30<\/div><div class='dairy_item hour' style='min-height:150px;'>18:00<\/div><div class='dairy_item hour' style='min-height:150px;'>18:30<\/div><div class='dairy_item hour' style='min-height:150px;'>19:00<\/div><div class='dairy_item hour' style='min-height:150px;'>19:30<\/div><div class='dairy_item hour' style='min-height:150px;'>20:00<\/div><div class='dairy_item hour' style='min-height:150px;'>20:30<\/div><div class='dairy_item hour' style='min-height:150px;'>21:00<\/div><div class='dairy_item hour' style='min-height:150px;'>21:30<\/div><div class='dairy_item hour' style='min-height:150px;'>22:00<\/div><div class='dairy_item hour' style='min-height:150px;'>22:30<\/div><\/td><td style='width:200px;vertical-align:top;'><div id='08:00_10:10' title='' class='dairy_item empty' style='min-height:650px;'>Empty<\/div><div id='10:10_10:14' title='Started: 23\/02\/2012 10:10\nEnded: 23\/02\/2012 10:14\nLocation: Kilkenny\nProject: TEST\nClient: UPC Communications Ireland Ltd\nJob Type: testing' class='dairy_item tiny' style='min-height:20px;'><\/div><div id='10:15_10:18' title='' class='dairy_item tiny' style='min-height:15px;'><\/div><div id='10:18_10:18' title='Started: 23\/02\/2012 10:18\nEnded: 23\/02\/2012 10:18\nLocation: Kilkenny\nProject: TEST\nClient: UPC Communications Ireland Ltd\nJob Type: testing' class='dairy_item tiny' style='min-height:5px;'><\/div><div id='10:20_10:21' title='Started: 23\/02\/2012 10:20\nEnded: 23\/02\/2012 10:21\nLocation: Kilkenny\nProject: TEST\nClient: UPC Communications Ireland Ltd\nJob Type: testing' class='dairy_item tiny' style='min-height:5px;'><\/div><div id='10:22_10:43' title='' class='dairy_item empty' style='min-height:105px;'>Empty<\/div><div id='10:43_10:44' title='Started: 23\/02\/2012 10:43\nEnded: 23\/02\/2012 10:44\nLocation: Kilkenny\nProject: TEST\nClient: UPC Communications Ireland Ltd\nJob Type: testing' class='dairy_item tiny' style='min-height:5px;'><\/div><div id='10:45_10:57' title='' class='dairy_item empty' style='min-height:60px;'>Empty<\/div><div id='10:57_10:57' title='Started: 23\/02\/2012 10:57\nEnded: 23\/02\/2012 10:57\nLocation: Kilkenny\nProject: TEST\nClient: UPC Communications Ireland Ltd\nJob Type: testing' class='dairy_item tiny' style='min-height:5px;'><\/div><div id='10:59_11:11' title='' class='dairy_item empty' style='min-height:60px;'>Empty<\/div><div id='11:11_11:12' title='Started: 23\/02\/2012 11:11\nEnded: 23\/02\/2012 11:12\nLocation: Kilkenny\nProject: TEST\nClient: UPC Communications Ireland Ltd\nJob Type: testing' class='dairy_item tiny' style='min-height:10px;'><\/div><div id='11:14_12:03' title='' class='dairy_item empty' style='min-height:245px;'>Empty<\/div><div id='12:03_12:04' title='Started: 23\/02\/2012 12:03\nEnded: 23\/02\/2012 12:04\nLocation: Kilkenny\nProject: TEST\nClient: UPC Communications Ireland Ltd\nJob Type: testing' class='dairy_item tiny' style='min-height:5px;'><\/div><div id='12:05_13:05' title='' class='dairy_item empty' style='min-height:300px;'>Empty<\/div><div id='13:05_13:06' title='Started: 23\/02\/2012 13:05\nEnded: 23\/02\/2012 13:06\nLocation: Kilkenny\nProject: TEST\nClient: UPC Communications Ireland Ltd\nJob Type: testing' class='dairy_item tiny' style='min-height:5px;'><\/div><div id='13:07_13:10' title='' class='dairy_item tiny' style='min-height:15px;'><\/div><div id='13:10_13:11' title='Started: 23\/02\/2012 13:10\nEnded: 23\/02\/2012 13:11\nLocation: Kilkenny\nProject: TEST\nClient: UPC Communications Ireland Ltd\nJob Type: testing' class='dairy_item tiny' style='min-height:5px;'><\/div><div id='13:12_14:29' title='' class='dairy_item empty' style='min-height:385px;'>Empty<\/div><div id='14:29_14:32' title='Started: 23\/02\/2012 14:29\nEnded: 23\/02\/2012 14:32\nLocation: Kilkenny\nProject: TEST\nClient: UPC Communications Ireland Ltd\nJob Type: testing' class='dairy_item tiny' style='min-height:15px;'><\/div><div id='14:33_23:59' title='' class='dairy_item empty' style='min-height:2535px;'>Empty<\/div><\/td><\/tr><\/table>","project":11,"scheduled":0}
Successful Response Reference
A successful response will return the following items in a JSON array
| Preference | Description | Default value | Notes |
|---|---|---|---|
| result | success | ||
| results | An string containing all the HTML with the diary items. |
Unsuccessful Response Reference
A unsuccessful response will return the following items in a JSON array
| Preference | Description | Sample response |
|---|---|---|
| result | error | |
| error | The specific error is described in the response | Invalid API Key |