ipOne API Documentation


survey/get_event

Important:  An API Key is required to work with these API Calls

Get event details for a given {EVENT_ID}

Sample Request

http://api.verifiapp.com/survey/get_event/{API-KEY}/{EVENT_ID}

Sample Response

{"result":"success","results":{"q_diary_id":"4","user_id":"34","activity_type_id":"1","project_name_id":"1","client_id":"3","location_id":"1","q_diary_start":"2012-02-21 10:00:00","q_diary_end":"2012-02-21 12:00:00","q_diary_notes":"Comment goes here","q_diary_expenses":"0.00","q_diary_gps_lat":"53.344000000","q_diary_gps_lon":"-6.267000000","q_diary_date_entered":"2012-02-21 16:05:42","q_diary_date_modified":"2012-02-21 16:05:30"}}

Successful Response Reference

A successful response will return the following items in a JSON array

Preference Description Default value Notes
result success    
results An array containing the following information:    
  q_diary_id The Event ID    
  user_id The ID of the user who created the Event.    
  activity_type_id The ID of the Type of Job related with the Event    
  project_name_id The ID of the Project related with the Event    
  client_id The ID of the Client involved in the Event    
  location_id The ID of the location where the Event took place    
  q_diary_start The Date+Time of the start of the Event    
  q_diary_end The Date+Time of end of the Event    
  q_diary_notes The Notes typed by the technician when entering the Event    
  q_diary_expenses The expenses the Event involved    
  q_diary_gps_lat The GPS Latitude of the coordinates    
  q_diary_gps_lon The GPS Longitude of the coordinates    
  q_diary_date_entered The date when the item was created    
  q_diary_date_modified The date of the last modification of the event    

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