access 2.2.0 → 2.3.0.pre.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: get
|
|
5
|
-
uri: https://token-stage.adcrws.com/v1/oauth_applications/
|
|
5
|
+
uri: https://token-stage.adcrws.com/v1/oauth_applications/503/access_tokens?per_page=1
|
|
6
6
|
body:
|
|
7
7
|
encoding: US-ASCII
|
|
8
8
|
string: ''
|
|
@@ -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:21 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,201 +40,58 @@ 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
|
+
- '9895'
|
|
45
47
|
Etag:
|
|
46
|
-
- '"
|
|
48
|
+
- '"b113acf22d793bbb1cf58213d86e2fe7"'
|
|
47
49
|
Cache-Control:
|
|
48
50
|
- max-age=0, private, must-revalidate
|
|
49
51
|
X-Request-Id:
|
|
50
|
-
-
|
|
52
|
+
- 4a8fb237-b41c-4772-a901-837bfdd8c3cd
|
|
51
53
|
X-Runtime:
|
|
52
|
-
- '0.
|
|
54
|
+
- '0.042631'
|
|
53
55
|
body:
|
|
54
56
|
encoding: UTF-8
|
|
55
57
|
string: |-
|
|
56
58
|
{
|
|
57
59
|
"access_tokens": [
|
|
58
60
|
{
|
|
59
|
-
"application_id":
|
|
60
|
-
"token": "
|
|
61
|
-
"expires_in": null,
|
|
62
|
-
"revoked_at": "2015-04-07T20:51:38.223Z",
|
|
63
|
-
"created_at": "2015-04-02T22:35:55.225Z",
|
|
64
|
-
"oauth_access_token_id": 11,
|
|
65
|
-
"application_name": "Great FUN - Connexions",
|
|
66
|
-
"application_owner_id": 9,
|
|
67
|
-
"application_owner_type": "Program",
|
|
68
|
-
"program_id": 106,
|
|
69
|
-
"program_name": "Great FUN",
|
|
70
|
-
"program_customer_identifier": "10792",
|
|
71
|
-
"program_start_dts": "2012-04-12T21:10:31.633Z",
|
|
72
|
-
"program_end_dts": "2025-12-31T00:00:00.000Z",
|
|
73
|
-
"organization_id": 100,
|
|
74
|
-
"organization_name": "AFFINION",
|
|
75
|
-
"organization_customer_identifier": "100",
|
|
76
|
-
"filter_id": 3,
|
|
77
|
-
"filter_name": "All Categories except EDUCATION ONLY",
|
|
78
|
-
"filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
|
|
79
|
-
"program_filter_id": 2,
|
|
80
|
-
"domains": [
|
|
81
|
-
|
|
82
|
-
],
|
|
83
|
-
"application_scopes": [
|
|
84
|
-
"api",
|
|
85
|
-
"amt",
|
|
86
|
-
"docs",
|
|
87
|
-
"internal"
|
|
88
|
-
],
|
|
89
|
-
"token_status": "revoked",
|
|
90
|
-
"links": {
|
|
91
|
-
"show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/11"
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"application_id": 9,
|
|
96
|
-
"token": "e09a8a65c9d733656252ce480ce125e37100592adf5449b0570d7ebc3df85b95",
|
|
97
|
-
"expires_in": null,
|
|
98
|
-
"revoked_at": null,
|
|
99
|
-
"created_at": "2015-04-07T20:52:03.641Z",
|
|
100
|
-
"oauth_access_token_id": 501,
|
|
101
|
-
"application_name": "Great FUN - Connexions",
|
|
102
|
-
"application_owner_id": 9,
|
|
103
|
-
"application_owner_type": "Program",
|
|
104
|
-
"program_id": 106,
|
|
105
|
-
"program_name": "Great FUN",
|
|
106
|
-
"program_customer_identifier": "10792",
|
|
107
|
-
"program_start_dts": "2012-04-12T21:10:31.633Z",
|
|
108
|
-
"program_end_dts": "2025-12-31T00:00:00.000Z",
|
|
109
|
-
"organization_id": 100,
|
|
110
|
-
"organization_name": "AFFINION",
|
|
111
|
-
"organization_customer_identifier": "100",
|
|
112
|
-
"filter_id": 3,
|
|
113
|
-
"filter_name": "All Categories except EDUCATION ONLY",
|
|
114
|
-
"filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
|
|
115
|
-
"program_filter_id": 2,
|
|
116
|
-
"domains": [
|
|
117
|
-
|
|
118
|
-
],
|
|
119
|
-
"application_scopes": [
|
|
120
|
-
"api",
|
|
121
|
-
"amt",
|
|
122
|
-
"docs",
|
|
123
|
-
"internal"
|
|
124
|
-
],
|
|
125
|
-
"token_status": "valid",
|
|
126
|
-
"links": {
|
|
127
|
-
"show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/501"
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"application_id": 9,
|
|
132
|
-
"token": "cfe9e37bb0b3ea4244760291d90216837167e9b0e721585947c123e001319aef",
|
|
133
|
-
"expires_in": null,
|
|
134
|
-
"revoked_at": "2015-04-07T20:52:11.814Z",
|
|
135
|
-
"created_at": "2015-04-07T19:59:16.555Z",
|
|
136
|
-
"oauth_access_token_id": 500,
|
|
137
|
-
"application_name": "Great FUN - Connexions",
|
|
138
|
-
"application_owner_id": 9,
|
|
139
|
-
"application_owner_type": "Program",
|
|
140
|
-
"program_id": 106,
|
|
141
|
-
"program_name": "Great FUN",
|
|
142
|
-
"program_customer_identifier": "10792",
|
|
143
|
-
"program_start_dts": "2012-04-12T21:10:31.633Z",
|
|
144
|
-
"program_end_dts": "2025-12-31T00:00:00.000Z",
|
|
145
|
-
"organization_id": 100,
|
|
146
|
-
"organization_name": "AFFINION",
|
|
147
|
-
"organization_customer_identifier": "100",
|
|
148
|
-
"filter_id": 3,
|
|
149
|
-
"filter_name": "All Categories except EDUCATION ONLY",
|
|
150
|
-
"filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
|
|
151
|
-
"program_filter_id": 2,
|
|
152
|
-
"domains": [
|
|
153
|
-
|
|
154
|
-
],
|
|
155
|
-
"application_scopes": [
|
|
156
|
-
"api",
|
|
157
|
-
"amt",
|
|
158
|
-
"docs",
|
|
159
|
-
"internal"
|
|
160
|
-
],
|
|
161
|
-
"token_status": "revoked",
|
|
162
|
-
"links": {
|
|
163
|
-
"show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/500"
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
"application_id": 9,
|
|
168
|
-
"token": "ad68ea1539b2cf47d33d3866650b50cb68212c6353b60e9e07921b11b479221c",
|
|
169
|
-
"expires_in": null,
|
|
170
|
-
"revoked_at": "2015-07-09T20:33:30.070Z",
|
|
171
|
-
"created_at": "2015-07-09T19:34:36.800Z",
|
|
172
|
-
"oauth_access_token_id": 3812,
|
|
173
|
-
"application_name": "Great FUN - Connexions",
|
|
174
|
-
"application_owner_id": 9,
|
|
175
|
-
"application_owner_type": "Program",
|
|
176
|
-
"program_id": 106,
|
|
177
|
-
"program_name": "Great FUN",
|
|
178
|
-
"program_customer_identifier": "10792",
|
|
179
|
-
"program_start_dts": "2012-04-12T21:10:31.633Z",
|
|
180
|
-
"program_end_dts": "2025-12-31T00:00:00.000Z",
|
|
181
|
-
"organization_id": 100,
|
|
182
|
-
"organization_name": "AFFINION",
|
|
183
|
-
"organization_customer_identifier": "100",
|
|
184
|
-
"filter_id": 3,
|
|
185
|
-
"filter_name": "All Categories except EDUCATION ONLY",
|
|
186
|
-
"filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,54,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
|
|
187
|
-
"program_filter_id": 2,
|
|
188
|
-
"domains": [
|
|
189
|
-
|
|
190
|
-
],
|
|
191
|
-
"application_scopes": [
|
|
192
|
-
"api",
|
|
193
|
-
"amt",
|
|
194
|
-
"docs",
|
|
195
|
-
"internal"
|
|
196
|
-
],
|
|
197
|
-
"token_status": "revoked",
|
|
198
|
-
"links": {
|
|
199
|
-
"show_token": "https://token-stage.adcrws.com/v1/oauth_applications/9/access_tokens/3812"
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"application_id": 9,
|
|
204
|
-
"token": "c0c578c72e0a7200403511d55671b793f11eece61cb1b724f81b131bc5f19d66",
|
|
61
|
+
"application_id": 503,
|
|
62
|
+
"token": "c30f1d24a8c10e0fd3e36bc4fe79631025e890849b7deb6dc830e31a3c571393",
|
|
205
63
|
"expires_in": null,
|
|
206
64
|
"revoked_at": null,
|
|
207
|
-
"created_at": "2015-
|
|
208
|
-
"oauth_access_token_id":
|
|
209
|
-
"application_name": "
|
|
210
|
-
"application_owner_id":
|
|
65
|
+
"created_at": "2015-05-04T18:51:26.621Z",
|
|
66
|
+
"oauth_access_token_id": 523,
|
|
67
|
+
"application_name": "TCICP Travel Services (pcid:200073)",
|
|
68
|
+
"application_owner_id": 503,
|
|
211
69
|
"application_owner_type": "Program",
|
|
212
|
-
"program_id":
|
|
213
|
-
"program_name": "
|
|
214
|
-
"program_customer_identifier": "
|
|
215
|
-
"program_start_dts": "
|
|
216
|
-
"program_end_dts": "
|
|
217
|
-
"organization_id":
|
|
218
|
-
"organization_name": "
|
|
219
|
-
"organization_customer_identifier": "
|
|
220
|
-
"filter_id":
|
|
221
|
-
"filter_name": "
|
|
222
|
-
"filter": "{\"offers\":[{\"
|
|
223
|
-
"program_filter_id":
|
|
70
|
+
"program_id": 253970117,
|
|
71
|
+
"program_name": "TCICP Travel Services",
|
|
72
|
+
"program_customer_identifier": "200073",
|
|
73
|
+
"program_start_dts": "2015-05-04T12:51:07.219Z",
|
|
74
|
+
"program_end_dts": "2015-12-04T00:00:00.000Z",
|
|
75
|
+
"organization_id": 2001964,
|
|
76
|
+
"organization_name": "TCICP Travel Services",
|
|
77
|
+
"organization_customer_identifier": "2001964",
|
|
78
|
+
"filter_id": 23,
|
|
79
|
+
"filter_name": "ACCESS PERKS - PROFESSIONAL (auto, car rental, dining, entertainment/rec, health/beauty, hotel, shopping)",
|
|
80
|
+
"filter": "{\"offers\":[{\"term\":{\"offer_set\":\"DISCOUNT\"}},{\"bool\":{\"should\":[{\"terms\":{\"categories.category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"categories.category_parent_key\":[51,58,39,59,53,44,45]}}]}}],\"categories\":[{\"bool\":{\"should\":[{\"terms\":{\"category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"category_parent_key\":[51,58,39,59,53,44,45]}}]}}],\"stores\":[{\"bool\":{\"should\":[{\"terms\":{\"store_categories.category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,39,59,53,44,45]}}]}}],\"locations\":[{\"bool\":{\"should\":[{\"terms\":{\"location_categories.category_key\":[51,58,39,59,53,44,45]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,39,59,53,44,45]}}]}}]}",
|
|
81
|
+
"program_filter_id": 502,
|
|
224
82
|
"domains": [
|
|
225
83
|
|
|
226
84
|
],
|
|
227
85
|
"application_scopes": [
|
|
228
|
-
"api"
|
|
229
|
-
"amt",
|
|
230
|
-
"docs",
|
|
231
|
-
"internal"
|
|
86
|
+
"api"
|
|
232
87
|
],
|
|
233
|
-
"token_status": "
|
|
88
|
+
"token_status": "inactive",
|
|
234
89
|
"links": {
|
|
235
|
-
"show_token": "https://token-stage.adcrws.com/v1/oauth_applications/
|
|
90
|
+
"show_token": "https://token-stage.adcrws.com/v1/oauth_applications/503/access_tokens/523"
|
|
236
91
|
}
|
|
237
92
|
}
|
|
238
93
|
]
|
|
239
94
|
}
|
|
240
95
|
http_version:
|
|
241
|
-
recorded_at:
|
|
242
|
-
recorded_with: VCR
|
|
96
|
+
recorded_at: Sun, 01 Jul 2018 04:24:21 GMT
|
|
97
|
+
recorded_with: VCR 4.0.0
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: get
|
|
5
|
-
uri: https://offer-stage.adcrws.com/v1/offers/
|
|
5
|
+
uri: https://offer-stage.adcrws.com/v1/offers/7354635?member_key=API_RUBY_GEM_TEST&query=pizza
|
|
6
6
|
body:
|
|
7
7
|
encoding: US-ASCII
|
|
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:18 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,117 +40,107 @@ 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
|
+
- '9901'
|
|
45
47
|
Etag:
|
|
46
|
-
- '"
|
|
48
|
+
- '"033d80bcb430456a55f6c440a4be051a"'
|
|
47
49
|
Cache-Control:
|
|
48
50
|
- max-age=0, private, must-revalidate
|
|
49
51
|
X-Request-Id:
|
|
50
|
-
-
|
|
52
|
+
- 3b62b6f8-507e-4977-accb-81943b6d66d3
|
|
51
53
|
X-Runtime:
|
|
52
|
-
- '0.
|
|
54
|
+
- '0.042509'
|
|
53
55
|
body:
|
|
54
56
|
encoding: ASCII-8BIT
|
|
55
57
|
string: !binary |-
|
|
56
58
|
ewogICJpbmZvIjogewogICAgInRvdGFsX3Jlc3VsdHMiOiAxLAogICAgImN1
|
|
57
59
|
cnJlbnRfcGFnZSI6IDEsCiAgICAidG90YWxfcGFnZXMiOiAxLAogICAgInJl
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
ZGNyd3MuY29tL3YxL29mZmVycz9vZmZlcl9ncm91cF9rZXk9NDE3MTU4NCIs
|
|
143
|
-
CiAgICAgICAgImZpbmRfbG9jYXRpb25zX3dpdGhfdGhpc19vZmZlciI6ICJo
|
|
144
|
-
dHRwczovL29mZmVyLXN0YWdlLmFkY3J3cy5jb20vdjEvbG9jYXRpb25zP29m
|
|
145
|
-
ZmVyX2dyb3VwX2tleT00MTcxNTg0IiwKICAgICAgICAiZmluZF9sb2NhdGlv
|
|
146
|
-
bnNfZm9yX3RoaXNfc3RvcmUiOiAiaHR0cHM6Ly9vZmZlci1zdGFnZS5hZGNy
|
|
147
|
-
d3MuY29tL3YxL2xvY2F0aW9ucz9zdG9yZV9rZXk9MTg5MzkwNjAiCiAgICAg
|
|
148
|
-
IH0sCiAgICAgICJvZmZlcl91c2VzX3JlbWFpbmluZyI6IHsKICAgICAgICAi
|
|
149
|
-
b2ZmZXJfa2V5IjogMTM3NzU0OTMsCiAgICAgICAgInVzZXNfdGhpc19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Jk
|
|
85
|
+
aXNjb3VudF92YWx1ZSI6IDEwLjAsCiAgICAgICJwcm9tb3Rpb25fY29kZSI6
|
|
86
|
+
IGZhbHNlLAogICAgICAicmVkZW1wdGlvbl9tZXRob2RzIjogWwogICAgICAg
|
|
87
|
+
ICJsaW5rIiwKICAgICAgICAiaW5zdG9yZV9wcmludCIKICAgICAgXSwKICAg
|
|
88
|
+
ICAgImNhdGVnb3JpZXMiOiBbCiAgICAgICAgewogICAgICAgICAgImNhdGVn
|
|
89
|
+
b3J5X25hbWUiOiAiRmFzdCBGb29kIiwKICAgICAgICAgICJjYXRlZ29yeV9r
|
|
90
|
+
ZXkiOiAxMDA4LAogICAgICAgICAgImNhdGVnb3J5X3BhcmVudF9rZXkiOiAz
|
|
91
|
+
OSwKICAgICAgICAgICJjYXRlZ29yeV9wYXJlbnRfbmFtZSI6ICJEaW5pbmcg
|
|
92
|
+
JiBGb29kIiwKICAgICAgICAgICJjYXRlZ29yeV90eXBlIjogInN1YmNhdGVn
|
|
93
|
+
b3J5IgogICAgICAgIH0KICAgICAgXSwKICAgICAgIm9mZmVyX3N0b3JlIjog
|
|
94
|
+
ewogICAgICAgICJuYW1lIjogIkFudGhvbnkncyBQaXp6YSIsCiAgICAgICAg
|
|
95
|
+
ImRlc2NyaXB0aW9uIjogIkFudGhvbnkncyBQaXp6YSBvZmZlcnMgY2xhc3Np
|
|
96
|
+
YyBJdGFsaWFuIFBpenphIGFuZCBpcyBrbm93biBmb3IgdGhlaXIgZ2lhbnQg
|
|
97
|
+
cGl6emEgc2xpY2VzIGFuZCBncmVhdCB2YWx1ZS4iLAogICAgICAgICJzdG9y
|
|
98
|
+
ZV9rZXkiOiA2NTQyMjY5OSwKICAgICAgICAicGh5c2ljYWxfbG9jYXRpb24i
|
|
99
|
+
OiB7CiAgICAgICAgICAibG9jYXRpb25fbmFtZSI6ICJBbnRob255J3MgUGl6
|
|
100
|
+
emEgWElJSSIsCiAgICAgICAgICAid2ViX2FkZHJlc3MiOiAiIiwKICAgICAg
|
|
101
|
+
ICAgICJkZXNjcmlwdGlvbiI6IG51bGwsCiAgICAgICAgICAib25saW5lX2V4
|
|
102
|
+
Y2x1c2l2ZSI6IGZhbHNlLAogICAgICAgICAgImxvY2F0aW9uX2tleSI6IDg5
|
|
103
|
+
OTIxMiwKICAgICAgICAgICJwb3N0YWxfY29kZSI6ICIyMjYwMSIsCiAgICAg
|
|
104
|
+
ICAgICAiY291bnRyeSI6ICJVUyIsCiAgICAgICAgICAic3RyZWV0X2FkZHJl
|
|
105
|
+
c3MiOiAiNjg4IE4gTG91ZG91biBTdCIsCiAgICAgICAgICAiZXh0ZW5kZWRf
|
|
106
|
+
c3RyZWV0X2FkZHJlc3MiOiBudWxsLAogICAgICAgICAgImNpdHlfbG9jYWxp
|
|
107
|
+
dHkiOiAiV2luY2hlc3RlciIsCiAgICAgICAgICAic3RhdGVfcmVnaW9uIjog
|
|
108
|
+
IlZBIiwKICAgICAgICAgICJnZW9sb2NhdGlvbl9hcnJheSI6IFsKICAgICAg
|
|
109
|
+
ICAgICAgLTc4LjE1OTgxLAogICAgICAgICAgICAzOS4xOTYzNgogICAgICAg
|
|
110
|
+
ICAgXSwKICAgICAgICAgICJnZW9sb2NhdGlvbiI6IHsKICAgICAgICAgICAg
|
|
111
|
+
ImxhdCI6IDM5LjE5NjM2LAogICAgICAgICAgICAibG9uIjogLTc4LjE1OTgx
|
|
112
|
+
CiAgICAgICAgICB9LAogICAgICAgICAgInBob25lX251bWJlciI6ICI1NDAt
|
|
113
|
+
Njc4LTA1MDAiCiAgICAgICAgfQogICAgICB9LAogICAgICAibG9jYXRpb25f
|
|
114
|
+
a2V5d29yZHMiOiBbCiAgICAgICAgewogICAgICAgICAgImtleXdvcmQiOiAi
|
|
115
|
+
ZmFjZXQtY3Vpc2luZS1waXp6YSIKICAgICAgICB9CiAgICAgIF0sCiAgICAg
|
|
116
|
+
ICJsaW5rcyI6IHsKICAgICAgICAicmVkZWVtX29mZmVyIjogewogICA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19vZmZlciI6ICJodHRwczovL29mZmVyLXN0YWdlLmFkY3J3cy5jb20vdjEv
|
|
133
|
+
bG9jYXRpb25zP29mZmVyX2dyb3VwX2tleT0zMTY1MzkiLAogICAgICAgICJm
|
|
134
|
+
aW5kX2xvY2F0aW9uc19mb3JfdGhpc19zdG9yZSI6ICJodHRwczovL29mZmVy
|
|
135
|
+
LXN0YWdlLmFkY3J3cy5jb20vdjEvbG9jYXRpb25zP3N0b3JlX2tleT02NTQy
|
|
136
|
+
MjY5OSIKICAgICAgfSwKICAgICAgIm9mZmVyX3VzZXNfcmVtYWluaW5nIjog
|
|
137
|
+
ewogICAgICAgICJvZmZlcl9rZXkiOiA3MzU0NjM1LAogICAgICAgICJ1c2Vz
|
|
138
|
+
X3RoaXNfcGVyaW9kIjogNDksCiAgICAgICAgInVzZXNfcmVtYWluaW5nIjog
|
|
139
|
+
InVubGltaXRlZCIsCiAgICAgICAgIm51bWJlcl9vZl91c2VzX3JlbWFpbmlu
|
|
140
|
+
ZyI6IG51bGwsCiAgICAgICAgImxhc3RfdXNlZF9vbl9kYXRlIjogIjIwMTgt
|
|
141
|
+
MDYtMzBUMjI6MjQ6MTQuMDAwWiIsCiAgICAgICAgIm5leHRfYXZhaWxhYmxl
|
|
142
|
+
X3VzZV9kYXRlIjogbnVsbCwKICAgICAgICAidXNhYmxlIjogdHJ1ZQogICAg
|
|
143
|
+
ICB9CiAgICB9CiAgXQp9
|
|
156
144
|
http_version:
|
|
157
|
-
recorded_at:
|
|
158
|
-
recorded_with: VCR
|
|
145
|
+
recorded_at: Sun, 01 Jul 2018 04:24:18 GMT
|
|
146
|
+
recorded_with: VCR 4.0.0
|