Skip to content

Instantly share code, notes, and snippets.

@skozz
Last active June 23, 2016 19:33
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 skozz/f4d222757811ad7889867c1a3424c781 to your computer and use it in GitHub Desktop.
Save skozz/f4d222757811ad7889867c1a3424c781 to your computer and use it in GitHub Desktop.
yelp-update-testing
// Before
{
"task": {
"state": "SUCCESS",
"id": "e3fa2871-8308-4b56-a5ae-7d5fcbabc2cd",
"result": {
"profile": {
"rating": 0.0,
"max_rating": 5,
"name": "Gilmar Soluciones Constructivas",
"service": "yelp",
"url": "http://www.yelp.com/biz/gilmar-soluciones-constructivas-madrid",
"extended_info": {
"alias": "gilmar-soluciones-constructivas-madrid",
"quicktip_count": 0,
"formatted_address": "Calle O'donnell, 13\nSalamanca\n28009 Madrid\nSpain"
},
"hours": {},
"phone": "+34915750006",
"closed": false,
"lat": 40.4218594,
"service_id": "3tWqopKDdnz8itw9281otw",
"lng": -3.6794851,
"categories": [],
"total_reviews": 0,
"street_address": "Calle O'donnell, 13\nSalamanca\n28009 Madrid\nSpain",
"extraction_status": 2
},
"status": "OK"
}
}
}
// After
{
"task": {
"state": "SUCCESS",
"id": "c1ddaf5b-1ec3-40b3-b317-643379ad12d1",
"result": {
"profile": {
"rating": 0.0,
"max_rating": 5,
"name": "Gilmar Soluciones Constructivas",
"service": "yelp",
"url": "http://www.yelp.com/biz/gilmar-soluciones-constructivas-madrid",
"extended_info": {
"alias": "gilmar-soluciones-constructivas-madrid",
"quicktip_count": 0,
"formatted_address": "Calle O'donnell, 13\nSalamanca\n28009 Madrid\nSpain"
},
"hours": {},
"phone": "+34915750006",
"closed": false,
"claimed": null,
"service_id": "3tWqopKDdnz8itw9281otw",
"lng": -3.6794851,
"lat": 40.4218594,
"categories": [],
"total_reviews": 0,
"street_address": "Calle O'donnell, 13\nSalamanca\n28009 Madrid\nSpain",
"extraction_status": 2
},
"status": "OK"
}
}
}
{
"task": {
"state": "SUCCESS",
"id": "19a564df-9a7c-434a-b6ce-d442d66657d8",
"result": {
"profile": {
"rating": 4.5,
"max_rating": 5,
"name": "Pimlico Fresh",
"service": "yelp",
"url": "http://www.yelp.com/biz/pimlico-fresh-london",
"extended_info": {
"alias": "pimlico-fresh-london",
"quicktip_count": 10,
"formatted_address": "85 Wilton Road\nVictoria\nLondon SW1V 1DE\nUK",
"attributes": [
{
"value": "No",
"label": "Takes Reservations"
},
{
"value": "No",
"label": "Delivery"
},
{
"value": "Yes",
"label": "Take-out"
},
{
"value": "Yes",
"label": "Outdoor Seating"
},
{
"value": "Casual",
"label": "Ambience"
},
{
"value": "Average",
"label": "Noise Level"
},
{
"value": "Casual",
"label": "Attire"
},
{
"value": "Yes",
"label": "Good for Groups"
},
{
"value": "Yes",
"label": "Good for Kids"
},
{
"value": "Lunch",
"label": "Good For"
},
{
"value": "Yes",
"label": "Good for Working"
},
{
"value": "Yes",
"label": "Accepts Credit Cards"
},
{
"value": "No",
"label": "Accepts Apple Pay"
},
{
"value": "Street",
"label": "Parking"
},
{
"value": "No",
"label": "Bike Parking"
},
{
"value": "Yes",
"label": "Waiter Service"
},
{
"value": "No",
"label": "Wi-Fi"
},
{
"value": "No",
"label": "Alcohol"
},
{
"value": "No",
"label": "Wheelchair Accessible"
},
{
"value": "No",
"label": "Has TV"
}
]
},
"hours": {
"wed": [
"00:00 - 23:59"
],
"sun": [
"00:00 - 23:59"
],
"fri": [
"00:00 - 23:59"
],
"tue": [
"00:00 - 23:59"
],
"mon": [
"00:00 - 23:59"
],
"thu": [
"00:00 - 23:59"
],
"sat": [
"00:00 - 23:59"
]
},
"phone": "+442079320030",
"closed": false,
"claimed": null,
"service_id": "jrRKp4dsl9uTQjBb0uBbfw",
"lng": -0.14021524722041,
"lat": 51.492391374275,
"categories": [
"Coffee & Tea",
"Breakfast & Brunch"
],
"total_reviews": 69,
"street_address": "85 Wilton Road\nVictoria\nLondon SW1V 1DE\nUK",
"extraction_status": 2
},
"status": "OK"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment