untappd 4.0.2 → 4.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +2 -1
- data/Gemfile.lock +3 -3
- data/README.md +1 -0
- data/lib/untappd/checkin.rb +1 -1
- data/lib/untappd/config.rb +2 -2
- data/lib/untappd/version.rb +1 -1
- data/spec/beer_spec.rb +2 -2
- data/spec/brewery_spec.rb +7 -7
- data/spec/checkin_spec.rb +6 -4
- data/spec/user_spec.rb +7 -7
- data/spec/vcr/Beer/get_feed.yml +230 -206
- data/spec/vcr/Beer/get_info.yml +237 -153
- data/spec/vcr/Beer/get_search.yml +359 -271
- data/spec/vcr/Beer/get_trending_beers.yml +92 -75
- data/spec/vcr/Brewery/get_feed.yml +208 -186
- data/spec/vcr/Brewery/get_info.yml +326 -283
- data/spec/vcr/Brewery/get_search.yml +22 -18
- data/spec/vcr/Checkin/get/gets_info.yml +22 -16
- data/spec/vcr/Checkin/get/gets_thepub_feed.yml +212 -207
- data/spec/vcr/Checkin/get/gets_thepub_local_feed.yml +307 -206
- data/spec/vcr/Checkin/post/add_comment.yml +18 -12
- data/spec/vcr/Checkin/post/adds_toast.yml +17 -11
- data/spec/vcr/Checkin/post/creates_checkin.yml +28 -16
- data/spec/vcr/Checkin/post/removes_comment.yml +70 -12
- data/spec/vcr/Checkin/post/removes_toast.yml +16 -10
- data/spec/vcr/User/get_badges.yml +65 -11
- data/spec/vcr/User/get_distinct_beers.yml +212 -33
- data/spec/vcr/User/get_feed.yml +217 -39
- data/spec/vcr/User/get_friend_feed.yml +321 -427
- data/spec/vcr/User/get_friends.yml +18 -11
- data/spec/vcr/User/get_info.yml +280 -74
- data/spec/vcr/User/get_wish_list.yml +25 -15
- data/spec/vcr/Venue/gets_foursquare_lookup.yml +26 -24
- data/spec/vcr/Venue/gets_info.yml +151 -36
- data/spec/vcr/Venue/gets_the_feed.yml +127 -34
- data/spec/venue_spec.rb +2 -2
- metadata +5 -23
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://api.untappd.com/v4/checkin/addcomment/17831896?access_token=<UNTAPPD_ACCESS_TOKEN>
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: comment=test%20comment
|
@@ -13,35 +13,41 @@ http_interactions:
|
|
13
13
|
message: OK
|
14
14
|
headers:
|
15
15
|
date:
|
16
|
-
- Fri,
|
16
|
+
- Fri, 19 Sep 2014 03:53:17 GMT
|
17
17
|
server:
|
18
|
-
- Apache
|
19
|
-
set-cookie:
|
20
|
-
- BALANCEID=balancer.as1; path=/; domain=.untappd.com
|
18
|
+
- Apache/2.2.22 (Ubuntu)
|
21
19
|
x-powered-by:
|
22
|
-
- PHP/5.
|
20
|
+
- PHP/5.4.6-1ubuntu1.4
|
23
21
|
x-ratelimit-limit:
|
24
22
|
- '100'
|
25
23
|
x-ratelimit-remaining:
|
26
24
|
- '95'
|
27
25
|
x-auth-type:
|
28
26
|
- user
|
27
|
+
x-api-version:
|
28
|
+
- '4'
|
29
|
+
x-http-protocol:
|
30
|
+
- '443'
|
31
|
+
vary:
|
32
|
+
- Accept-Encoding
|
29
33
|
cache-control:
|
30
34
|
- no-cache
|
31
35
|
access-control-allow-origin:
|
32
36
|
- ! '*'
|
37
|
+
access-control-allow-headers:
|
38
|
+
- X-Untappd-App
|
33
39
|
content-length:
|
34
|
-
- '
|
40
|
+
- '2200'
|
35
41
|
connection:
|
36
42
|
- close
|
37
43
|
content-type:
|
38
44
|
- application/json
|
39
45
|
body:
|
40
46
|
encoding: US-ASCII
|
41
|
-
string: ! '{"meta":{"code":200,"response_time":{"time":0.
|
42
|
-
comment","created_at":"Fri, 14 Dec 2012 01:
|
43
|
-
comment","created_at":"Fri, 14 Dec 2012 01:
|
44
|
-
comment","created_at":"Fri,
|
47
|
+
string: ! '{"meta":{"code":200,"response_time":{"time":0.116,"measure":"seconds"},"init_time":{"time":0.018,"measure":"seconds"}},"notifications":{"type":"notifications","unread_count":{"comments":0,"toasts":0,"friends":0,"messages":0,"news":0}},"response":{"result":"success","comments":{"total_count":3,"count":3,"items":[{"user":{"uid":25539,"user_name":"darbyfrey","first_name":"darby","last_name":"frey","bio":"","location":"chicago","relationship":"self","is_supporter":0,"user_avatar":"https:\/\/gravatar.com\/avatar\/86c338232f03869122eb323bf3aafbf4?size=100&d=https%3A%2F%2Fd1c8v1qci5en44.cloudfront.net%2Fsite%2Fassets%2Fimages%2Fdefault_avatar_v2.jpg%3Fv%3D1","user_link":"https:\/\/untappd.com\/user\/darbyfrey","account_type":"user","brewery_details":[]},"checkin_id":17831896,"comment_id":1326097,"comment_owner":true,"comment_editor":true,"comment":"test
|
48
|
+
comment","created_at":"Fri, 14 Dec 2012 01:10:44 +0000","comment_source":"mobile"},{"user":{"uid":25539,"user_name":"darbyfrey","first_name":"darby","last_name":"frey","bio":"","location":"chicago","relationship":"self","is_supporter":0,"user_avatar":"https:\/\/gravatar.com\/avatar\/86c338232f03869122eb323bf3aafbf4?size=100&d=https%3A%2F%2Fd1c8v1qci5en44.cloudfront.net%2Fsite%2Fassets%2Fimages%2Fdefault_avatar_v2.jpg%3Fv%3D1","user_link":"https:\/\/untappd.com\/user\/darbyfrey","account_type":"user","brewery_details":[]},"checkin_id":17831896,"comment_id":1326119,"comment_owner":true,"comment_editor":true,"comment":"test
|
49
|
+
comment","created_at":"Fri, 14 Dec 2012 01:13:01 +0000","comment_source":"mobile"},{"user":{"uid":25539,"user_name":"darbyfrey","first_name":"darby","last_name":"frey","bio":"","location":"chicago","relationship":"self","is_supporter":0,"user_avatar":"https:\/\/gravatar.com\/avatar\/86c338232f03869122eb323bf3aafbf4?size=100&d=https%3A%2F%2Fd1c8v1qci5en44.cloudfront.net%2Fsite%2Fassets%2Fimages%2Fdefault_avatar_v2.jpg%3Fv%3D1","user_link":"https:\/\/untappd.com\/user\/darbyfrey","account_type":"user","brewery_details":[]},"checkin_id":17831896,"comment_id":9635683,"comment_owner":true,"comment_editor":true,"comment":"test
|
50
|
+
comment","created_at":"Fri, 19 Sep 2014 03:53:17 +0000","comment_source":"API"}]}}}'
|
45
51
|
http_version: '1.1'
|
46
|
-
recorded_at: Fri,
|
52
|
+
recorded_at: Fri, 19 Sep 2014 03:53:23 GMT
|
47
53
|
recorded_with: VCR 2.3.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://api.untappd.com/v4/checkin/toast/17831896?access_token=<UNTAPPD_ACCESS_TOKEN>
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -13,33 +13,39 @@ http_interactions:
|
|
13
13
|
message: OK
|
14
14
|
headers:
|
15
15
|
date:
|
16
|
-
- Fri,
|
16
|
+
- Fri, 19 Sep 2014 03:52:50 GMT
|
17
17
|
server:
|
18
|
-
- Apache
|
19
|
-
set-cookie:
|
20
|
-
- BALANCEID=balancer.as0; path=/; domain=.untappd.com
|
18
|
+
- Apache/2.2.22 (Ubuntu)
|
21
19
|
x-powered-by:
|
22
|
-
- PHP/5.
|
20
|
+
- PHP/5.4.6-1ubuntu1.4
|
23
21
|
x-ratelimit-limit:
|
24
22
|
- '100'
|
25
23
|
x-ratelimit-remaining:
|
26
|
-
- '
|
24
|
+
- '98'
|
27
25
|
x-auth-type:
|
28
26
|
- user
|
27
|
+
x-api-version:
|
28
|
+
- '4'
|
29
|
+
x-http-protocol:
|
30
|
+
- '443'
|
31
|
+
vary:
|
32
|
+
- Accept-Encoding
|
29
33
|
cache-control:
|
30
34
|
- no-cache
|
31
35
|
access-control-allow-origin:
|
32
36
|
- ! '*'
|
37
|
+
access-control-allow-headers:
|
38
|
+
- X-Untappd-App
|
33
39
|
content-length:
|
34
|
-
- '
|
40
|
+
- '853'
|
35
41
|
connection:
|
36
42
|
- close
|
37
43
|
content-type:
|
38
44
|
- application/json
|
39
45
|
body:
|
40
46
|
encoding: US-ASCII
|
41
|
-
string: ! '{"meta":{"code":200,"response_time":{"time":0.034,"measure":"seconds"}},"notifications":{"type":"notifications","unread_count":{"comments":0,"toasts":0,"friends":0,"messages":0,"news":0}},"response":{"result":"success","like_type":"toast","toasts":{"count":1,"auth_toast":true,"items":[{"user":{"uid":25539,"user_name":"darbyfrey","first_name":"darby","last_name":"frey","user_avatar":"https:\/\/gravatar.com\/avatar\/86c338232f03869122eb323bf3aafbf4?size=100&d=https%3A%2F%
|
42
|
-
|
47
|
+
string: ! '{"meta":{"code":200,"response_time":{"time":0.034,"measure":"seconds"},"init_time":{"time":0.02,"measure":"seconds"}},"notifications":{"type":"notifications","unread_count":{"comments":0,"toasts":0,"friends":0,"messages":0,"news":0}},"response":{"result":"success","like_type":"toast","toasts":{"total_count":1,"count":1,"auth_toast":true,"items":[{"uid":25539,"user":{"uid":25539,"user_name":"darbyfrey","first_name":"darby","last_name":"frey","bio":"","location":"chicago","user_avatar":"https:\/\/gravatar.com\/avatar\/86c338232f03869122eb323bf3aafbf4?size=100&d=https%3A%2F%2Fd1c8v1qci5en44.cloudfront.net%2Fsite%2Fassets%2Fimages%2Fdefault_avatar_v2.jpg%3Fv%3D1","user_link":"https:\/\/untappd.com\/user\/darbyfrey","account_type":"user","brewery_details":[]},"like_id":54967740,"like_owner":true,"created_at":"Fri,
|
48
|
+
19 Sep 2014 03:52:50 +0000"}]}}}'
|
43
49
|
http_version: '1.1'
|
44
|
-
recorded_at: Fri,
|
50
|
+
recorded_at: Fri, 19 Sep 2014 03:53:07 GMT
|
45
51
|
recorded_with: VCR 2.3.0
|
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://api.untappd.com/v4/checkin/add?access_token=<UNTAPPD_ACCESS_TOKEN>
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string:
|
8
|
+
string: timezone=CST&gmt_offset=-6&bid=10891
|
9
9
|
headers: {}
|
10
10
|
response:
|
11
11
|
status:
|
@@ -13,41 +13,53 @@ http_interactions:
|
|
13
13
|
message: OK
|
14
14
|
headers:
|
15
15
|
date:
|
16
|
-
-
|
16
|
+
- Fri, 19 Sep 2014 04:16:19 GMT
|
17
17
|
server:
|
18
|
-
- Apache
|
19
|
-
set-cookie:
|
20
|
-
- BALANCEID=balancer.as0; path=/; domain=.untappd.com
|
18
|
+
- Apache/2.2.22 (Ubuntu)
|
21
19
|
x-powered-by:
|
22
|
-
- PHP/5.
|
20
|
+
- PHP/5.4.6-1ubuntu1.4
|
23
21
|
x-ratelimit-limit:
|
24
22
|
- '100'
|
25
23
|
x-ratelimit-remaining:
|
26
|
-
- '
|
24
|
+
- '81'
|
27
25
|
x-auth-type:
|
28
26
|
- user
|
27
|
+
x-api-version:
|
28
|
+
- '4'
|
29
|
+
x-http-protocol:
|
30
|
+
- '443'
|
31
|
+
vary:
|
32
|
+
- Accept-Encoding
|
29
33
|
cache-control:
|
30
34
|
- no-cache
|
31
35
|
access-control-allow-origin:
|
32
36
|
- ! '*'
|
37
|
+
access-control-allow-headers:
|
38
|
+
- X-Untappd-App
|
33
39
|
content-length:
|
34
|
-
- '
|
40
|
+
- '3048'
|
35
41
|
connection:
|
36
42
|
- close
|
37
43
|
content-type:
|
38
44
|
- application/json
|
39
45
|
body:
|
40
46
|
encoding: US-ASCII
|
41
|
-
string: ! '{"meta":{"code":200,"response_time":{"time":0.
|
42
|
-
|
47
|
+
string: ! '{"meta":{"code":200,"response_time":{"time":0.487,"measure":"seconds"},"init_time":{"time":0.021,"measure":"seconds"}},"notifications":{"type":"notifications","unread_count":{"comments":0,"toasts":0,"friends":0,"messages":0,"news":0}},"response":{"result":"success","badge_valid":true,"checkin_id":115708302,"created_at":"Fri,
|
48
|
+
19 Sep 2014 04:16:19 +0000","checkin_comment":"","stats":{"beer":"2nd","beer_month":"1st"},"rating":[],"user":{"uid":25539,"user_name":"darbyfrey","first_name":"darby","last_name":"frey","location":"chicago","url":"","bio":"","user_avatar":"https:\/\/gravatar.com\/avatar\/86c338232f03869122eb323bf3aafbf4?size=100&d=https%3A%2F%2Fd1c8v1qci5en44.cloudfront.net%2Fsite%2Fassets%2Fimages%2Fdefault_avatar_v2.jpg%3Fv%3D1","account_type":"user","is_private":0,"contact":{"twitter":"darbyfrey"},"email_prefs":{"is_friend_request":1,"is_toast":0,"is_comment":1}},"beer":{"bid":10891,"beer_name":"Tank
|
49
|
+
7 Farmhouse Ale","beer_label":"https:\/\/d1c8v1qci5en44.cloudfront.net\/site\/beer_logos\/beer-_10891_sm_aef080415fc974e16507ad5f8f808e.jpeg","beer_abv":8.5,"beer_ibu":38,"beer_slug":"boulevard-brewing-co-tank-7-farmhouse-ale","beer_description":"A
|
43
50
|
traditional Belgian-style farmhouse ale, the perfect combination of elements
|
44
51
|
came together in their #7 fermenter. You could call it fate, but they called
|
45
52
|
it Tank 7, and so it is. Beginning with a big surge of fruity aromatics and
|
46
53
|
grapefruit-hoppy notes, the flavor of this complex, straw-colored ale tapers
|
47
|
-
off to a peppery, dry finish.","beer_style_id":42,"beer_style":"Saison
|
48
|
-
Farmhouse Ale","auth_rating":0},"brewery":{"brewery_id":1514,"brewery_name":"Boulevard
|
49
|
-
Brewing Co.","brewery_label":"https:\/\/
|
50
|
-
States"
|
54
|
+
off to a peppery, dry finish.","is_in_production":1,"beer_style_id":42,"beer_style":"Saison
|
55
|
+
\/ Farmhouse Ale","auth_rating":0,"wish_list":false,"beer_active":1},"brewery":{"brewery_id":1514,"brewery_name":"Boulevard
|
56
|
+
Brewing Co.","brewery_label":"https:\/\/d1c8v1qci5en44.cloudfront.net\/site\/brewery_logos\/brewery-boulevard.jpg","country_name":"United
|
57
|
+
States","contact":{"twitter":"Boulevard_Beer","facebook":"http:\/\/www.facebook.com\/Boulevard","url":"http:\/\/www.boulevard.com\/"},"location":{"brewery_city":"Kansas
|
58
|
+
City","brewery_state":"MO","lat":39.0821,"lng":-94.5965},"brewery_active":1},"venue":[],"recommendations":[],"distance":0,"media":{"is_photo":false,"photo_data":false},"media_allowed":false,"social_settings":{"facebook":"off","twitter":"off","foursquare":"off"},"source":{"app_name":"WhatsThatTap","app_website":"http:\/\/WhatsThatTap.com"},"follow_status":{"is_follow":true,"status":false,"hash":"c88de65f3d84ebf1d7b089253fa20e16","uid":112981},"promotions":{"count":0,"items":[]},"badges":{"count":1,"items":[{"badge_id":"538","badge_name":"Land
|
59
|
+
of the Free (Level 2)","badge_description":"You\u2019ve pledged allegiance,
|
60
|
+
and now it\u2019s time to enjoy some beer! Now remember, not all American
|
61
|
+
beer is fizzy and yellow. That\u2019s 10 different beers from a brewery in
|
62
|
+
the United States. Try 5 more for Level 3.","badge_image":{"sm":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_america_sm.jpg","md":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_america_md.jpg","lg":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_america_lg.jpg"}}]}}}'
|
51
63
|
http_version: '1.1'
|
52
|
-
recorded_at:
|
64
|
+
recorded_at: Fri, 19 Sep 2014 04:16:26 GMT
|
53
65
|
recorded_with: VCR 2.3.0
|
@@ -2,7 +2,58 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://api.untappd.com/v4/checkin/addcomment/17831896?access_token=<UNTAPPD_ACCESS_TOKEN>
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: comment=test%20comment
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
date:
|
16
|
+
- Fri, 19 Sep 2014 04:00:04 GMT
|
17
|
+
server:
|
18
|
+
- Apache/2.2.22 (Ubuntu)
|
19
|
+
x-powered-by:
|
20
|
+
- PHP/5.4.6-1ubuntu1.4
|
21
|
+
x-ratelimit-limit:
|
22
|
+
- '100'
|
23
|
+
x-ratelimit-remaining:
|
24
|
+
- '90'
|
25
|
+
x-auth-type:
|
26
|
+
- user
|
27
|
+
x-api-version:
|
28
|
+
- '4'
|
29
|
+
x-http-protocol:
|
30
|
+
- '443'
|
31
|
+
vary:
|
32
|
+
- Accept-Encoding
|
33
|
+
cache-control:
|
34
|
+
- no-cache
|
35
|
+
access-control-allow-origin:
|
36
|
+
- ! '*'
|
37
|
+
access-control-allow-headers:
|
38
|
+
- X-Untappd-App
|
39
|
+
content-length:
|
40
|
+
- '2823'
|
41
|
+
connection:
|
42
|
+
- close
|
43
|
+
content-type:
|
44
|
+
- application/json
|
45
|
+
body:
|
46
|
+
encoding: US-ASCII
|
47
|
+
string: ! '{"meta":{"code":200,"response_time":{"time":0.165,"measure":"seconds"},"init_time":{"time":0.034,"measure":"seconds"}},"notifications":{"type":"notifications","unread_count":{"comments":0,"toasts":0,"friends":0,"messages":0,"news":0}},"response":{"result":"success","comments":{"total_count":4,"count":4,"items":[{"user":{"uid":25539,"user_name":"darbyfrey","first_name":"darby","last_name":"frey","bio":"","location":"chicago","relationship":"self","is_supporter":0,"user_avatar":"https:\/\/gravatar.com\/avatar\/86c338232f03869122eb323bf3aafbf4?size=100&d=https%3A%2F%2Fd1c8v1qci5en44.cloudfront.net%2Fsite%2Fassets%2Fimages%2Fdefault_avatar_v2.jpg%3Fv%3D1","user_link":"https:\/\/untappd.com\/user\/darbyfrey","account_type":"user","brewery_details":[]},"checkin_id":17831896,"comment_id":1326119,"comment_owner":true,"comment_editor":true,"comment":"test
|
48
|
+
comment","created_at":"Fri, 14 Dec 2012 01:13:01 +0000","comment_source":"mobile"},{"user":{"uid":25539,"user_name":"darbyfrey","first_name":"darby","last_name":"frey","bio":"","location":"chicago","relationship":"self","is_supporter":0,"user_avatar":"https:\/\/gravatar.com\/avatar\/86c338232f03869122eb323bf3aafbf4?size=100&d=https%3A%2F%2Fd1c8v1qci5en44.cloudfront.net%2Fsite%2Fassets%2Fimages%2Fdefault_avatar_v2.jpg%3Fv%3D1","user_link":"https:\/\/untappd.com\/user\/darbyfrey","account_type":"user","brewery_details":[]},"checkin_id":17831896,"comment_id":9635683,"comment_owner":true,"comment_editor":true,"comment":"test
|
49
|
+
comment","created_at":"Fri, 19 Sep 2014 03:53:17 +0000","comment_source":"API"},{"user":{"uid":25539,"user_name":"darbyfrey","first_name":"darby","last_name":"frey","bio":"","location":"chicago","relationship":"self","is_supporter":0,"user_avatar":"https:\/\/gravatar.com\/avatar\/86c338232f03869122eb323bf3aafbf4?size=100&d=https%3A%2F%2Fd1c8v1qci5en44.cloudfront.net%2Fsite%2Fassets%2Fimages%2Fdefault_avatar_v2.jpg%3Fv%3D1","user_link":"https:\/\/untappd.com\/user\/darbyfrey","account_type":"user","brewery_details":[]},"checkin_id":17831896,"comment_id":9635758,"comment_owner":true,"comment_editor":true,"comment":"test
|
50
|
+
comment","created_at":"Fri, 19 Sep 2014 03:57:46 +0000","comment_source":"API"},{"user":{"uid":25539,"user_name":"darbyfrey","first_name":"darby","last_name":"frey","bio":"","location":"chicago","relationship":"self","is_supporter":0,"user_avatar":"https:\/\/gravatar.com\/avatar\/86c338232f03869122eb323bf3aafbf4?size=100&d=https%3A%2F%2Fd1c8v1qci5en44.cloudfront.net%2Fsite%2Fassets%2Fimages%2Fdefault_avatar_v2.jpg%3Fv%3D1","user_link":"https:\/\/untappd.com\/user\/darbyfrey","account_type":"user","brewery_details":[]},"checkin_id":17831896,"comment_id":9635809,"comment_owner":true,"comment_editor":true,"comment":"test
|
51
|
+
comment","created_at":"Fri, 19 Sep 2014 04:00:04 +0000","comment_source":"API"}]}}}'
|
52
|
+
http_version: '1.1'
|
53
|
+
recorded_at: Fri, 19 Sep 2014 04:00:11 GMT
|
54
|
+
- request:
|
55
|
+
method: post
|
56
|
+
uri: https://api.untappd.com/v4/checkin/deletecomment/1326119?access_token=<UNTAPPD_ACCESS_TOKEN>
|
6
57
|
body:
|
7
58
|
encoding: US-ASCII
|
8
59
|
string: ''
|
@@ -13,34 +64,41 @@ http_interactions:
|
|
13
64
|
message: OK
|
14
65
|
headers:
|
15
66
|
date:
|
16
|
-
- Fri,
|
67
|
+
- Fri, 19 Sep 2014 04:00:03 GMT
|
17
68
|
server:
|
18
|
-
- Apache
|
19
|
-
set-cookie:
|
20
|
-
- BALANCEID=balancer.as1; path=/; domain=.untappd.com
|
69
|
+
- Apache/2.2.22 (Ubuntu)
|
21
70
|
x-powered-by:
|
22
|
-
- PHP/5.
|
71
|
+
- PHP/5.4.6-1ubuntu1.4
|
23
72
|
x-ratelimit-limit:
|
24
73
|
- '100'
|
25
74
|
x-ratelimit-remaining:
|
26
|
-
- '
|
75
|
+
- '89'
|
27
76
|
x-auth-type:
|
28
77
|
- user
|
78
|
+
x-api-version:
|
79
|
+
- '4'
|
80
|
+
x-http-protocol:
|
81
|
+
- '443'
|
82
|
+
vary:
|
83
|
+
- Accept-Encoding
|
29
84
|
cache-control:
|
30
85
|
- no-cache
|
31
86
|
access-control-allow-origin:
|
32
87
|
- ! '*'
|
88
|
+
access-control-allow-headers:
|
89
|
+
- X-Untappd-App
|
33
90
|
content-length:
|
34
|
-
- '
|
91
|
+
- '2197'
|
35
92
|
connection:
|
36
93
|
- close
|
37
94
|
content-type:
|
38
95
|
- application/json
|
39
96
|
body:
|
40
97
|
encoding: US-ASCII
|
41
|
-
string: ! '{"meta":{"code":200,"response_time":{"time":0.
|
42
|
-
comment","created_at":"Fri, 14 Dec 2012 01:
|
43
|
-
comment","created_at":"Fri,
|
98
|
+
string: ! '{"meta":{"code":200,"response_time":{"time":0.042,"measure":"seconds"},"init_time":{"time":0.027,"measure":"seconds"}},"notifications":{"type":"notifications","unread_count":{"comments":0,"toasts":0,"friends":0,"messages":0,"news":0}},"response":{"result":"success","comments":{"total_count":3,"count":3,"items":[{"user":{"uid":25539,"user_name":"darbyfrey","first_name":"darby","last_name":"frey","bio":"","location":"chicago","relationship":"self","is_supporter":0,"user_avatar":"https:\/\/gravatar.com\/avatar\/86c338232f03869122eb323bf3aafbf4?size=100&d=https%3A%2F%2Fd1c8v1qci5en44.cloudfront.net%2Fsite%2Fassets%2Fimages%2Fdefault_avatar_v2.jpg%3Fv%3D1","user_link":"https:\/\/untappd.com\/user\/darbyfrey","account_type":"user","brewery_details":[]},"checkin_id":17831896,"comment_id":1326119,"comment_owner":true,"comment_editor":true,"comment":"test
|
99
|
+
comment","created_at":"Fri, 14 Dec 2012 01:13:01 +0000","comment_source":"mobile"},{"user":{"uid":25539,"user_name":"darbyfrey","first_name":"darby","last_name":"frey","bio":"","location":"chicago","relationship":"self","is_supporter":0,"user_avatar":"https:\/\/gravatar.com\/avatar\/86c338232f03869122eb323bf3aafbf4?size=100&d=https%3A%2F%2Fd1c8v1qci5en44.cloudfront.net%2Fsite%2Fassets%2Fimages%2Fdefault_avatar_v2.jpg%3Fv%3D1","user_link":"https:\/\/untappd.com\/user\/darbyfrey","account_type":"user","brewery_details":[]},"checkin_id":17831896,"comment_id":9635683,"comment_owner":true,"comment_editor":true,"comment":"test
|
100
|
+
comment","created_at":"Fri, 19 Sep 2014 03:53:17 +0000","comment_source":"API"},{"user":{"uid":25539,"user_name":"darbyfrey","first_name":"darby","last_name":"frey","bio":"","location":"chicago","relationship":"self","is_supporter":0,"user_avatar":"https:\/\/gravatar.com\/avatar\/86c338232f03869122eb323bf3aafbf4?size=100&d=https%3A%2F%2Fd1c8v1qci5en44.cloudfront.net%2Fsite%2Fassets%2Fimages%2Fdefault_avatar_v2.jpg%3Fv%3D1","user_link":"https:\/\/untappd.com\/user\/darbyfrey","account_type":"user","brewery_details":[]},"checkin_id":17831896,"comment_id":9635758,"comment_owner":true,"comment_editor":true,"comment":"test
|
101
|
+
comment","created_at":"Fri, 19 Sep 2014 03:57:46 +0000","comment_source":"API"}]}}}'
|
44
102
|
http_version: '1.1'
|
45
|
-
recorded_at: Fri,
|
103
|
+
recorded_at: Fri, 19 Sep 2014 04:00:12 GMT
|
46
104
|
recorded_with: VCR 2.3.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: https://api.untappd.com/v4/checkin/toast/17831896?access_token=<UNTAPPD_ACCESS_TOKEN>
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -13,32 +13,38 @@ http_interactions:
|
|
13
13
|
message: OK
|
14
14
|
headers:
|
15
15
|
date:
|
16
|
-
- Fri,
|
16
|
+
- Fri, 19 Sep 2014 03:52:59 GMT
|
17
17
|
server:
|
18
|
-
- Apache
|
19
|
-
set-cookie:
|
20
|
-
- BALANCEID=balancer.as2; path=/; domain=.untappd.com
|
18
|
+
- Apache/2.2.22 (Ubuntu)
|
21
19
|
x-powered-by:
|
22
|
-
- PHP/5.
|
20
|
+
- PHP/5.4.6-1ubuntu1.4
|
23
21
|
x-ratelimit-limit:
|
24
22
|
- '100'
|
25
23
|
x-ratelimit-remaining:
|
26
|
-
- '
|
24
|
+
- '97'
|
27
25
|
x-auth-type:
|
28
26
|
- user
|
27
|
+
x-api-version:
|
28
|
+
- '4'
|
29
|
+
x-http-protocol:
|
30
|
+
- '443'
|
31
|
+
vary:
|
32
|
+
- Accept-Encoding
|
29
33
|
cache-control:
|
30
34
|
- no-cache
|
31
35
|
access-control-allow-origin:
|
32
36
|
- ! '*'
|
37
|
+
access-control-allow-headers:
|
38
|
+
- X-Untappd-App
|
33
39
|
content-length:
|
34
|
-
- '
|
40
|
+
- '356'
|
35
41
|
connection:
|
36
42
|
- close
|
37
43
|
content-type:
|
38
44
|
- application/json
|
39
45
|
body:
|
40
46
|
encoding: US-ASCII
|
41
|
-
string: ! '{"meta":{"code":200,"response_time":{"time":0.
|
47
|
+
string: ! '{"meta":{"code":200,"response_time":{"time":0.034,"measure":"seconds"},"init_time":{"time":0.018,"measure":"seconds"}},"notifications":{"type":"notifications","unread_count":{"comments":0,"toasts":0,"friends":0,"messages":0,"news":0}},"response":{"result":"success","like_type":"un-toast","toasts":{"total_count":0,"count":0,"auth_toast":true,"items":[]}}}'
|
42
48
|
http_version: '1.1'
|
43
|
-
recorded_at: Fri,
|
49
|
+
recorded_at: Fri, 19 Sep 2014 03:53:07 GMT
|
44
50
|
recorded_with: VCR 2.3.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri:
|
5
|
+
uri: https://api.untappd.com/v4/user/badges/cmar?client_id=<UNTAPPD_CLIENT_ID>&client_secret=<UNTAPPD_CLIENT_SECRET>
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -13,33 +13,87 @@ http_interactions:
|
|
13
13
|
message: OK
|
14
14
|
headers:
|
15
15
|
date:
|
16
|
-
-
|
16
|
+
- Fri, 19 Sep 2014 03:53:16 GMT
|
17
17
|
server:
|
18
|
-
- Apache
|
19
|
-
set-cookie:
|
20
|
-
- BALANCEID=balancer.as0; path=/; domain=.untappd.com
|
18
|
+
- Apache/2.2.22 (Ubuntu)
|
21
19
|
x-powered-by:
|
22
|
-
- PHP/5.
|
20
|
+
- PHP/5.4.6-1ubuntu1.4
|
23
21
|
x-ratelimit-limit:
|
24
22
|
- '100'
|
25
23
|
x-ratelimit-remaining:
|
26
|
-
- '
|
24
|
+
- '65'
|
27
25
|
x-auth-type:
|
28
26
|
- key
|
27
|
+
x-api-version:
|
28
|
+
- '4'
|
29
|
+
x-http-protocol:
|
30
|
+
- '443'
|
31
|
+
vary:
|
32
|
+
- Accept-Encoding
|
29
33
|
access-control-allow-origin:
|
30
34
|
- ! '*'
|
35
|
+
access-control-allow-headers:
|
36
|
+
- X-Untappd-App
|
31
37
|
content-length:
|
32
|
-
- '
|
38
|
+
- '7855'
|
33
39
|
connection:
|
34
40
|
- close
|
35
41
|
content-type:
|
36
42
|
- application/json
|
37
43
|
body:
|
38
44
|
encoding: US-ASCII
|
39
|
-
string: ! '{"meta":{"code":200,"response_time":{"time":0.011,"measure":"seconds"}},"notifications":[],"response":{"type":"earned","sort":"all","count":
|
45
|
+
string: ! '{"meta":{"code":200,"response_time":{"time":0.03,"measure":"seconds"},"init_time":{"time":0.011,"measure":"seconds"}},"notifications":[],"response":{"type":"earned","sort":"all","count":10,"items":[{"badge_id":246,"user_badge_id":4640101,"checkin_id":31022120,"badge_name":"American
|
46
|
+
Craft Beer Week (2013)","badge_description":"With new breweries popping up
|
47
|
+
every day, there''s no doubt the craft beer movement is strong in the US.
|
48
|
+
Celebrate American Craft Beer Week and show your support!","badge_hint":"Check-in
|
49
|
+
to any American craft beer during May 13th - May 20th. The beer must be from
|
50
|
+
a brewery in the United States and listed as non-Macro brewery on Untappd.","badge_active_status":0,"media":{"badge_image_sm":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_acbw2013_sm.jpg","badge_image_md":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_acbw2013_md.jpg","badge_image_lg":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_acbw2013_lg.jpg"},"created_at":"Sun,
|
51
|
+
19 May 2013 18:47:22 +0000","is_level":false,"levels":[]},{"user_badge_id":4640098,"badge_id":60,"checkin_id":31022120,"badge_name":"I
|
52
|
+
Believe in IPA!","badge_description":"We believe in IPA and you should too.
|
53
|
+
You certainly have a taste for the hops! That''s 5 different IPAs. Try 5 more
|
54
|
+
for Level 2","badge_hint":"Try 5 different IPA style beers. This badge can
|
55
|
+
be leveled to 10. You can earn 1 level per 24 hours.","badge_active_status":1,"media":{"badge_image_sm":"https:\/\/d1c8v1qci5en44.cloudfront.net\/badges\/bdg_hoptopia_sm.jpg","badge_image_md":"https:\/\/d1c8v1qci5en44.cloudfront.net\/badges\/bdg_hoptopia_md.jpg","badge_image_lg":"https:\/\/d1c8v1qci5en44.cloudfront.net\/badges\/bdg_hoptopia_lg.jpg"},"created_at":"Sun,
|
56
|
+
19 May 2013 18:47:21 +0000","is_level":true,"levels":{"count":1,"items":[{"actual_badge_id":60,"badge_id":4640098,"checkin_id":31022120,"badge_name":"I
|
57
|
+
Believe in IPA!","badge_description":"We believe in IPA and you should too.
|
58
|
+
You certainly have a taste for the hops! That''s 5 different IPAs. Try 5 more
|
59
|
+
for Level 2","media":{"badge_image_sm":"https:\/\/d1c8v1qci5en44.cloudfront.net\/badges\/bdg_hoptopia_sm.jpg","badge_image_md":"https:\/\/d1c8v1qci5en44.cloudfront.net\/badges\/bdg_hoptopia_md.jpg","badge_image_lg":"https:\/\/d1c8v1qci5en44.cloudfront.net\/badges\/bdg_hoptopia_lg.jpg"},"created_at":"Sun,
|
60
|
+
19 May 2013 18:47:21 +0000"}]}},{"badge_id":221,"user_badge_id":4263979,"checkin_id":28756552,"badge_name":"Beer
|
61
|
+
Gathering","badge_description":"Beer is often better with friends. Besides,
|
62
|
+
drinking socially is what we''re all about! You''ve checked in with at least
|
63
|
+
10 other people within 5 hours.","badge_hint":"Check-in to a location with
|
64
|
+
at least 10 others within 5 hours.","badge_active_status":1,"media":{"badge_image_sm":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_beerGathering_sm.jpg","badge_image_md":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_beerGathering_md.jpg","badge_image_lg":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_beerGathering_lg.jpg"},"created_at":"Sat,
|
65
|
+
27 Apr 2013 17:47:32 +0000","is_level":false,"levels":[]},{"badge_id":230,"user_badge_id":3700174,"checkin_id":25067344,"badge_name":"St.
|
66
|
+
Patrick''s Day (2013)","badge_description":"Happy St. Patrick''s day! Here''s
|
67
|
+
hoping you''re enjoying some fine beers, especially the green kind. Cheers
|
68
|
+
from all of us at Untappd!","badge_hint":"Check in any beer on St. Patrick''s
|
69
|
+
Day on in your local time zone!","badge_active_status":0,"media":{"badge_image_sm":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_StPatirkcs2013_sm.jpg","badge_image_md":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_StPatirkcs2013_md.jpg","badge_image_lg":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_StPatirkcs2013_lg.jpg"},"created_at":"Sun,
|
70
|
+
17 Mar 2013 22:15:58 +0000","is_level":false,"levels":[]},{"badge_id":78,"user_badge_id":3601760,"checkin_id":24554137,"badge_name":"Playing
|
71
|
+
the Field","badge_description":"Does the word picking favorites mean anything
|
72
|
+
to you? Obviously not. That''s 10 different beers in a row.","badge_hint":"Be
|
73
|
+
spontaneous - try 10 different beers in a row.","badge_active_status":1,"media":{"badge_image_sm":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_playingTheField_sm.jpg","badge_image_md":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_playingTheField_md.jpg","badge_image_lg":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_playingTheField_lg.jpg"},"created_at":"Tue,
|
74
|
+
12 Mar 2013 22:05:52 +0000","is_level":false,"levels":[]},{"badge_id":84,"user_badge_id":3235491,"checkin_id":21864820,"badge_name":"Untappd
|
75
|
+
Groupie","badge_description":"Woah! You\u2019ve had at least five beers that
|
76
|
+
the Untappd founders have had. That\u2019s tough since we like a wide variety
|
77
|
+
of beers. Obviously you\u2019re just trying to be cool like us!","badge_hint":"Have
|
78
|
+
5 beers that the Co-Founders of Untappd have had in the last 90 days.","badge_active_status":1,"media":{"badge_image_sm":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_groupie_sm.jpg","badge_image_md":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_groupie_md.jpg","badge_image_lg":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_groupie_lg.jpg"},"created_at":"Fri,
|
79
|
+
08 Feb 2013 00:48:43 +0000","is_level":false,"levels":[]},{"badge_id":23,"user_badge_id":3228407,"checkin_id":21817585,"badge_name":"Night
|
80
|
+
Out","badge_description":"Enjoying a nice Night Out on the town? Thanks for
|
81
|
+
taking untappd along.","badge_hint":"Out with Untappd? Let us you know your
|
82
|
+
location and we''ll give you this badge! Check in with a location from 7pm
|
83
|
+
to 4am in your local timezone.","badge_active_status":1,"media":{"badge_image_sm":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_barCrawl_sm.jpg","badge_image_md":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_barCrawl_md.jpg","badge_image_lg":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_barCrawl_lg.jpg"},"created_at":"Thu,
|
84
|
+
07 Feb 2013 02:12:33 +0000","is_level":false,"levels":[]},{"badge_id":13,"user_badge_id":3228404,"checkin_id":21817585,"badge_name":"Beer
|
85
|
+
Party","badge_description":"Drinking with friends is fun. Right? You''ve checked
|
86
|
+
in with at least 4 other people within 2 hours.","badge_hint":"Drink socially
|
87
|
+
and at a venue.","badge_active_status":1,"media":{"badge_image_sm":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_beerParty_sm.jpg","badge_image_md":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_beerParty_md.jpg","badge_image_lg":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_beerParty_lg.jpg"},"created_at":"Thu,
|
88
|
+
07 Feb 2013 02:12:28 +0000","is_level":false,"levels":[]},{"badge_id":223,"user_badge_id":3209508,"checkin_id":21677681,"badge_name":"Brew
|
89
|
+
Bowl XLVII","badge_description":"Whether you''re in your living room or tail
|
90
|
+
gating at the Super Dome, it''s game day and you''re enjoying a great beer.
|
91
|
+
Could life get any better? Oh wait, it just did because you unlocked the Brew
|
92
|
+
Bowl XLVII badge!","badge_hint":"Check-in on Super Bowl Sunday 2013.","badge_active_status":0,"media":{"badge_image_sm":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_BrewBowlXLVII_sm.jpg","badge_image_md":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_BrewBowlXLVII_md.jpg","badge_image_lg":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_BrewBowlXLVII_lg.jpg"},"created_at":"Mon,
|
93
|
+
04 Feb 2013 03:15:09 +0000","is_level":false,"levels":[]},{"badge_id":1,"user_badge_id":58708,"checkin_id":413105,"badge_name":"Newbie","badge_description":"So,
|
40
94
|
you''re new around here? Congrats on your first brew! This one''s for you.","badge_hint":"Try
|
41
|
-
out Untappd - you''ll get this one!","badge_active_status":1,"media":{"badge_image_sm":"https:\/\/untappd.s3.amazonaws.com\/
|
95
|
+
out Untappd - you''ll get this one!","badge_active_status":1,"media":{"badge_image_sm":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_newbie_sm.jpg","badge_image_md":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_newbie_md.jpg","badge_image_lg":"https:\/\/untappd.s3.amazonaws.com\/badges\/bdg_newbie_lg.jpg"},"created_at":"Mon,
|
42
96
|
07 Mar 2011 01:45:07 +0000","is_level":false,"levels":[]}]}}'
|
43
97
|
http_version: '1.1'
|
44
|
-
recorded_at:
|
98
|
+
recorded_at: Fri, 19 Sep 2014 03:53:30 GMT
|
45
99
|
recorded_with: VCR 2.3.0
|