access 2.2.0 → 2.3.0.pre.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/.travis.yml +6 -4
- data/Gemfile.lock +40 -80
- data/README.md +2 -4
- data/Rakefile +1 -1
- data/access.gemspec +4 -6
- data/lib/access/response.rb +1 -1
- data/lib/access/version.rb +1 -1
- data/test/access/campaign_test.rb +3 -3
- data/test/access/category_test.rb +1 -0
- data/test/access/device_test.rb +1 -4
- data/test/access/member_test.rb +2 -5
- data/test/access/redeem_test.rb +1 -0
- data/test/access/report_test.rb +14 -7
- data/test/access/spot_test.rb +4 -4
- data/test/access/user_test.rb +9 -10
- data/test/access/verify_test.rb +1 -1
- data/test/vcr/cassettes/autocomplete/search_categories.yml +11 -9
- data/test/vcr/cassettes/autocomplete/search_first.yml +21 -19
- data/test/vcr/cassettes/autocomplete/search_locations.yml +13 -11
- data/test/vcr/cassettes/autocomplete/search_offers.yml +15 -13
- data/test/vcr/cassettes/autocomplete/search_stores.yml +17 -15
- data/test/vcr/cassettes/campaign/find.yml +139 -0
- data/test/vcr/cassettes/campaign/search.yml +89 -971
- data/test/vcr/cassettes/campaign/search_first.yml +139 -0
- data/test/vcr/cassettes/category/find.yml +11 -9
- data/test/vcr/cassettes/category/search.yml +14 -35
- data/test/vcr/cassettes/category/search_fail_member_key.yml +11 -9
- data/test/vcr/cassettes/category/search_first.yml +27 -69
- data/test/vcr/cassettes/category/subcategory_find.yml +12 -118
- data/test/vcr/cassettes/channel/search.yml +26 -18
- data/test/vcr/cassettes/favorite/create_generic_with_offer.yml +95 -93
- data/test/vcr/cassettes/favorite/create_location.yml +63 -17
- data/test/vcr/cassettes/favorite/create_offer.yml +95 -93
- data/test/vcr/cassettes/favorite/create_store.yml +59 -59
- data/test/vcr/cassettes/favorite/delete_generic_with_offer.yml +110 -108
- data/test/vcr/cassettes/favorite/delete_location.yml +139 -93
- data/test/vcr/cassettes/favorite/delete_offer.yml +204 -200
- data/test/vcr/cassettes/favorite/delete_store.yml +117 -143
- data/test/vcr/cassettes/favorite/find_generic_with_offer.yml +180 -242
- data/test/vcr/cassettes/favorite/find_location.yml +124 -78
- data/test/vcr/cassettes/favorite/find_offer.yml +180 -242
- data/test/vcr/cassettes/favorite/find_store.yml +103 -129
- data/test/vcr/cassettes/favorite/one_of_everything.yml +323 -1031
- data/test/vcr/cassettes/favorite/search.yml +269 -281
- data/test/vcr/cassettes/favorite/search_bad_member.yml +9 -11
- data/test/vcr/cassettes/favorite/search_locations.yml +103 -62
- data/test/vcr/cassettes/favorite/search_no_favorites.yml +9 -11
- data/test/vcr/cassettes/favorite/search_offers.yml +148 -148
- data/test/vcr/cassettes/favorite/search_stores.yml +70 -127
- data/test/vcr/cassettes/filter/find.yml +11 -9
- data/test/vcr/cassettes/filter/search.yml +14 -12
- data/test/vcr/cassettes/filter/search_first.yml +14 -12
- data/test/vcr/cassettes/location/find.yml +562 -634
- data/test/vcr/cassettes/location/search.yml +82 -77
- data/test/vcr/cassettes/location/search_fail_member_key.yml +11 -9
- data/test/vcr/cassettes/location/search_first.yml +82 -77
- data/test/vcr/cassettes/member/show_failure.yml +14 -14
- data/test/vcr/cassettes/member/show_success.yml +16 -16
- data/test/vcr/cassettes/member/update_success.yml +16 -16
- data/test/vcr/cassettes/member_authenticate/cvt_failure.yml +13 -13
- data/test/vcr/cassettes/member_authenticate/cvt_success.yml +16 -16
- data/test/vcr/cassettes/member_authenticate/failure.yml +54 -9
- data/test/vcr/cassettes/member_authenticate/member_key_failure.yml +13 -13
- data/test/vcr/cassettes/member_authenticate/member_key_success.yml +21 -20
- data/test/vcr/cassettes/member_authenticate/success.yml +70 -13
- data/test/vcr/cassettes/member_device/search_failure.yml +16 -16
- data/test/vcr/cassettes/member_device/search_success.yml +423 -31
- data/test/vcr/cassettes/oauth_application/find.yml +19 -21
- data/test/vcr/cassettes/oauth_application/search.yml +21 -23
- data/test/vcr/cassettes/oauth_application/search_oauth_first.yml +21 -23
- data/test/vcr/cassettes/oauth_application/token_find.yml +33 -34
- data/test/vcr/cassettes/oauth_application/token_search.yml +97 -532
- data/test/vcr/cassettes/oauth_application/token_search_tokens_first.yml +33 -178
- data/test/vcr/cassettes/offer/find.yml +97 -109
- data/test/vcr/cassettes/offer/find_uses_remaining.yml +16 -14
- data/test/vcr/cassettes/offer/find_with_offer_uses_remaining.yml +97 -109
- data/test/vcr/cassettes/offer/search.yml +99 -111
- data/test/vcr/cassettes/offer/search_fail_member_key.yml +11 -9
- data/test/vcr/cassettes/offer/search_first.yml +99 -111
- data/test/vcr/cassettes/offer/search_for_redeem.yml +99 -111
- data/test/vcr/cassettes/offer/with_aggregations.yml +920 -959
- data/test/vcr/cassettes/redeem/offer_no_redeem_type.yml +8 -8
- data/test/vcr/cassettes/redeem/offer_with_redeem_type.yml +14 -7
- data/test/vcr/cassettes/redeem/redeem_offer_with_redeem_type_for_uses_remaining_test.yml +15 -8
- data/test/vcr/cassettes/redemption/find_by_member_key.yml +49 -47
- data/test/vcr/cassettes/redemption/search_by_member_key.yml +516 -228
- data/test/vcr/cassettes/redemption/search_by_member_key_first.yml +516 -228
- data/test/vcr/cassettes/redemption/search_by_member_key_without_redemptions.yml +11 -9
- data/test/vcr/cassettes/report/all_usage.yml +15 -100
- data/test/vcr/cassettes/report/member_location_frequent.yml +15 -19
- data/test/vcr/cassettes/report/member_location_recent.yml +15 -19
- data/test/vcr/cassettes/report/member_query_frequent.yml +15 -19
- data/test/vcr/cassettes/report/member_query_recent.yml +15 -19
- data/test/vcr/cassettes/report/usage.yml +15 -100
- data/test/vcr/cassettes/report/usage_other.yml +15 -100
- data/test/vcr/cassettes/spot/find.yml +9 -9
- data/test/vcr/cassettes/spot/search_by_campaign.yml +93 -2667
- data/test/vcr/cassettes/spot/search_by_channel.yml +73 -906
- data/test/vcr/cassettes/spot/search_by_channel_first.yml +73 -906
- data/test/vcr/cassettes/store/find.yml +48 -45
- data/test/vcr/cassettes/store/national_stores.yml +1764 -2884
- data/test/vcr/cassettes/store/search.yml +52 -49
- data/test/vcr/cassettes/store/search_fail_member_key.yml +11 -9
- data/test/vcr/cassettes/store/search_first.yml +52 -49
- data/test/vcr/cassettes/token/find.yml +53 -29
- data/test/vcr/cassettes/token/get_first_token.yml +55 -31
- data/test/vcr/cassettes/token/search.yml +55 -31
- data/test/vcr/cassettes/user_register/failure.yml +13 -13
- data/test/vcr/cassettes/user_register/success.yml +11 -109
- data/test/vcr/cassettes/user_update/success.yml +58 -12
- data/test/vcr/cassettes/verify/filter.yml +108 -94
- data/test/vcr/cassettes/verify/token.yml +15 -13
- metadata +22 -46
data/test/access/user_test.rb
CHANGED
@@ -26,7 +26,7 @@ class UserTest < Minitest::Test
|
|
26
26
|
|
27
27
|
def test_user_update_success
|
28
28
|
VCR.use_cassette('user_update/success') do
|
29
|
-
request = Access::User.update email: 'cs@test.com', password: 'password', api_environment: 'stage', program_id: '2412', postal_code: '84101', member_key: '
|
29
|
+
request = Access::User.update email: 'cs@test.com', password: 'password', api_environment: 'stage', program_id: '2412', postal_code: '84101', member_key: '227889'
|
30
30
|
assert request.success
|
31
31
|
assert_kind_of Access::UserResponse, request
|
32
32
|
assert_kind_of Array, request.members
|
@@ -41,18 +41,17 @@ class UserTest < Minitest::Test
|
|
41
41
|
|
42
42
|
def test_authenticate_success
|
43
43
|
VCR.use_cassette('member_authenticate/success') do
|
44
|
-
|
45
|
-
assert
|
46
|
-
assert_kind_of Access::UserResponse,
|
47
|
-
assert_kind_of Array,
|
48
|
-
|
49
|
-
assert_kind_of Access::Member, request.users.first
|
44
|
+
response = Access::User.authenticate email: 'cs@test.com', password: 'password', api_environment: 'stage'
|
45
|
+
assert response.success
|
46
|
+
assert_kind_of Access::UserResponse, response
|
47
|
+
assert_kind_of Array, response.users
|
48
|
+
assert_kind_of Access::Member, response.users.first
|
50
49
|
end
|
51
50
|
end
|
52
51
|
|
53
52
|
def test_authenticate_failure
|
54
53
|
VCR.use_cassette('member_authenticate/failure') do
|
55
|
-
request = Access::User.authenticate email: '
|
54
|
+
request = Access::User.authenticate email: 'cs@test.com', password: 'bad', api_environment: 'stage'
|
56
55
|
refute request.success
|
57
56
|
assert_equal 401, request.status
|
58
57
|
assert_kind_of Access::UserResponse, request
|
@@ -63,7 +62,7 @@ class UserTest < Minitest::Test
|
|
63
62
|
|
64
63
|
def test_authenticate_cvt_success
|
65
64
|
VCR.use_cassette('member_authenticate/cvt_success') do
|
66
|
-
request = Access::User.authenticate_by_cvt cvt: '
|
65
|
+
request = Access::User.authenticate_by_cvt cvt: 'e149dd86dee406a0075531ad558ec73b7c4f1d03', api_environment: 'stage'
|
67
66
|
assert request.success
|
68
67
|
assert_kind_of Access::UserResponse, request
|
69
68
|
assert_kind_of Array, request.users
|
@@ -112,7 +111,7 @@ class UserTest < Minitest::Test
|
|
112
111
|
first_name: 'RubyGem',
|
113
112
|
last_name: 'Test',
|
114
113
|
postal_code: 84047,
|
115
|
-
email: "rubygemtest-
|
114
|
+
email: "rubygemtest-11@accessdevelopment.com",
|
116
115
|
password: 'test1234',
|
117
116
|
shared_secret: 'thanks',
|
118
117
|
program_url: "saversclub.accessdevelopment.com",
|
data/test/access/verify_test.rb
CHANGED
@@ -13,7 +13,7 @@ class VerifyTest < Minitest::Test
|
|
13
13
|
|
14
14
|
def test_verify_filter
|
15
15
|
VCR.use_cassette('verify/filter') do
|
16
|
-
single_filter = '{"program_filter":
|
16
|
+
single_filter = '{"program_filter":{"offers":[{"bool":{"should":[{"terms":{"categories.category_key":[39,48]}},{"terms":{"categories.category_parent_key":[39,48]}}]}}]}}'
|
17
17
|
verify_response = Access::Verify.filter single_filter
|
18
18
|
assert verify_response.success
|
19
19
|
assert_kind_of Access::VerifyResponse, verify_response
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Access-Token:
|
11
|
-
- ACCESS_TOKEN
|
11
|
+
- "<ACCESS_TOKEN>"
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -19,15 +19,13 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Server:
|
22
|
-
- nginx/1.
|
22
|
+
- nginx/1.12.2
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Sun, 01 Jul 2018 04:24:02 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json
|
27
27
|
Transfer-Encoding:
|
28
28
|
- chunked
|
29
|
-
Connection:
|
30
|
-
- keep-alive
|
31
29
|
X-Frame-Options:
|
32
30
|
- SAMEORIGIN
|
33
31
|
X-Xss-Protection:
|
@@ -42,14 +40,18 @@ http_interactions:
|
|
42
40
|
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
43
41
|
Access-Control-Max-Age:
|
44
42
|
- '1728000'
|
43
|
+
X-Ratelimit-Limit:
|
44
|
+
- '10000'
|
45
|
+
X-Ratelimit-Remaining:
|
46
|
+
- '9929'
|
45
47
|
Etag:
|
46
48
|
- '"f40494aa044559fc8cbdb374e520e8cf"'
|
47
49
|
Cache-Control:
|
48
50
|
- max-age=0, private, must-revalidate
|
49
51
|
X-Request-Id:
|
50
|
-
-
|
52
|
+
- 44d092c8-ada6-4728-9afa-5d3929b539f7
|
51
53
|
X-Runtime:
|
52
|
-
- '0.
|
54
|
+
- '0.023111'
|
53
55
|
body:
|
54
56
|
encoding: UTF-8
|
55
57
|
string: |-
|
@@ -66,5 +68,5 @@ http_interactions:
|
|
66
68
|
}
|
67
69
|
}
|
68
70
|
http_version:
|
69
|
-
recorded_at:
|
70
|
-
recorded_with: VCR
|
71
|
+
recorded_at: Sun, 01 Jul 2018 04:24:02 GMT
|
72
|
+
recorded_with: VCR 4.0.0
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Access-Token:
|
11
|
-
- ACCESS_TOKEN
|
11
|
+
- "<ACCESS_TOKEN>"
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -19,15 +19,13 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Server:
|
22
|
-
- nginx/1.
|
22
|
+
- nginx/1.12.2
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Sun, 01 Jul 2018 04:24:02 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json
|
27
27
|
Transfer-Encoding:
|
28
28
|
- chunked
|
29
|
-
Connection:
|
30
|
-
- keep-alive
|
31
29
|
X-Frame-Options:
|
32
30
|
- SAMEORIGIN
|
33
31
|
X-Xss-Protection:
|
@@ -42,14 +40,18 @@ http_interactions:
|
|
42
40
|
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
43
41
|
Access-Control-Max-Age:
|
44
42
|
- '1728000'
|
43
|
+
X-Ratelimit-Limit:
|
44
|
+
- '10000'
|
45
|
+
X-Ratelimit-Remaining:
|
46
|
+
- '9928'
|
45
47
|
Etag:
|
46
|
-
- '"
|
48
|
+
- '"7b3606db7184127d59de11b6022826ef"'
|
47
49
|
Cache-Control:
|
48
50
|
- max-age=0, private, must-revalidate
|
49
51
|
X-Request-Id:
|
50
|
-
-
|
52
|
+
- e128a12c-e003-4d6f-9d43-287514428d47
|
51
53
|
X-Runtime:
|
52
|
-
- '0.
|
54
|
+
- '0.066347'
|
53
55
|
body:
|
54
56
|
encoding: UTF-8
|
55
57
|
string: |-
|
@@ -65,30 +67,30 @@ http_interactions:
|
|
65
67
|
],
|
66
68
|
"stores": [
|
67
69
|
{
|
68
|
-
"store_name": "
|
69
|
-
"store_key":
|
70
|
-
"active_offer_count":
|
71
|
-
"active_location_count":
|
72
|
-
"logo_url": "https://static-stage.accessdevelopment.com/brand/
|
70
|
+
"store_name": "Super 8",
|
71
|
+
"store_key": 19004245,
|
72
|
+
"active_offer_count": 208,
|
73
|
+
"active_location_count": 2686,
|
74
|
+
"logo_url": "https://static-stage.accessdevelopment.com/brand/fc724d852bcd446ecb11ee9ea9331b834c0542cd/original.png"
|
73
75
|
}
|
74
76
|
],
|
75
77
|
"locations": [
|
76
78
|
{
|
77
79
|
"location_name": "Verizon Wireless",
|
78
80
|
"location_key": 5461172,
|
79
|
-
"active_offer_count":
|
81
|
+
"active_offer_count": 46,
|
80
82
|
"logo_url": "https://static-stage.accessdevelopment.com/brand/dca89dd91ee1c8253b1070b86c9319a7a3f30352/original.png"
|
81
83
|
}
|
82
84
|
],
|
83
85
|
"offers": [
|
84
86
|
{
|
85
|
-
"offer_name": "$
|
86
|
-
"offer_key":
|
87
|
-
"logo_url": "https://static-stage.accessdevelopment.com/brand/
|
87
|
+
"offer_name": "$10 off any service $50 or more on general auto repairs.",
|
88
|
+
"offer_key": 8928618,
|
89
|
+
"logo_url": "https://static-stage.accessdevelopment.com/brand/79b4f2467ca842e046e3e542bc43989fe9b3485b/original.png"
|
88
90
|
}
|
89
91
|
]
|
90
92
|
}
|
91
93
|
}
|
92
94
|
http_version:
|
93
|
-
recorded_at:
|
94
|
-
recorded_with: VCR
|
95
|
+
recorded_at: Sun, 01 Jul 2018 04:24:02 GMT
|
96
|
+
recorded_with: VCR 4.0.0
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Access-Token:
|
11
|
-
- ACCESS_TOKEN
|
11
|
+
- "<ACCESS_TOKEN>"
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -19,15 +19,13 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Server:
|
22
|
-
- nginx/1.
|
22
|
+
- nginx/1.12.2
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Sun, 01 Jul 2018 04:24:03 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json
|
27
27
|
Transfer-Encoding:
|
28
28
|
- chunked
|
29
|
-
Connection:
|
30
|
-
- keep-alive
|
31
29
|
X-Frame-Options:
|
32
30
|
- SAMEORIGIN
|
33
31
|
X-Xss-Protection:
|
@@ -42,14 +40,18 @@ http_interactions:
|
|
42
40
|
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
43
41
|
Access-Control-Max-Age:
|
44
42
|
- '1728000'
|
43
|
+
X-Ratelimit-Limit:
|
44
|
+
- '10000'
|
45
|
+
X-Ratelimit-Remaining:
|
46
|
+
- '9926'
|
45
47
|
Etag:
|
46
|
-
- '"
|
48
|
+
- '"52ec5b844862d6a22cb6e61b38551bdc"'
|
47
49
|
Cache-Control:
|
48
50
|
- max-age=0, private, must-revalidate
|
49
51
|
X-Request-Id:
|
50
|
-
-
|
52
|
+
- c7de3723-ac25-43eb-a82d-65b953429719
|
51
53
|
X-Runtime:
|
52
|
-
- '0.
|
54
|
+
- '0.012645'
|
53
55
|
body:
|
54
56
|
encoding: UTF-8
|
55
57
|
string: |-
|
@@ -60,12 +62,12 @@ http_interactions:
|
|
60
62
|
{
|
61
63
|
"location_name": "Verizon Wireless",
|
62
64
|
"location_key": 5461172,
|
63
|
-
"active_offer_count":
|
65
|
+
"active_offer_count": 46,
|
64
66
|
"logo_url": "https://static-stage.accessdevelopment.com/brand/dca89dd91ee1c8253b1070b86c9319a7a3f30352/original.png"
|
65
67
|
}
|
66
68
|
]
|
67
69
|
}
|
68
70
|
}
|
69
71
|
http_version:
|
70
|
-
recorded_at:
|
71
|
-
recorded_with: VCR
|
72
|
+
recorded_at: Sun, 01 Jul 2018 04:24:03 GMT
|
73
|
+
recorded_with: VCR 4.0.0
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Access-Token:
|
11
|
-
- ACCESS_TOKEN
|
11
|
+
- "<ACCESS_TOKEN>"
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -19,15 +19,13 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Server:
|
22
|
-
- nginx/1.
|
22
|
+
- nginx/1.12.2
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Sun, 01 Jul 2018 04:24:03 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json
|
27
27
|
Transfer-Encoding:
|
28
28
|
- chunked
|
29
|
-
Connection:
|
30
|
-
- keep-alive
|
31
29
|
X-Frame-Options:
|
32
30
|
- SAMEORIGIN
|
33
31
|
X-Xss-Protection:
|
@@ -42,14 +40,18 @@ http_interactions:
|
|
42
40
|
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
43
41
|
Access-Control-Max-Age:
|
44
42
|
- '1728000'
|
43
|
+
X-Ratelimit-Limit:
|
44
|
+
- '10000'
|
45
|
+
X-Ratelimit-Remaining:
|
46
|
+
- '9927'
|
45
47
|
Etag:
|
46
|
-
- '"
|
48
|
+
- '"dea864693a926a29f362e23271dc3aff"'
|
47
49
|
Cache-Control:
|
48
50
|
- max-age=0, private, must-revalidate
|
49
51
|
X-Request-Id:
|
50
|
-
-
|
52
|
+
- d4c4a130-041a-463e-8025-85cfa9459047
|
51
53
|
X-Runtime:
|
52
|
-
- '0.
|
54
|
+
- '0.012434'
|
53
55
|
body:
|
54
56
|
encoding: UTF-8
|
55
57
|
string: |-
|
@@ -58,13 +60,13 @@ http_interactions:
|
|
58
60
|
"query": "*",
|
59
61
|
"offers": [
|
60
62
|
{
|
61
|
-
"offer_name": "$
|
62
|
-
"offer_key":
|
63
|
-
"logo_url": "https://static-stage.accessdevelopment.com/brand/
|
63
|
+
"offer_name": "$10 off any service $50 or more on general auto repairs.",
|
64
|
+
"offer_key": 8928618,
|
65
|
+
"logo_url": "https://static-stage.accessdevelopment.com/brand/79b4f2467ca842e046e3e542bc43989fe9b3485b/original.png"
|
64
66
|
}
|
65
67
|
]
|
66
68
|
}
|
67
69
|
}
|
68
70
|
http_version:
|
69
|
-
recorded_at:
|
70
|
-
recorded_with: VCR
|
71
|
+
recorded_at: Sun, 01 Jul 2018 04:24:03 GMT
|
72
|
+
recorded_with: VCR 4.0.0
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Access-Token:
|
11
|
-
- ACCESS_TOKEN
|
11
|
+
- "<ACCESS_TOKEN>"
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -19,15 +19,13 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Server:
|
22
|
-
- nginx/1.
|
22
|
+
- nginx/1.12.2
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Sun, 01 Jul 2018 04:24:04 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json
|
27
27
|
Transfer-Encoding:
|
28
28
|
- chunked
|
29
|
-
Connection:
|
30
|
-
- keep-alive
|
31
29
|
X-Frame-Options:
|
32
30
|
- SAMEORIGIN
|
33
31
|
X-Xss-Protection:
|
@@ -42,14 +40,18 @@ http_interactions:
|
|
42
40
|
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
43
41
|
Access-Control-Max-Age:
|
44
42
|
- '1728000'
|
43
|
+
X-Ratelimit-Limit:
|
44
|
+
- '10000'
|
45
|
+
X-Ratelimit-Remaining:
|
46
|
+
- '9925'
|
45
47
|
Etag:
|
46
|
-
- '"
|
48
|
+
- '"367c163b5da4207eef05f52b2113de46"'
|
47
49
|
Cache-Control:
|
48
50
|
- max-age=0, private, must-revalidate
|
49
51
|
X-Request-Id:
|
50
|
-
-
|
52
|
+
- 6e0409ae-acb1-478c-88df-fa4d57ea6bea
|
51
53
|
X-Runtime:
|
52
|
-
- '0.
|
54
|
+
- '0.012710'
|
53
55
|
body:
|
54
56
|
encoding: UTF-8
|
55
57
|
string: |-
|
@@ -58,15 +60,15 @@ http_interactions:
|
|
58
60
|
"query": "*",
|
59
61
|
"stores": [
|
60
62
|
{
|
61
|
-
"store_name": "
|
62
|
-
"store_key":
|
63
|
-
"active_offer_count":
|
64
|
-
"active_location_count":
|
65
|
-
"logo_url": "https://static-stage.accessdevelopment.com/brand/
|
63
|
+
"store_name": "Super 8",
|
64
|
+
"store_key": 19004245,
|
65
|
+
"active_offer_count": 208,
|
66
|
+
"active_location_count": 2686,
|
67
|
+
"logo_url": "https://static-stage.accessdevelopment.com/brand/fc724d852bcd446ecb11ee9ea9331b834c0542cd/original.png"
|
66
68
|
}
|
67
69
|
]
|
68
70
|
}
|
69
71
|
}
|
70
72
|
http_version:
|
71
|
-
recorded_at:
|
72
|
-
recorded_with: VCR
|
73
|
+
recorded_at: Sun, 01 Jul 2018 04:24:04 GMT
|
74
|
+
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,139 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://campaign-stage.adcrws.com/v1/campaigns/583?channel_key=20889899&member_key=API_RUBY_GEM_TEST
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Access-Token:
|
11
|
+
- "<ACCESS_TOKEN>"
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- Apache-Coyote/1.1
|
23
|
+
X-Content-Type-Options:
|
24
|
+
- nosniff
|
25
|
+
X-Xss-Protection:
|
26
|
+
- 1; mode=block
|
27
|
+
Cache-Control:
|
28
|
+
- no-cache, no-store, max-age=0, must-revalidate
|
29
|
+
Pragma:
|
30
|
+
- no-cache
|
31
|
+
Expires:
|
32
|
+
- '0'
|
33
|
+
X-Frame-Options:
|
34
|
+
- DENY
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- "*"
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET
|
39
|
+
Access-Control-Max-Age:
|
40
|
+
- '3600'
|
41
|
+
Access-Control-Allow-Headers:
|
42
|
+
- x-requested-with
|
43
|
+
X-Application-Context:
|
44
|
+
- application:stage:10110
|
45
|
+
Content-Type:
|
46
|
+
- application/json;charset=UTF-8
|
47
|
+
Transfer-Encoding:
|
48
|
+
- chunked
|
49
|
+
Date:
|
50
|
+
- Thu, 28 Jun 2018 19:22:47 GMT
|
51
|
+
body:
|
52
|
+
encoding: ASCII-8BIT
|
53
|
+
string: !binary |-
|
54
|
+
eyJjYW1wYWlnbnMiOlt7ImtleSI6NTgzLCJsaW5rcyI6W3sicmVsIjoic2Vs
|
55
|
+
ZiIsImhyZWYiOiJodHRwczovL2NhbXBhaWduLXN0YWdlLmFkY3J3cy5jb20v
|
56
|
+
djEvY2FtcGFpZ25zLzU4MyJ9LHsicmVsIjoic3BvdHMiLCJocmVmIjoiaHR0
|
57
|
+
cHM6Ly9jYW1wYWlnbi1zdGFnZS5hZGNyd3MuY29tL3YxL3Nwb3RzL2NhbXBh
|
58
|
+
aWduLzU4MyJ9XSwiY2FtcGFpZ25fbmFtZSI6Im1vYmlsZSBzZWFzb25hbCIs
|
59
|
+
ImNhbXBhaWduX2Rlc2NyaXB0aW9uIjoiIiwiY2FtcGFpZ25fcmFua2luZyI6
|
60
|
+
MSwic3BvdHMiOlt7ImtleSI6NTA1OCwibGlua3MiOlt7InJlbCI6InNlbGYi
|
61
|
+
LCJocmVmIjoiaHR0cHM6Ly9jYW1wYWlnbi1zdGFnZS5hZGNyd3MuY29tL3Yx
|
62
|
+
L3Nwb3RzLzUwNTgifSx7InJlbCI6ImNhbXBhaWduIiwiaHJlZiI6Imh0dHBz
|
63
|
+
Oi8vY2FtcGFpZ24tc3RhZ2UuYWRjcndzLmNvbS92MS9jYW1wYWlnbnMvNTgz
|
64
|
+
In0seyJyZWwiOiJvZmZlcl9mb3Jfc3BvdCIsImhyZWYiOiJodHRwczovL29m
|
65
|
+
ZmVyLXN0YWdlLmFkY3J3cy5jb20vdjEvb2ZmZXJzP3N0b3JlX2tleT0xODkz
|
66
|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