Example of check-in pulled from the Foursquare API
{ | |
"meta": { | |
"code": 200, | |
"requestId": "5a09bb0a4434b9509cf028a7" | |
}, | |
"notifications": [ | |
{ | |
"type": "notificationTray", | |
"item": { | |
"unreadCount": 0 | |
} | |
} | |
], | |
"response": { | |
"checkin": { | |
"id": "5a0719c1d4cc9849790606eb", | |
"createdAt": 1510414785, | |
"type": "checkin", | |
"entities": [], | |
"shout": "Primera calçotada de l’any!", | |
"timeZoneOffset": 60, | |
"user": { | |
"id": "11437", | |
"firstName": "Mark", | |
"lastName": "Hendrickson", | |
"gender": "male", | |
"relationship": "self", | |
"photo": { | |
"prefix": "https://igx.4sqi.net/img/user/", | |
"suffix": "/11437-4UKAY5TBPAD5X2DG.jpg" | |
} | |
}, | |
"venue": { | |
"id": "4d0bce3d46bab60c9cc82990", | |
"name": "Corcega", | |
"contact": {}, | |
"location": { | |
"address": "C. Major, 31", | |
"lat": 41.076488193500616, | |
"lng": 1.1382177519242145, | |
"labeledLatLngs": [ | |
{ | |
"label": "display", | |
"lat": 41.076488193500616, | |
"lng": 1.1382177519242145 | |
} | |
], | |
"postalCode": "43840", | |
"cc": "ES", | |
"city": "Salou", | |
"state": "Catalonia", | |
"country": "Spain", | |
"formattedAddress": [ | |
"C. Major, 31", | |
"43840 Salou Catalonia" | |
] | |
}, | |
"categories": [ | |
{ | |
"id": "4bf58dd8d48988d150941735", | |
"name": "Spanish Restaurant", | |
"pluralName": "Spanish Restaurants", | |
"shortName": "Spanish", | |
"icon": { | |
"prefix": "https://ss3.4sqi.net/img/categories_v2/food/spanish_", | |
"suffix": ".png" | |
}, | |
"primary": true | |
} | |
], | |
"verified": false, | |
"stats": { | |
"checkinsCount": 164, | |
"usersCount": 127, | |
"tipCount": 16 | |
}, | |
"allowMenuUrlEdit": true, | |
"beenHere": { | |
"lastCheckinExpiredAt": 0 | |
}, | |
"reasons": { | |
"count": 1, | |
"items": [ | |
{ | |
"summary": "You're here!", | |
"type": "general", | |
"reasonName": "hereNowReason", | |
"target": { | |
"type": "navigation", | |
"object": { | |
"id": "5a09bb0adb2aeb5f291550b7", | |
"type": "checkinDetail", | |
"target": { | |
"type": "path", | |
"url": "/checkins/5a0719c1d4cc9849790606eb" | |
}, | |
"ignorable": false | |
} | |
} | |
} | |
] | |
} | |
}, | |
"source": { | |
"name": "Swarm for iOS", | |
"url": "https://www.swarmapp.com" | |
}, | |
"photos": { | |
"count": 1, | |
"items": [ | |
{ | |
"id": "5a0719c8b399f71435396a37", | |
"createdAt": 1510414792, | |
"prefix": "https://igx.4sqi.net/img/general/", | |
"suffix": "/11437_gvUS2Nmh9bAaE7O2PP98sz5TZTzTbzr-wQlEShLGkmU.jpg", | |
"width": 1920, | |
"height": 1440, | |
"user": { | |
"id": "11437", | |
"firstName": "Mark", | |
"lastName": "Hendrickson", | |
"gender": "male", | |
"relationship": "self", | |
"photo": { | |
"prefix": "https://igx.4sqi.net/img/user/", | |
"suffix": "/11437-4UKAY5TBPAD5X2DG.jpg" | |
} | |
}, | |
"visibility": "friends" | |
} | |
], | |
"layout": { | |
"name": "single" | |
} | |
}, | |
"posts": { | |
"count": 0, | |
"textCount": 0 | |
}, | |
"likes": { | |
"count": 1, | |
"groups": [ | |
{ | |
"type": "friends", | |
"count": 1, | |
"items": [ | |
{ | |
"id": "4208", | |
"firstName": "Ken", | |
"lastName": "Yeung", | |
"gender": "male", | |
"relationship": "friend", | |
"photo": { | |
"prefix": "https://igx.4sqi.net/img/user/", | |
"suffix": "/4208-VOLYZO02Q00RMI10.jpg" | |
} | |
} | |
] | |
} | |
], | |
"summary": "Ken Yeung" | |
}, | |
"like": false, | |
"comments": { | |
"count": 2, | |
"items": [ | |
{ | |
"id": "5a07c9dbee7120079374b17a", | |
"createdAt": 1510459867, | |
"user": { | |
"id": "118902542", | |
"firstName": "lisa", | |
"lastName": "hendrickson", | |
"gender": "none", | |
"relationship": "friend", | |
"photo": { | |
"prefix": "https://igx.4sqi.net/img/user/", | |
"suffix": "/blank_boy.png", | |
"default": true | |
} | |
}, | |
"text": "What is Ana doing? We’re trying to figure it out." | |
}, | |
{ | |
"id": "5a081859bd40097eb4a14290", | |
"createdAt": 1510479961, | |
"user": { | |
"id": "11437", | |
"firstName": "Mark", | |
"lastName": "Hendrickson", | |
"gender": "male", | |
"relationship": "self", | |
"photo": { | |
"prefix": "https://igx.4sqi.net/img/user/", | |
"suffix": "/11437-4UKAY5TBPAD5X2DG.jpg" | |
} | |
}, | |
"text": "That’s Ana’s sister, Clara 🧐 She’s eating Calçots!" | |
} | |
] | |
}, | |
"sticker": { | |
"id": "56312102498e50c6f99f1d9b", | |
"name": "Foodie", | |
"image": { | |
"prefix": "https://irs2.4sqi.net/img/sticker/", | |
"sizes": [ | |
60, | |
94, | |
150, | |
300 | |
], | |
"name": "/foodie_a56e26.png" | |
}, | |
"stickerType": "unlockable", | |
"group": { | |
"name": "collectible", | |
"index": 47 | |
}, | |
"pickerPosition": { | |
"page": 1, | |
"index": 23 | |
}, | |
"teaseText": "Ten restaurants? This sticker might just blow your monthly budget.", | |
"unlockText": "10 restaurants in 30 days? You’re a real foodie! Just promise you won’t join the Yelp darkside. The Internet’s got enough useless one star reviews…😉" | |
}, | |
"isMayor": false, | |
"score": { | |
"total": 14, | |
"scores": [ | |
{ | |
"icon": "https://ss1.4sqi.net/img/points/coin_icon_magnify.png", | |
"message": "Your first check-in at Corcega!", | |
"points": 5 | |
}, | |
{ | |
"icon": "https://ss1.4sqi.net/img/points/coin_icon_photo.png", | |
"message": "Stunning photo. Did Annie Leibovitz steal your phone? We heard she does that.", | |
"points": 5 | |
}, | |
{ | |
"icon": "https://ss1.4sqi.net/img/points/coin_icon_magnify.png", | |
"message": "First of your friends to check in here.", | |
"points": 2 | |
}, | |
{ | |
"icon": "https://ss1.4sqi.net/img/points/coin_icon_magnify.png", | |
"target": { | |
"type": "path", | |
"object": { | |
"url": "/users/self/historysearch?geoId=72057594041038922&displayText=Salou" | |
} | |
}, | |
"message": "Your last check-in in Salou was in May at RENFE Salou.", | |
"points": 2 | |
} | |
] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment