Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save richardtvaughan/da477bbeb6250d68445ef800195ecef3 to your computer and use it in GitHub Desktop.
Save richardtvaughan/da477bbeb6250d68445ef800195ecef3 to your computer and use it in GitHub Desktop.
POST /v2/venues/add?oauth_token=2IX3SZONGKAPV34RTPBOCIXX0WMB1NSZHHTTURK2GUMXMIR5&v=20131016&name=Monty%20Smith&ll=51.8956%2C%20-2.07799&address=5%20Ormond%20Pl&city=Cheltenham&state=Gloucestershire&zip=GL50%201UH&phone=01242226431 HTTP/1.1
Host:
api.foursquare.com
Content-Length:
0
X-Target-URI:
https://api.foursquare.com
Connection:
Keep-Alive
HTTP/1.1 409 Conflict
X-Cache-Hits:
0
Tracer-Time:
50
Content-Length:
1161
X-RateLimit-Limit:
500
X-RateLimit-Remaining:
499
X-Served-By:
cache-iad2630-IAD
Connection:
keep-alive
X-Cache:
MISS
Server:
nginx
Date:
Tue, 04 Apr 2017 09:15:13 GMT
Access-Control-Allow-Origin:
*
X-RateLimit-Path:
/v2/venues/add
Via:
1.1 varnish
Content-Type:
application/json; charset=utf-8
Accept-Ranges:
bytes
{
"meta": {
"code": 409,
"errorType": "other",
"errorDetail": "Found duplicates",
"errorMessage": "Possible duplicates found.",
"requestId": "58e364216a607154f0744f1c"
},
"notifications": [{
"type": "notificationTray",
"item": {
"unreadCount": 0
}
}],
"response": {
"ignoreDuplicatesKey": "a1b3ccb4125eb3e0dc9f3b2e97de674f",
"candidateDuplicateVenues": [{
"id": "4de4d629b0fb267148bd0b5f",
"name": "Monty Smith",
"contact": {
"phone": "01242520311",
"formattedPhone": "01242 520311"
},
"location": {
"address": "5 Ormond Pl",
"lat": 51.8990228,
"lng": -2.0762662,
"labeledLatLngs": [{
"label": "display",
"lat": 51.8990228,
"lng": -2.0762662
}],
"distance": 398,
"postalCode": "GL5 0 1",
"cc": "GB",
"city": "Cheltenham",
"state": "Gloucestershire",
"country": "United Kingdom",
"formattedAddress": ["5 Ormond Pl", "Cheltenham", "Gloucestershire", "GL5 0 1"]
},
"categories": [{
"id": "4bf58dd8d48988d104951735",
"name": "Boutique",
"pluralName": "Boutiques",
"shortName": "Boutique",
"icon": {
"prefix": "https:\/\/ss3.4sqi.net\/img\/categories_v2\/shops\/apparel_boutique_",
"suffix": ".png"
},
"primary": true
}],
"verified": false,
"stats": {
"checkinsCount": 30,
"usersCount": 15,
"tipCount": 0
},
"allowMenuUrlEdit": true,
"beenHere": {
"lastCheckinExpiredAt": 0
}
}]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment