jubilee/notes/rightbyme.txt
Martin Donnelly e03402f1fb add ByMe
2018-02-26 16:56:14 +00:00

403 lines
8.6 KiB
Plaintext

// https://api.foursquare.com/v2/venues/search?ll=56.003506,-4.733558&radius=5&limit=1&client_id=IXXFUGW3NC3DEVS2V5EU4NV4CL5E12AYGUPIR2D3U3B5DX4B&client_secret=MZRIJDCEKUMVERA1OKVAIZI0TYAEBD3W2A2AGPTPI5TOLL1D&v=20180224
/*
{
"meta": {
"code": 200,
"requestId": "5a91f3064c1f6746973ceddd"
},
"response": {
"confident": false,
"venues": [
{
"allowMenuUrlEdit": true,
"beenHere": {
"lastCheckinExpiredAt": 0
},
"categories": [
{
"icon": {
"prefix": "https://ss3.4sqi.net/img/categories_v2/shops/food_grocery_",
"suffix": ".png"
},
"id": "4bf58dd8d48988d118951735",
"name": "Grocery Store",
"pluralName": "Grocery Stores",
"primary": true,
"shortName": "Grocery Store"
}
],
"contact": {
"formattedPhone": "+44 845 677 9348",
"phone": "+448456779348",
"twitter": "uktescooffers"
},
"hasPerk": false,
"hereNow": {
"count": 0,
"groups": [
],
"summary": "Nobody here"
},
"id": "4c5ff51213791b8d0d5c4eaf",
"location": {
"address": "23-25 Sinclair Street",
"cc": "GB",
"city": "Helensburgh",
"country": "United Kingdom",
"distance": 20,
"formattedAddress": [
"23-25 Sinclair Street",
"Helensburgh",
"Argyll and Bute",
"G84 8SR",
"United Kingdom"
],
"labeledLatLngs": [
{
"label": "display",
"lat": 56.00348039818216,
"lng": -4.733884334564209
}
],
"lat": 56.00348039818216,
"lng": -4.733884334564209,
"postalCode": "G84 8SR",
"state": "Argyll and Bute"
},
"name": "Tesco",
"referralId": "v-1519514374",
"specials": {
"count": 0,
"items": [
]
},
"stats": {
"checkinsCount": 76,
"tipCount": 1,
"usersCount": 41
},
"storeId": "1492",
"url": "http://www.tesco.com",
"venueChains": [
{
"id": "556e1d0ca7c82e6b7251e0b0"
}
],
"verified": true
}
]
}
}
*/
// https://api.yelp.com/v3/businesses/search?latitude=55.94228694015362&longitude=-4.555356528181545&term=Delhi+Darbar&radius=250&sort_by=best_match
// https://api.yelp.com/v3/businesses/search?latitude=55.94299971824836&longitude=-4.561911821365356&term=Morrisons+Petrol+Station&radius=250&sort_by=best_match
// https://api.yelp.com/v3/businesses/search?latitude=56.00348039818216&longitude=-4.733884334564209&term=Tesco&radius=250&sort_by=best_match
/*
{
"businesses": [
{
"categories": [
{
"alias": "grocery",
"title": "Grocery"
}
],
"coordinates": {
"latitude": 56.0035142354994,
"longitude": -4.73386721648295
},
"display_phone": "+44 345 677 9348",
"distance": 3.910164152196,
"id": "tesco-stores-helensburgh",
"image_url": "https://s3-media3.fl.yelpcdn.com/bphoto/yjIlNPrTJki6y2gBUMYVRA/o.jpg",
"is_closed": false,
"location": {
"address1": "23-25 Sinclair Street",
"address2": "",
"address3": "",
"city": "Helensburgh",
"country": "GB",
"display_address": [
"23-25 Sinclair Street",
"Helensburgh G84 8SR",
"United Kingdom"
],
"state": "GLG",
"zip_code": "G84 8SR"
},
"name": "Tesco Stores",
"phone": "+443456779348",
"price": "££",
"rating": 3.5,
"review_count": 4,
"transactions": [
],
"url": "https://www.yelp.com/biz/tesco-stores-helensburgh?adjust_creative=s8FdwjzKWCpdbkUzShvAgg&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=s8FdwjzKWCpdbkUzShvAgg"
}
],
"region": {
"center": {
"latitude": 56.0034803982,
"longitude": -4.7338843346
}
},
"total": 2
}
*/
// https://api.foursquare.com/v2/venues/4c5ff51213791b8d0d5c4eaf?client_id=IXXFUGW3NC3DEVS2V5EU4NV4CL5E12AYGUPIR2D3U3B5DX4B&client_secret=MZRIJDCEKUMVERA1OKVAIZI0TYAEBD3W2A2AGPTPI5TOLL1D&v=20180224
/*
{
"meta": {
"code": 200,
"requestId": "5a91f2ea6a607123cf0674c2"
},
"response": {
"venue": {
"allowMenuUrlEdit": true,
"attributes": {
"groups": [
]
},
"beenHere": {
"count": 0,
"lastCheckinExpiredAt": 0,
"marked": false,
"unconfirmedCount": 0
},
"canonicalUrl": "https://foursquare.com/v/tesco/4c5ff51213791b8d0d5c4eaf",
"categories": [
{
"icon": {
"prefix": "https://ss3.4sqi.net/img/categories_v2/shops/food_grocery_",
"suffix": ".png"
},
"id": "4bf58dd8d48988d118951735",
"name": "Grocery Store",
"pluralName": "Grocery Stores",
"primary": true,
"shortName": "Grocery Store"
}
],
"contact": {
"formattedPhone": "+44 845 677 9348",
"phone": "+448456779348",
"twitter": "uktescooffers"
},
"createdAt": 1281357074,
"description": "Every little helps",
"dislike": false,
"hereNow": {
"count": 0,
"groups": [
],
"summary": "Nobody here"
},
"id": "4c5ff51213791b8d0d5c4eaf",
"inbox": {
"count": 0,
"items": [
]
},
"likes": {
"count": 1,
"groups": [
{
"count": 1,
"items": [
{
"firstName": "Jonathan",
"gender": "male",
"id": "723181",
"lastName": "D.",
"photo": {
"prefix": "https://igx.4sqi.net/img/user/",
"suffix": "/PEMF5HPRFRSRMQ0L.jpg"
}
}
],
"type": "others"
}
],
"summary": "1 Like"
},
"listed": {
"count": 0,
"groups": [
{
"count": 0,
"items": [
],
"name": "Lists from other people",
"type": "others"
}
]
},
"location": {
"address": "23-25 Sinclair Street",
"cc": "GB",
"city": "Helensburgh",
"country": "United Kingdom",
"formattedAddress": [
"23-25 Sinclair Street",
"Helensburgh",
"Argyll and Bute",
"G84 8SR",
"United Kingdom"
],
"labeledLatLngs": [
{
"label": "display",
"lat": 56.00348039818216,
"lng": -4.733884334564209
}
],
"lat": 56.00348039818216,
"lng": -4.733884334564209,
"postalCode": "G84 8SR",
"state": "Argyll and Bute"
},
"name": "Tesco",
"ok": false,
"page": {
"pageInfo": {
"links": {
"count": 1,
"items": [
{
"url": "http://www.tesco.com"
}
]
}
},
"user": {
"bio": "",
"contact": {
"twitter": "uktescooffers"
},
"firstName": "Tesco Offers",
"gender": "none",
"homeCity": "United Kingdom",
"id": "26219082",
"lists": {
"groups": [
{
"count": 2,
"items": [
],
"type": "created"
}
]
},
"photo": {
"prefix": "https://igx.4sqi.net/img/user/",
"suffix": "/RN4OT2YOFHDUB0DJ.jpg"
},
"tips": {
"count": 1
},
"type": "chain"
}
},
"pageUpdates": {
"count": 0,
"items": [
]
},
"photos": {
"count": 0,
"groups": [
]
},
"rating": 5.5,
"ratingColor": "FF9600",
"ratingSignals": 5,
"reasons": {
"count": 0,
"items": [
]
},
"shortUrl": "http://4sq.com/dC1wZO",
"specials": {
"count": 0,
"items": [
]
},
"stats": {
"checkinsCount": 76,
"tipCount": 1,
"usersCount": 45,
"visitsCount": 82
},
"storeId": "1492",
"timeZone": "Europe/London",
"tips": {
"count": 1,
"groups": [
{
"count": 1,
"items": [
{
"agreeCount": 0,
"canonicalUrl": "https://foursquare.com/item/4c6e5107d5c3a1cd08f1c72b",
"createdAt": 1282298119,
"disagreeCount": 0,
"id": "4c6e5107d5c3a1cd08f1c72b",
"likes": {
"count": 0,
"groups": [
]
},
"logView": true,
"text": "Prepare to be deafened by relief calls over the loudspeaker",
"todo": {
"count": 0
},
"type": "user",
"user": {
"firstName": "Dean",
"gender": "male",
"id": "2505497",
"lastName": "Newell",
"photo": {
"prefix": "https://igx.4sqi.net/img/user/",
"suffix": "/2JS3DS4QAM3BAQ3C.jpg"
}
}
}
],
"name": "All tips",
"type": "others"
}
]
},
"url": "http://www.tesco.com",
"venueChains": [
{
"bestName": {
"lang": "en",
"name": "Tesco"
},
"id": "556e1d0ca7c82e6b7251e0b0",
"logo": {
"prefix": "https://igx.4sqi.net/img/user/",
"suffix": "/342353049_eouBKgGS_l39opqWMP-NJ4wfr18YZzez2y2m-WDzcq1ddDexbQd9kpEB1Z0XE6xr7FGzbd5J9"
}
}
],
"verified": true
}
}
}
*/
// https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=uktescooffers&count=5&trim_user=true&exclude_replies=true&include_rts=false