Skip to content

Instantly share code, notes, and snippets.

@rgalite
Last active November 3, 2017 15:08
Show Gist options
  • Save rgalite/1a2b1fcf137c5d3514169dca97fe294d to your computer and use it in GitHub Desktop.
Save rgalite/1a2b1fcf137c5d3514169dca97fe294d to your computer and use it in GitHub Desktop.
Slackbot API
{
"team_id": 1234,
"code": "fkkemglogkdkjdekgkflgmp",
"access_token": "logfepvpbozqmdpig"
}
{
"data": {
"grouped_order": {
"id": "tr6fg_rkMBs",
"created_at": "2017-11-03T11:14:55.918+01:00",
"grouped_order_status": "SERVED",
"invite_url": "https://staging.lunchr.co/grouped_orders/tr6fg_rkMBs",
"end_time": "2017-11-03T11:29:57.633+01:00",
"restaurant": {
"id": 27828,
"created_at": "2017-08-28T18:02:06.779+02:00",
"name": "Léandrés",
"main_picture": {
"url": "https://res.cloudinary.com/hbnjrwllw/image/upload/wu9jqpvactvsuxa2blqb.jpg",
"key": "wu9jqpvactvsuxa2blqb"
},
"description": "",
"phone": "09 86 79 57 29",
"logo": {
"url": "https://res.cloudinary.com/hbnjrwllw/image/upload/cszqdn6ntlodjffdzml9.jpg",
"key": "cszqdn6ntlodjffdzml9"
},
"is_new": false,
"exclusive": false,
"flash_ordering": false,
"secondary_images": [],
"price_range": 2,
"preparation_time": {
"min_preparation_time": 30,
"max_preparation_time": 30
},
"current_preparation_time": 30,
"address": {
"coordinates": {
"latitude": 48.8791031,
"longitude": 2.3480023
},
"street": "78 Rue de Maubeuge",
"city": "Paris",
"zip": "75009",
"country": "FR",
"formated": "78 Rue de Maubeuge 75009 Paris FR"
},
"cuisines": [
{
"id": 581,
"label": "Sud Américain",
"description": "",
"character": "s",
"type": "primary"
}
],
"take_away": true,
"on_site": false,
"web_page_url": "https://www.lunchr.co/restaurants/27828/menu",
"max_seats": 2,
"grouped_order_available": true,
"grouped_order_discounts": [
{
"id": 2448,
"nb_people": 3,
"discount_percent": 15,
"minimum_amount": 30,
"delta_people": 2
},
{
"id": 2449,
"nb_people": 5,
"discount_percent": 20,
"minimum_amount": 50,
"delta_people": 2
},
{
"id": 2450,
"nb_people": 7,
"discount_percent": 25,
"minimum_amount": 70,
"delta_people": 2
}
]
},
"leader": {
"id": 1385,
"email": "[email protected]",
"phone_number": "+33785623196",
"first_name": "Thomas",
"last_name": "DE BONA",
"avatar_picture": {
"url": "https://res.cloudinary.com/hbnjrwllw/image/upload/user_picture_1385",
"key": "user_picture_1385"
},
"referrer_voucher_code": "ZPVERE",
"referrer_voucher_value": {
"value": 5,
"currency": {
"iso_3": "EUR",
"symbol": "€",
"title": "Euro"
}
},
"completed_wishlists": false
},
"users": [
{
"id": 1385,
"email": "[email protected]",
"phone_number": "+33785623196",
"first_name": "Thomas",
"last_name": "DE BONA",
"avatar_picture": {
"url": "https://res.cloudinary.com/hbnjrwllw/image/upload/user_picture_1385",
"key": "user_picture_1385"
},
"referrer_voucher_code": "ZPVERE",
"referrer_voucher_value": {
"value": 5,
"currency": {
"iso_3": "EUR",
"symbol": "€",
"title": "Euro"
}
},
"completed_wishlists": false
},
{
"id": 12,
"email": "[email protected]",
"phone_number": "+33660234225",
"first_name": "Pierre-Julien",
"last_name": "D'albertoto",
"avatar_picture": {
"url": "https://res.cloudinary.com/hbnjrwllw/image/upload/user_picture_12",
"key": "user_picture_12"
},
"referrer_voucher_code": "SBRZKR",
"referrer_voucher_value": {
"value": 5,
"currency": {
"iso_3": "EUR",
"symbol": "€",
"title": "Euro"
}
},
"completed_wishlists": false
},
{
"id": 5322,
"email": "[email protected]",
"phone_number": "+33123456733",
"first_name": "bobby marco theodor pablo upbilo ",
"last_name": "Da Silva malta de suza fuentes",
"avatar_picture": {
"url": "https://res.cloudinary.com/hbnjrwllw/image/upload/user_picture_5322",
"key": "user_picture_5322"
},
"referrer_voucher_code": "WOUJXL",
"referrer_voucher_value": {
"value": 5,
"currency": {
"iso_3": "EUR",
"symbol": "€",
"title": "Euro"
}
},
"completed_wishlists": false
}
],
"desired_at": "2017-11-03T11:40:04.292+01:00",
"consumption_mode": "TAKE_AWAY",
"sub_total": {
"value": 38,
"currency": {
"iso_3": "EUR",
"symbol": "€",
"title": "Euro"
}
},
"applied_discount_id": 2448,
"discount_steps": [
{
"discount_id": 2448,
"user_ids": [
12,
5322
],
"remaining_nb_people": 0,
"unlocked": true
},
{
"discount_id": 2449,
"user_ids": [],
"remaining_nb_people": 2,
"unlocked": false
},
{
"discount_id": 2450,
"user_ids": [],
"remaining_nb_people": 2,
"unlocked": false
}
],
"roulette_winner_ids": [],
"expected_delay": 0
},
"workspace": {
"id": 1,
"name": "Lunchr"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment