Skip to content

Instantly share code, notes, and snippets.

@pifantastic
Created October 5, 2011 04:36
Show Gist options
  • Save pifantastic/1263646 to your computer and use it in GitHub Desktop.
Save pifantastic/1263646 to your computer and use it in GitHub Desktop.
$ curl "http://api.sniphq.com/api/v1/appointment.json?key=123"
{
"data": [
{
"pk": 1,
"model": "appointments.appointment",
"fields": {
"stylist": {
"salon": 1,
"name": "Jason",
"created_at": "2011-09-28 21:35:17",
"updated_at": "2011-09-28 21:35:17",
"services": [
1
],
"id": 1
},
"parent": null,
"start_time": "2011-09-28 21:35:02",
"updated_at": "2011-09-28 21:36:16",
"client": {
"phone": "555-555-5555",
"salon": 1,
"email": "bernie@ohhai.com",
"name": "Bernie Walters",
"address": 1,
"notes": "",
"created_at": "2011-09-28 21:35:51",
"id": 1,
"updated_at": "2011-09-28 21:35:51"
},
"rrule": null,
"services": [
{
"salon": 1,
"name": "Trim",
"created_at": "2011-09-28 21:34:30",
"updated_at": "2011-09-28 21:34:30",
"id": 1,
"active": true,
"price": "100.00"
}
],
"created_at": "2011-09-28 21:36:16"
}
}
],
"error": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment