Skip to content

Instantly share code, notes, and snippets.

@nolastan
Created September 6, 2012 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nolastan/3661560 to your computer and use it in GitHub Desktop.
Save nolastan/3661560 to your computer and use it in GitHub Desktop.
taskrabbit callback data example
{
"items" : [
{
"actor" : {
// user info: who made the offer
},
"created_at" : 1334797665,
"event_type" : "offer_sent", # or offer_made
"offer": {
// offer info
}
"observer" : {
// user info: who received the offer
},
"task" : {
// task info
}
},
{
"actor" : {
// user info: who made the offer
},
"created_at" : 1334797665,
"event_type" : "comment_sent", # or comment_made
"comment": {
// offer info
}
"observer" : {
// user info: who received the offer
},
"task" : {
// task info
}
}
],
"secret" : "your_secret_token_for_verification_that_someone_else_isnt_sending_you_stuff"
}
with user info
{
"city": {
"name": "Boston",
"lng": -71.059773,
"id": 1,
"links": {
"get": "/api/v1/cities/1"
},
"lat": 42.358431
},
"id": 2132,
"short_name": "Willis",
"full_name": "Willis F.",
"links": {
"get": "/api/v1/users/2132",
"avatar_url": "http://test.taskrabbit.com/images/default_avatars/poster_thumb.png"
},
"display_name": "Willis F."
}
with task info
{
"name": "My Task",
"city": {
"name": "Boston",
"lng": -71.059773,
"id": 1,
"links": {
"get": "/api/v1/cities/1"
},
"lat": 42.358431
},
"complete_by_time": 1315584000,
"id": 1452,
"state_changed_at": 1315486800,
"cost_in_cents": 0,
"links": {
"html": "<<http://www.taskrabbit.com/tasks/my-task>>",
"get": "/api/v1/tasks/1452"
},
"state_label": "posted",
"assign_by_time": 1315670400,
"user": {
"city": {
"name": "Boston",
"lng": -71.059773,
"id": 1,
"links": {
"get": "/api/v1/cities/1"
},
"lat": 42.358431
},
"id": 2314,
"links": {
"get": "/api/v1/users/2314",
"avatar_url": "<<http://www.taskrabbit.com/images/default_avatars/poster_thumb.gif>>"
},
"full_name": "Willis F.",
"short_name": "Willis",
"display_name": "Willis F."
},
"state": "opened"
}
offer info
{
"id":801,
"charge_price": 15,
"state":"sent"
}
comment info
{
"content": "Where do you live?",
"display_name": "Roger R.",
"conversation_id": "22"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment