foursquare2 1.9.0 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/foursquare2.gemspec +5 -2
- data/lib/foursquare2/users.rb +1 -0
- data/test/fixtures/users/user_checkins_aftertimestamp.json +917 -0
- data/test/fixtures/users/user_checkins_beforetimestamp.json +556 -0
- data/test/fixtures/users/user_checkins_plain.json +1930 -0
- data/test/test_users.rb +22 -0
- metadata +6 -3
@@ -0,0 +1,556 @@
|
|
1
|
+
{
|
2
|
+
"meta": {
|
3
|
+
"code": 200
|
4
|
+
},
|
5
|
+
"notifications": [
|
6
|
+
{
|
7
|
+
"type": "notificationTray",
|
8
|
+
"item": {
|
9
|
+
"unreadCount": 0
|
10
|
+
}
|
11
|
+
}
|
12
|
+
],
|
13
|
+
"response": {
|
14
|
+
"checkins": {
|
15
|
+
"count": 63,
|
16
|
+
"items": [
|
17
|
+
{
|
18
|
+
"id": "50b12f2be4b056d2abb7818d",
|
19
|
+
"createdAt": 1353789227,
|
20
|
+
"type": "checkin",
|
21
|
+
"timeZoneOffset": -300,
|
22
|
+
"venue": {
|
23
|
+
"id": "4bedecffa40fc92817c3820c",
|
24
|
+
"name": "Chart House",
|
25
|
+
"contact": {
|
26
|
+
"phone": "2013486628",
|
27
|
+
"formattedPhone": "(201) 348-6628"
|
28
|
+
},
|
29
|
+
"location": {
|
30
|
+
"address": "Pier D, Lincoln Harbor",
|
31
|
+
"lat": 40.7612521224501,
|
32
|
+
"lng": -74.01911973953247,
|
33
|
+
"postalCode": "07086",
|
34
|
+
"city": "Weehawken",
|
35
|
+
"state": "NJ",
|
36
|
+
"country": "United States",
|
37
|
+
"cc": "US"
|
38
|
+
},
|
39
|
+
"categories": [
|
40
|
+
{
|
41
|
+
"id": "4bf58dd8d48988d14e941735",
|
42
|
+
"name": "American Restaurant",
|
43
|
+
"pluralName": "American Restaurants",
|
44
|
+
"shortName": "American",
|
45
|
+
"icon": {
|
46
|
+
"prefix": "https://foursquare.com/img/categories_v2/food/default_",
|
47
|
+
"suffix": ".png"
|
48
|
+
},
|
49
|
+
"primary": true
|
50
|
+
}
|
51
|
+
],
|
52
|
+
"verified": true,
|
53
|
+
"stats": {
|
54
|
+
"checkinsCount": 5006,
|
55
|
+
"usersCount": 2905,
|
56
|
+
"tipCount": 41
|
57
|
+
},
|
58
|
+
"url": "http://www.chart-house.com",
|
59
|
+
"likes": {
|
60
|
+
"count": 6,
|
61
|
+
"groups": [
|
62
|
+
{
|
63
|
+
"type": "others",
|
64
|
+
"count": 6,
|
65
|
+
"items": [
|
66
|
+
{
|
67
|
+
"id": "34030363",
|
68
|
+
"firstName": "James",
|
69
|
+
"lastName": "M.",
|
70
|
+
"photo": {
|
71
|
+
"prefix": "https://irs2.4sqi.net/img/user/",
|
72
|
+
"suffix": "/10MZPNWGV2ZR3YDC.jpg"
|
73
|
+
}
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"id": "2965449",
|
77
|
+
"firstName": "Abby",
|
78
|
+
"lastName": "M.",
|
79
|
+
"photo": {
|
80
|
+
"prefix": "https://irs1.4sqi.net/img/user/",
|
81
|
+
"suffix": "/HHLXDFAB5ZKOKDIP.jpg"
|
82
|
+
}
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"id": "3943516",
|
86
|
+
"firstName": "Miguel",
|
87
|
+
"lastName": "R.",
|
88
|
+
"photo": {
|
89
|
+
"prefix": "https://irs0.4sqi.net/img/user/",
|
90
|
+
"suffix": "/NJJXD5Y4BWTGHR5R.jpg"
|
91
|
+
}
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"id": "29201165",
|
95
|
+
"firstName": "Yvette",
|
96
|
+
"lastName": "G.",
|
97
|
+
"photo": {
|
98
|
+
"prefix": "https://irs2.4sqi.net/img/user/",
|
99
|
+
"suffix": "/BONGFVUYPIV2L4KO.jpg"
|
100
|
+
}
|
101
|
+
}
|
102
|
+
]
|
103
|
+
}
|
104
|
+
],
|
105
|
+
"summary": "James M, Abby M, Miguel R & 3 others"
|
106
|
+
},
|
107
|
+
"like": false,
|
108
|
+
"beenHere": {
|
109
|
+
"count": 1,
|
110
|
+
"marked": false
|
111
|
+
},
|
112
|
+
"specials": {
|
113
|
+
"count": 0
|
114
|
+
}
|
115
|
+
},
|
116
|
+
"likes": {
|
117
|
+
"count": 0,
|
118
|
+
"groups": []
|
119
|
+
},
|
120
|
+
"like": false,
|
121
|
+
"photos": {
|
122
|
+
"count": 0,
|
123
|
+
"items": []
|
124
|
+
},
|
125
|
+
"comments": {
|
126
|
+
"count": 0,
|
127
|
+
"items": []
|
128
|
+
},
|
129
|
+
"source": {
|
130
|
+
"name": "tracker test app 2",
|
131
|
+
"url": "http://localhost:3000"
|
132
|
+
}
|
133
|
+
},
|
134
|
+
{
|
135
|
+
"id": "50b13316e4b042e7817f0775",
|
136
|
+
"createdAt": 1353790230,
|
137
|
+
"type": "checkin",
|
138
|
+
"timeZoneOffset": -300,
|
139
|
+
"venue": {
|
140
|
+
"id": "4cb06cd5aef16dcb8883b054",
|
141
|
+
"name": "SONIC Drive In",
|
142
|
+
"contact": {
|
143
|
+
"phone": "2017664595",
|
144
|
+
"formattedPhone": "(201) 766-4595",
|
145
|
+
"twitter": "sonicdrive_in"
|
146
|
+
},
|
147
|
+
"location": {
|
148
|
+
"address": "2819 Kennedy Boulevard",
|
149
|
+
"lat": 40.774093,
|
150
|
+
"lng": -74.03775911,
|
151
|
+
"postalCode": "07047",
|
152
|
+
"city": "North Bergen",
|
153
|
+
"state": "NJ",
|
154
|
+
"country": "United States",
|
155
|
+
"cc": "US"
|
156
|
+
},
|
157
|
+
"categories": [
|
158
|
+
{
|
159
|
+
"id": "4bf58dd8d48988d16e941735",
|
160
|
+
"name": "Fast Food Restaurant",
|
161
|
+
"pluralName": "Fast Food Restaurants",
|
162
|
+
"shortName": "Fast Food",
|
163
|
+
"icon": {
|
164
|
+
"prefix": "https://foursquare.com/img/categories_v2/food/fastfood_",
|
165
|
+
"suffix": ".png"
|
166
|
+
},
|
167
|
+
"primary": true
|
168
|
+
}
|
169
|
+
],
|
170
|
+
"verified": true,
|
171
|
+
"stats": {
|
172
|
+
"checkinsCount": 2365,
|
173
|
+
"usersCount": 1348,
|
174
|
+
"tipCount": 20
|
175
|
+
},
|
176
|
+
"url": "http://sonicdrivein.com",
|
177
|
+
"likes": {
|
178
|
+
"count": 4,
|
179
|
+
"groups": [
|
180
|
+
{
|
181
|
+
"type": "others",
|
182
|
+
"count": 4,
|
183
|
+
"items": [
|
184
|
+
{
|
185
|
+
"id": "1656200",
|
186
|
+
"firstName": "Max",
|
187
|
+
"lastName": "U.",
|
188
|
+
"photo": {
|
189
|
+
"prefix": "https://irs3.4sqi.net/img/user/",
|
190
|
+
"suffix": "/SIDNHLG4RBT21GZ3.jpg"
|
191
|
+
}
|
192
|
+
},
|
193
|
+
{
|
194
|
+
"id": "160580",
|
195
|
+
"firstName": "Luigino",
|
196
|
+
"lastName": "G.",
|
197
|
+
"photo": {
|
198
|
+
"prefix": "https://irs0.4sqi.net/img/user/",
|
199
|
+
"suffix": "/PAP3N0CQWENRFTPI.jpg"
|
200
|
+
}
|
201
|
+
},
|
202
|
+
{
|
203
|
+
"id": "302559",
|
204
|
+
"firstName": "Tony",
|
205
|
+
"lastName": "P.",
|
206
|
+
"photo": {
|
207
|
+
"prefix": "https://irs0.4sqi.net/img/user/",
|
208
|
+
"suffix": "/UHB0HVEEFH4X3CTL.jpg"
|
209
|
+
}
|
210
|
+
},
|
211
|
+
{
|
212
|
+
"id": "11176113",
|
213
|
+
"firstName": "Enrique",
|
214
|
+
"lastName": "T.",
|
215
|
+
"photo": {
|
216
|
+
"prefix": "https://irs1.4sqi.net/img/user/",
|
217
|
+
"suffix": "/AMROOQEGY0TQPGMM.jpg"
|
218
|
+
}
|
219
|
+
}
|
220
|
+
]
|
221
|
+
}
|
222
|
+
],
|
223
|
+
"summary": "Max U, Luigino G, Tony P & Enrique T"
|
224
|
+
},
|
225
|
+
"like": false,
|
226
|
+
"beenHere": {
|
227
|
+
"count": 1,
|
228
|
+
"marked": false
|
229
|
+
},
|
230
|
+
"specials": {
|
231
|
+
"count": 0
|
232
|
+
}
|
233
|
+
},
|
234
|
+
"likes": {
|
235
|
+
"count": 0,
|
236
|
+
"groups": []
|
237
|
+
},
|
238
|
+
"like": false,
|
239
|
+
"photos": {
|
240
|
+
"count": 0,
|
241
|
+
"items": []
|
242
|
+
},
|
243
|
+
"comments": {
|
244
|
+
"count": 0,
|
245
|
+
"items": []
|
246
|
+
},
|
247
|
+
"source": {
|
248
|
+
"name": "tracker test app 2",
|
249
|
+
"url": "http://localhost:3000"
|
250
|
+
}
|
251
|
+
},
|
252
|
+
{
|
253
|
+
"id": "50b134eee4b0f706d011ac7c",
|
254
|
+
"createdAt": 1353790702,
|
255
|
+
"type": "checkin",
|
256
|
+
"timeZoneOffset": -300,
|
257
|
+
"venue": {
|
258
|
+
"id": "4c84134447cc224b2245959f",
|
259
|
+
"name": "El Artesano Restaurant",
|
260
|
+
"contact": {
|
261
|
+
"phone": "2018677341",
|
262
|
+
"formattedPhone": "(201) 867-7341"
|
263
|
+
},
|
264
|
+
"location": {
|
265
|
+
"address": "4101 Bergenline Avenue",
|
266
|
+
"crossStreet": "at 41st St",
|
267
|
+
"lat": 40.776885,
|
268
|
+
"lng": -74.025538,
|
269
|
+
"postalCode": "07087",
|
270
|
+
"city": "Union City",
|
271
|
+
"state": "NJ",
|
272
|
+
"country": "United States",
|
273
|
+
"cc": "US"
|
274
|
+
},
|
275
|
+
"categories": [
|
276
|
+
{
|
277
|
+
"id": "4bf58dd8d48988d154941735",
|
278
|
+
"name": "Cuban Restaurant",
|
279
|
+
"pluralName": "Cuban Restaurants",
|
280
|
+
"shortName": "Cuban",
|
281
|
+
"icon": {
|
282
|
+
"prefix": "https://foursquare.com/img/categories_v2/food/default_",
|
283
|
+
"suffix": ".png"
|
284
|
+
},
|
285
|
+
"primary": true
|
286
|
+
}
|
287
|
+
],
|
288
|
+
"verified": true,
|
289
|
+
"stats": {
|
290
|
+
"checkinsCount": 577,
|
291
|
+
"usersCount": 291,
|
292
|
+
"tipCount": 11
|
293
|
+
},
|
294
|
+
"url": "http://www.elartesanorestaurant.com",
|
295
|
+
"likes": {
|
296
|
+
"count": 1,
|
297
|
+
"groups": [
|
298
|
+
{
|
299
|
+
"type": "others",
|
300
|
+
"count": 1,
|
301
|
+
"items": [
|
302
|
+
{
|
303
|
+
"id": "134486",
|
304
|
+
"firstName": "Manny",
|
305
|
+
"lastName": "B.",
|
306
|
+
"photo": {
|
307
|
+
"prefix": "https://irs3.4sqi.net/img/user/",
|
308
|
+
"suffix": "/NOHIGIZALTCB3P0A.jpg"
|
309
|
+
}
|
310
|
+
}
|
311
|
+
]
|
312
|
+
}
|
313
|
+
],
|
314
|
+
"summary": "Manny B"
|
315
|
+
},
|
316
|
+
"like": false,
|
317
|
+
"beenHere": {
|
318
|
+
"count": 1,
|
319
|
+
"marked": false
|
320
|
+
},
|
321
|
+
"specials": {
|
322
|
+
"count": 0
|
323
|
+
},
|
324
|
+
"venuePage": {
|
325
|
+
"id": "34884719"
|
326
|
+
}
|
327
|
+
},
|
328
|
+
"likes": {
|
329
|
+
"count": 0,
|
330
|
+
"groups": []
|
331
|
+
},
|
332
|
+
"like": false,
|
333
|
+
"photos": {
|
334
|
+
"count": 0,
|
335
|
+
"items": []
|
336
|
+
},
|
337
|
+
"comments": {
|
338
|
+
"count": 0,
|
339
|
+
"items": []
|
340
|
+
},
|
341
|
+
"source": {
|
342
|
+
"name": "tracker test app 2",
|
343
|
+
"url": "http://localhost:3000"
|
344
|
+
}
|
345
|
+
},
|
346
|
+
{
|
347
|
+
"id": "50b135e8e4b03c6b1e77d8cc",
|
348
|
+
"createdAt": 1353790952,
|
349
|
+
"type": "checkin",
|
350
|
+
"timeZoneOffset": -300,
|
351
|
+
"venue": {
|
352
|
+
"id": "507c98dee4b0d8cafbfedc16",
|
353
|
+
"name": "Rumba Cubana",
|
354
|
+
"contact": {},
|
355
|
+
"location": {
|
356
|
+
"address": "1807 46th St",
|
357
|
+
"lat": 40.784111746622834,
|
358
|
+
"lng": -74.03363559548751,
|
359
|
+
"postalCode": "07047",
|
360
|
+
"city": "North Bergen",
|
361
|
+
"state": "NJ",
|
362
|
+
"country": "United States",
|
363
|
+
"cc": "US"
|
364
|
+
},
|
365
|
+
"categories": [
|
366
|
+
{
|
367
|
+
"id": "4bf58dd8d48988d154941735",
|
368
|
+
"name": "Cuban Restaurant",
|
369
|
+
"pluralName": "Cuban Restaurants",
|
370
|
+
"shortName": "Cuban",
|
371
|
+
"icon": {
|
372
|
+
"prefix": "https://foursquare.com/img/categories_v2/food/default_",
|
373
|
+
"suffix": ".png"
|
374
|
+
},
|
375
|
+
"primary": true
|
376
|
+
}
|
377
|
+
],
|
378
|
+
"verified": false,
|
379
|
+
"stats": {
|
380
|
+
"checkinsCount": 95,
|
381
|
+
"usersCount": 76,
|
382
|
+
"tipCount": 1
|
383
|
+
},
|
384
|
+
"likes": {
|
385
|
+
"count": 2,
|
386
|
+
"groups": [
|
387
|
+
{
|
388
|
+
"type": "others",
|
389
|
+
"count": 2,
|
390
|
+
"items": [
|
391
|
+
{
|
392
|
+
"id": "22680835",
|
393
|
+
"firstName": "Tony",
|
394
|
+
"lastName": "M.",
|
395
|
+
"photo": {
|
396
|
+
"prefix": "https://irs0.4sqi.net/img/user/",
|
397
|
+
"suffix": "/UAANCBPH2K3OBPJ0.jpg"
|
398
|
+
}
|
399
|
+
},
|
400
|
+
{
|
401
|
+
"id": "22926974",
|
402
|
+
"firstName": "Laurentius",
|
403
|
+
"lastName": "T.",
|
404
|
+
"photo": {
|
405
|
+
"prefix": "https://irs1.4sqi.net/img/user/",
|
406
|
+
"suffix": "/NM4TPEIJQWXJB5KQ.jpg"
|
407
|
+
}
|
408
|
+
}
|
409
|
+
]
|
410
|
+
}
|
411
|
+
],
|
412
|
+
"summary": "Tony M & Laurentius T"
|
413
|
+
},
|
414
|
+
"like": false,
|
415
|
+
"beenHere": {
|
416
|
+
"count": 1,
|
417
|
+
"marked": false
|
418
|
+
},
|
419
|
+
"specials": {
|
420
|
+
"count": 0
|
421
|
+
}
|
422
|
+
},
|
423
|
+
"likes": {
|
424
|
+
"count": 0,
|
425
|
+
"groups": []
|
426
|
+
},
|
427
|
+
"like": false,
|
428
|
+
"photos": {
|
429
|
+
"count": 0,
|
430
|
+
"items": []
|
431
|
+
},
|
432
|
+
"comments": {
|
433
|
+
"count": 0,
|
434
|
+
"items": []
|
435
|
+
},
|
436
|
+
"source": {
|
437
|
+
"name": "tracker test app 2",
|
438
|
+
"url": "http://localhost:3000"
|
439
|
+
}
|
440
|
+
},
|
441
|
+
{
|
442
|
+
"id": "50b13860e4b00627546a0607",
|
443
|
+
"createdAt": 1353791584,
|
444
|
+
"type": "checkin",
|
445
|
+
"timeZoneOffset": -300,
|
446
|
+
"venue": {
|
447
|
+
"id": "4cfd9a9120fe3704db9a60f8",
|
448
|
+
"name": "Havana Dulce",
|
449
|
+
"contact": {},
|
450
|
+
"location": {
|
451
|
+
"address": "5117 Tonnelle Ave",
|
452
|
+
"crossStreet": "51st street",
|
453
|
+
"lat": 40.78823519452522,
|
454
|
+
"lng": -74.03092741649088,
|
455
|
+
"city": "North Bergen",
|
456
|
+
"state": "NJ",
|
457
|
+
"country": "United States",
|
458
|
+
"cc": "US"
|
459
|
+
},
|
460
|
+
"categories": [
|
461
|
+
{
|
462
|
+
"id": "4bf58dd8d48988d154941735",
|
463
|
+
"name": "Cuban Restaurant",
|
464
|
+
"pluralName": "Cuban Restaurants",
|
465
|
+
"shortName": "Cuban",
|
466
|
+
"icon": {
|
467
|
+
"prefix": "https://foursquare.com/img/categories_v2/food/default_",
|
468
|
+
"suffix": ".png"
|
469
|
+
},
|
470
|
+
"primary": true
|
471
|
+
}
|
472
|
+
],
|
473
|
+
"verified": false,
|
474
|
+
"stats": {
|
475
|
+
"checkinsCount": 727,
|
476
|
+
"usersCount": 416,
|
477
|
+
"tipCount": 12
|
478
|
+
},
|
479
|
+
"likes": {
|
480
|
+
"count": 6,
|
481
|
+
"groups": [
|
482
|
+
{
|
483
|
+
"type": "others",
|
484
|
+
"count": 6,
|
485
|
+
"items": [
|
486
|
+
{
|
487
|
+
"id": "22680835",
|
488
|
+
"firstName": "Tony",
|
489
|
+
"lastName": "M.",
|
490
|
+
"photo": {
|
491
|
+
"prefix": "https://irs0.4sqi.net/img/user/",
|
492
|
+
"suffix": "/UAANCBPH2K3OBPJ0.jpg"
|
493
|
+
}
|
494
|
+
},
|
495
|
+
{
|
496
|
+
"id": "31911292",
|
497
|
+
"firstName": "Nini",
|
498
|
+
"photo": {
|
499
|
+
"prefix": "https://irs1.4sqi.net/img/user/",
|
500
|
+
"suffix": "/CMOISMGOSKQNHTUD.jpg"
|
501
|
+
}
|
502
|
+
},
|
503
|
+
{
|
504
|
+
"id": "34998282",
|
505
|
+
"firstName": "Anne",
|
506
|
+
"lastName": "M.",
|
507
|
+
"photo": {
|
508
|
+
"prefix": "https://irs2.4sqi.net/img/user/",
|
509
|
+
"suffix": "/blank_girl.png"
|
510
|
+
}
|
511
|
+
},
|
512
|
+
{
|
513
|
+
"id": "12938301",
|
514
|
+
"firstName": "💫Jennifier💫",
|
515
|
+
"lastName": "👄.",
|
516
|
+
"photo": {
|
517
|
+
"prefix": "https://irs3.4sqi.net/img/user/",
|
518
|
+
"suffix": "/BN1RZLGB3TYNXV3U.jpg"
|
519
|
+
}
|
520
|
+
}
|
521
|
+
]
|
522
|
+
}
|
523
|
+
],
|
524
|
+
"summary": "Tony M, Nini, Anne M & 3 others"
|
525
|
+
},
|
526
|
+
"like": false,
|
527
|
+
"beenHere": {
|
528
|
+
"count": 1,
|
529
|
+
"marked": false
|
530
|
+
},
|
531
|
+
"specials": {
|
532
|
+
"count": 0
|
533
|
+
}
|
534
|
+
},
|
535
|
+
"likes": {
|
536
|
+
"count": 0,
|
537
|
+
"groups": []
|
538
|
+
},
|
539
|
+
"like": false,
|
540
|
+
"photos": {
|
541
|
+
"count": 0,
|
542
|
+
"items": []
|
543
|
+
},
|
544
|
+
"comments": {
|
545
|
+
"count": 0,
|
546
|
+
"items": []
|
547
|
+
},
|
548
|
+
"source": {
|
549
|
+
"name": "tracker test app 2",
|
550
|
+
"url": "http://localhost:3000"
|
551
|
+
}
|
552
|
+
}
|
553
|
+
]
|
554
|
+
}
|
555
|
+
}
|
556
|
+
}
|