access 2.0.7 → 2.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/lib/access.rb +1 -0
  3. data/lib/access/geolocation.rb +11 -0
  4. data/lib/access/location.rb +2 -0
  5. data/lib/access/version.rb +1 -1
  6. data/test/access/location_test.rb +2 -0
  7. data/test/access/offer_test.rb +1 -0
  8. data/test/fixtures/autocomplete_search.yml +30 -149
  9. data/test/fixtures/autocomplete_search_categories.yml +15 -120
  10. data/test/fixtures/autocomplete_search_locations.yml +9 -110
  11. data/test/fixtures/autocomplete_search_offers.yml +14 -119
  12. data/test/fixtures/autocomplete_search_stores.yml +16 -123
  13. data/test/fixtures/category_find.yml +9 -155
  14. data/test/fixtures/category_search.yml +18 -3588
  15. data/test/fixtures/category_search_fail_member_key.yml +9 -45
  16. data/test/fixtures/filter_find.yml +14 -77
  17. data/test/fixtures/filter_search.yml +16 -128
  18. data/test/fixtures/location_find.yml +414 -891
  19. data/test/fixtures/location_search.yml +69 -327
  20. data/test/fixtures/location_search_fail_member_key.yml +9 -310
  21. data/test/fixtures/national_stores.yml +1717 -3854
  22. data/test/fixtures/oauth_application_find.yml +9 -85
  23. data/test/fixtures/oauth_application_search.yml +12 -48
  24. data/test/fixtures/oauth_application_token_find.yml +9 -159
  25. data/test/fixtures/oauth_application_token_search.yml +9 -5
  26. data/test/fixtures/offer_find.yml +12 -555
  27. data/test/fixtures/offer_search.yml +12 -189
  28. data/test/fixtures/offer_search_fail_member_key.yml +9 -45
  29. data/test/fixtures/redeem_offer_no_redeem_type.yml +9 -359
  30. data/test/fixtures/store_find.yml +9 -501
  31. data/test/fixtures/store_search.yml +9 -135
  32. data/test/fixtures/store_search_fail_member_key.yml +9 -45
  33. data/test/fixtures/subcategory_find.yml +9 -145
  34. data/test/fixtures/token_find.yml +27 -356
  35. data/test/fixtures/token_search.yml +35 -224
  36. data/test/fixtures/verify_filter.yml +9 -5
  37. data/test/fixtures/verify_token.yml +13 -9
  38. metadata +2 -3
  39. data/test/fixtures/oauth_application_search_fail_member_key.yml +0 -268
@@ -1,258 +1,5 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: https://token-demo.adcrws.com/v1/oauth_applications?member_key=guest&per_page=1
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Access-Token:
11
- - token_without_limit
12
- Content-Type:
13
- - application/json
14
- Accept:
15
- - application/json
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Access-Control-Allow-Headers:
22
- - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
23
- Access-Control-Allow-Methods:
24
- - POST, GET, PUT, DELETE, OPTIONS
25
- Access-Control-Max-Age:
26
- - '1728000'
27
- Access-Control-Request-Method:
28
- - GET
29
- Cache-Control:
30
- - max-age=0, private, must-revalidate
31
- Content-Type:
32
- - application/json
33
- Date:
34
- - Sat, 01 Aug 2015 03:53:59 GMT
35
- Etag:
36
- - '"f6696b8f4112edcc7bacb4359fb29c66"'
37
- Server:
38
- - nginx/1.6.2
39
- Strict-Transport-Security:
40
- - max-age=31536000
41
- X-Content-Type-Options:
42
- - nosniff
43
- X-Frame-Options:
44
- - SAMEORIGIN
45
- X-Request-Id:
46
- - 150a6278-d1bf-4034-a086-25d9db00b456
47
- X-Runtime:
48
- - '0.043797'
49
- X-Xss-Protection:
50
- - 1; mode=block
51
- Content-Length:
52
- - '778'
53
- Connection:
54
- - keep-alive
55
- body:
56
- encoding: UTF-8
57
- string: |-
58
- {
59
- "info": {
60
- "total_results": 701,
61
- "results_per_page": 1,
62
- "current_page": 1,
63
- "total_pages": 701
64
- },
65
- "oauth_applications": [
66
- {
67
- "id": 22,
68
- "name": "American Grandparents Association",
69
- "owner_id": 235308134,
70
- "owner_type": "Program",
71
- "domain_urls": null,
72
- "scopes": [
73
- "api",
74
- "docs"
75
- ],
76
- "active_tokens": [
77
- "e4db3fb9a054e78807c431e837c49a59553c73204de91d404fe43d12c247f805"
78
- ],
79
- "filter": {
80
- "filter_id": 18,
81
- "filter_name": "Grandparents"
82
- },
83
- "links": {
84
- "show_application": "https://token-demo.adcrws.com/v1/oauth_applications/22"
85
- }
86
- }
87
- ],
88
- "links": {
89
- "next_page": "https://report-demo.adcrws.com/v1/oauth_applications?page=2"
90
- }
91
- }
92
- http_version:
93
- recorded_at: Sat, 01 Aug 2015 03:53:59 GMT
94
- - request:
95
- method: get
96
- uri: https://offer-demo.adcrws.com/v1/locations
97
- body:
98
- encoding: UTF-8
99
- string: member_key=guest&per_page=1
100
- headers:
101
- Access-Token:
102
- - token_without_limit
103
- Content-Type:
104
- - application/json
105
- Accept:
106
- - application/json
107
- response:
108
- status:
109
- code: 400
110
- message: Bad Request
111
- headers:
112
- Content-Type:
113
- - application/json
114
- Date:
115
- - Thu, 06 Aug 2015 17:30:00 GMT
116
- Server:
117
- - nginx/1.6.2
118
- Strict-Transport-Security:
119
- - max-age=31536000
120
- X-Request-Id:
121
- - 2f7b5e02-a328-4a66-98f7-caa7d01cf93a
122
- X-Runtime:
123
- - '0.000309'
124
- Content-Length:
125
- - '133'
126
- Connection:
127
- - keep-alive
128
- body:
129
- encoding: UTF-8
130
- string: '{"status":400,"message":"There was a problem in the JSON you submitted:
131
- 795: unexpected token at ''member_key=guest\u0026per_page=1''"}'
132
- http_version:
133
- recorded_at: Thu, 06 Aug 2015 17:30:00 GMT
134
- - request:
135
- method: get
136
- uri: https://offer-demo.adcrws.com/v1/locations?member_key=guest&per_page=1
137
- body:
138
- encoding: US-ASCII
139
- string: ''
140
- headers:
141
- Access-Token:
142
- - token_without_limit
143
- Content-Type:
144
- - application/json
145
- Accept:
146
- - application/json
147
- response:
148
- status:
149
- code: 200
150
- message: OK
151
- headers:
152
- Access-Control-Allow-Headers:
153
- - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
154
- Access-Control-Allow-Methods:
155
- - POST, GET, PUT, DELETE, OPTIONS
156
- Access-Control-Max-Age:
157
- - '1728000'
158
- Access-Control-Request-Method:
159
- - GET
160
- Cache-Control:
161
- - max-age=0, private, must-revalidate
162
- Content-Type:
163
- - application/json
164
- Date:
165
- - Thu, 06 Aug 2015 17:51:01 GMT
166
- Etag:
167
- - '"77168502114dd12f33b7091d3e75fcf5"'
168
- Server:
169
- - nginx/1.6.2
170
- Strict-Transport-Security:
171
- - max-age=31536000
172
- X-Content-Type-Options:
173
- - nosniff
174
- X-Frame-Options:
175
- - SAMEORIGIN
176
- X-Request-Id:
177
- - 96e5baa2-6541-4de5-9291-14103d6f25bd
178
- X-Runtime:
179
- - '0.029239'
180
- X-Xss-Protection:
181
- - 1; mode=block
182
- Content-Length:
183
- - '1854'
184
- Connection:
185
- - keep-alive
186
- body:
187
- encoding: UTF-8
188
- string: |-
189
- {
190
- "info": {
191
- "total_results": 204900,
192
- "current_page": 1,
193
- "total_pages": 204900,
194
- "results_per_page": 1
195
- },
196
- "locations": [
197
- {
198
- "search_relevance": 1.0,
199
- "physical_location": {
200
- "location_name": "Food Fast",
201
- "web_address": "http://cefcostores.com",
202
- "description": null,
203
- "location_key": 5230448,
204
- "phone_number": "903-586-5303",
205
- "postal_code": "75766",
206
- "country": "US",
207
- "street_address": "319 E Larissa St",
208
- "extended_street_address": "",
209
- "city_locality": "Jacksonville",
210
- "state_region": "TX",
211
- "geolocation_array": [
212
- -95.27013,
213
- 31.96207
214
- ],
215
- "geolocation": {
216
- "lat": 31.96207,
217
- "lon": -95.27013
218
- }
219
- },
220
- "location_store": {
221
- "name": "Food Fast",
222
- "description": "",
223
- "store_key": 152815598
224
- },
225
- "location_categories": [
226
- {
227
- "category_name": "Convenience Stores",
228
- "category_key": 1012,
229
- "category_parent_key": 39,
230
- "category_parent_name": "Dining & Food",
231
- "category_type": "subcategory"
232
- }
233
- ],
234
- "national": false,
235
- "logo_url": "https://static-demo.accessdevelopment.com/brand/3193995e29c9aae6bd4d8eb272b8b25db6c08267/original.png",
236
- "location_photos": [
237
-
238
- ],
239
- "active_offer_count": 1,
240
- "offer_groups": [
241
- 4099134
242
- ],
243
- "links": {
244
- "show_location": "https://offer-demo.adcrws.com/v1/locations/5230448",
245
- "show_store": "https://offer-demo.adcrws.com/v1/stores/152815598",
246
- "find_offers_at_this_location": "https://offer-demo.adcrws.com/v1/offers?location_key=5230448"
247
- }
248
- }
249
- ],
250
- "links": {
251
- "next_page": "https://offer-demo.adcrws.com/v1/locations?member_key=guest&page=2&per_page=1"
252
- }
253
- }
254
- http_version:
255
- recorded_at: Thu, 06 Aug 2015 17:51:01 GMT
256
3
  - request:
257
4
  method: get
258
5
  uri: https://offer-demo.adcrws.com/v1/locations?member_key=API_RUBY_GEM_TEST&per_page=1
@@ -261,7 +8,7 @@ http_interactions:
261
8
  string: ''
262
9
  headers:
263
10
  Access-Token:
264
- - token_without_limit
11
+ - token_without_filters
265
12
  Content-Type:
266
13
  - application/json
267
14
  Accept:
@@ -284,93 +31,88 @@ http_interactions:
284
31
  Content-Type:
285
32
  - application/json
286
33
  Date:
287
- - Fri, 11 Sep 2015 20:33:23 GMT
34
+ - Wed, 16 Sep 2015 19:54:02 GMT
288
35
  Etag:
289
- - '"b1c54f65bd9c8091ad92c676fef93579"'
36
+ - '"25484f07290d501b56282d8db166071e"'
290
37
  Server:
291
38
  - nginx/1.6.2
292
39
  X-Content-Type-Options:
293
40
  - nosniff
294
41
  X-Frame-Options:
295
42
  - SAMEORIGIN
43
+ X-Ratelimit-Limit:
44
+ - '1000'
45
+ X-Ratelimit-Remaining:
46
+ - '972'
296
47
  X-Request-Id:
297
- - b6aee1b9-ee8c-4b47-8d76-6d8a8861dd4d
48
+ - d63dd54f-3473-426d-86b0-bc46377e9eed
298
49
  X-Runtime:
299
- - '0.029030'
50
+ - '0.031974'
300
51
  X-Xss-Protection:
301
52
  - 1; mode=block
302
53
  Content-Length:
303
- - '2102'
54
+ - '2504'
304
55
  Connection:
305
56
  - keep-alive
306
57
  body:
307
- encoding: UTF-8
308
- string: |-
309
- {
310
- "info": {
311
- "total_results": 204820,
312
- "current_page": 1,
313
- "total_pages": 204820,
314
- "results_per_page": 1
315
- },
316
- "locations": [
317
- {
318
- "search_relevance": 1.0,
319
- "physical_location": {
320
- "location_name": "TGF Hair Salon",
321
- "web_address": "http://www.tgfhairsalons.com",
322
- "description": "",
323
- "location_key": 294942,
324
- "phone_number": "281-398-6000",
325
- "postal_code": "77450",
326
- "country": "US",
327
- "street_address": "22072 Whiemer Pkwy",
328
- "extended_street_address": null,
329
- "city_locality": "Katy",
330
- "state_region": "TX",
331
- "geolocation_array": [
332
- -95.74558,
333
- 29.7625
334
- ],
335
- "geolocation": {
336
- "lat": 29.7625,
337
- "lon": -95.74558
338
- }
339
- },
340
- "location_store": {
341
- "name": "TGF Hair Salon",
342
- "description": "We are a full-service salon offering affordable prices. Our talented stylists offer fast, friendly service and in-depth knowledge about a wide variety of professional haircare products. We've got everything you need to keep looking your best.",
343
- "store_key": 18990943
344
- },
345
- "location_categories": [
346
- {
347
- "category_name": "Salon",
348
- "category_key": 1036,
349
- "category_parent_key": 53,
350
- "category_parent_name": "Health & Beauty",
351
- "category_type": "subcategory"
352
- }
353
- ],
354
- "national": false,
355
- "logo_url": "https://static-demo.accessdevelopment.com/brand/d85c57bdbf8a840747a2aa1662e7f8f3edb52bf6/original.png",
356
- "location_photos": [
357
-
358
- ],
359
- "active_offer_count": 1,
360
- "offer_group_keys": [
361
- 89664
362
- ],
363
- "links": {
364
- "show_location": "https://offer-demo.adcrws.com/v1/locations/294942",
365
- "show_store": "https://offer-demo.adcrws.com/v1/stores/18990943",
366
- "find_offers_at_this_location": "https://offer-demo.adcrws.com/v1/offers?location_key=294942"
367
- }
368
- }
369
- ],
370
- "links": {
371
- "next_page": "https://offer-demo.adcrws.com/v1/locations?member_key=API_RUBY_GEM_TEST&page=2&per_page=1"
372
- }
373
- }
58
+ encoding: ASCII-8BIT
59
+ string: !binary |-
60
+ ewogICJpbmZvIjogewogICAgInRvdGFsX3Jlc3VsdHMiOiAyMDQ4MjAsCiAg
61
+ ICAiY3VycmVudF9wYWdlIjogMSwKICAgICJ0b3RhbF9wYWdlcyI6IDIwNDgy
62
+ MCwKICAgICJyZXN1bHRzX3Blcl9wYWdlIjogMQogIH0sCiAgImxvY2F0aW9u
63
+ cyI6IFsKICAgIHsKICAgICAgInNlYXJjaF9yZWxldmFuY2UiOiAxLjAsCiAg
64
+ ICAgICJwaHlzaWNhbF9sb2NhdGlvbiI6IHsKICAgICAgICAibG9jYXRpb25f
65
+ bmFtZSI6ICJTdW5iaXJkIENvbmRvJ3MiLAogICAgICAgICJ3ZWJfYWRkcmVz
66
+ cyI6ICJodHRwOi8vcGFuaGFuZGxlcGFyYXNhaWwuY29tIiwKICAgICAgICAi
67
+ ZGVzY3JpcHRpb24iOiAiIiwKICAgICAgICAibG9jYXRpb25fa2V5IjogNTE3
68
+ MzU3OCwKICAgICAgICAicGhvbmVfbnVtYmVyIjogIjg1MC0yNDktNzI0NSIs
69
+ CiAgICAgICAgInBvc3RhbF9jb2RlIjogIjMyNDA4IiwKICAgICAgICAiY291
70
+ bnRyeSI6ICJVUyIsCiAgICAgICAgInN0cmVldF9hZGRyZXNzIjogIjUyMDEg
71
+ TiBMYWdvb24gRHIiLAogICAgICAgICJleHRlbmRlZF9zdHJlZXRfYWRkcmVz
72
+ cyI6IG51bGwsCiAgICAgICAgImNpdHlfbG9jYWxpdHkiOiAiUGFuYW1hIENp
73
+ dHkgQmVhY2giLAogICAgICAgICJzdGF0ZV9yZWdpb24iOiAiRkwiLAogICAg
74
+ ICAgICJnZW9sb2NhdGlvbl9hcnJheSI6IFsKICAgICAgICAgIC04NS43NTI5
75
+ MiwKICAgICAgICAgIDMwLjE0ODA5CiAgICAgICAgXSwKICAgICAgICAiZ2Vv
76
+ bG9jYXRpb24iOiB7CiAgICAgICAgICAibGF0IjogMzAuMTQ4MDksCiAgICAg
77
+ ICAgICAibG9uIjogLTg1Ljc1MjkyCiAgICAgICAgfQogICAgICB9LAogICAg
78
+ ICAibG9jYXRpb25fc3RvcmUiOiB7CiAgICAgICAgIm5hbWUiOiAiUGFuaGFu
79
+ ZGxlIFBhcmFzYWlsIiwKICAgICAgICAiZGVzY3JpcHRpb24iOiAiUGFyYXNh
80
+ aWxpbmcgaGFzIGdvdCB0byBiZSB0aGUgbW9zdCBzcGVjdGFjdWxhciBhY3Rp
81
+ dml0eSB5b3UgY2FuIHBhcnRpY2lwYXRlIGluIGR1cmluZyB5b3VyIHN0YXkg
82
+ aW4gUGFuYW1hIENpdHkgQmVhY2guIEEgcGFyYXNhaWwgcmlkZSBpcyB0cnVs
83
+ eSBhIGJyZWF0aHRha2luZyBleHBlcmllbmNlIGFzIHlvdSBmbHkgaGlnaCBh
84
+ bmQgcGVhY2VmdWxseSBhYm92ZSB0aGUgd2hpdGUgc2FuZCBiZWFjaGVzIG9m
85
+ IFBhbmFtYSBDaXR5IG9yIFNoZWxsIElzbGFuZC4gUGFyYXNhaWxpbmcgaXMg
86
+ c2FmZSBmb3IgYWxsIGFnZXMuIFNvYXIgQWJvdmUgUGFuYW1hIENpdHkgQmVh
87
+ Y2ggYW5kIFNoZWxsIElzbGFuZCB3aXRoIG91ciBleHBlcmllbmNlZCBjcmV3
88
+ IGFuZCB0aGUgbGF0ZXN0IGluIGxpZnQtb2ZmIGFuZCBsYW5kaW5nIHRlY2hu
89
+ b2xvZ3kuIEZseSBhd2F5IGluIGVhc2UgYW5kIGNvbWZvcnQuIEFsb25lIG9y
90
+ IHdpdGggb25lIG9yIHR3byBjb21wYW5pb25zLCBpdCdzIGFuIGV4cGVyaWVu
91
+ Y2UgeW91J2xsIG5ldmVyIGZvcmdldCEgUGFyYXNhaWxpbmcgaXMgdGhlIHBl
92
+ cmZlY3QgdmFjYXRpb24gYWN0aXZpdHkgZm9yIGFueW9uZSDigJMgeW91bmcg
93
+ b3Igb2xkISIsCiAgICAgICAgInN0b3JlX2tleSI6IDY3NTM5OTU2CiAgICAg
94
+ IH0sCiAgICAgICJsb2NhdGlvbl9jYXRlZ29yaWVzIjogWwogICAgICAgIHsK
95
+ ICAgICAgICAgICJjYXRlZ29yeV9uYW1lIjogIk91dGRvb3IgQWR2ZW50dXJl
96
+ IiwKICAgICAgICAgICJjYXRlZ29yeV9rZXkiOiAxMDE2LAogICAgICAgICAg
97
+ ImNhdGVnb3J5X3BhcmVudF9rZXkiOiA1OSwKICAgICAgICAgICJjYXRlZ29y
98
+ eV9wYXJlbnRfbmFtZSI6ICJFbnRlcnRhaW5tZW50ICYgUmVjcmVhdGlvbiIs
99
+ CiAgICAgICAgICAiY2F0ZWdvcnlfdHlwZSI6ICJzdWJjYXRlZ29yeSIKICAg
100
+ ICAgICB9CiAgICAgIF0sCiAgICAgICJuYXRpb25hbCI6IGZhbHNlLAogICAg
101
+ ICAibG9nb191cmwiOiAiaHR0cHM6Ly9zdGF0aWMtZGVtby5hY2Nlc3NkZXZl
102
+ bG9wbWVudC5jb20vYnJhbmQvMDVmZjJhMWQwNGQ5YTMyZThiODNmM2RlN2Vm
103
+ MjNlYWE3YTUxZGI0OS9vcmlnaW5hbC5wbmciLAogICAgICAibG9jYXRpb25f
104
+ cGhvdG9zIjogWwoKICAgICAgXSwKICAgICAgImFjdGl2ZV9vZmZlcl9jb3Vu
105
+ dCI6IDEsCiAgICAgICJvZmZlcl9ncm91cF9rZXlzIjogWwogICAgICAgIDQx
106
+ MTk4NDAKICAgICAgXSwKICAgICAgImxpbmtzIjogewogICAgICAgICJzaG93
107
+ X2xvY2F0aW9uIjogImh0dHBzOi8vb2ZmZXItZGVtby5hZGNyd3MuY29tL3Yx
108
+ L2xvY2F0aW9ucy81MTczNTc4IiwKICAgICAgICAic2hvd19zdG9yZSI6ICJo
109
+ dHRwczovL29mZmVyLWRlbW8uYWRjcndzLmNvbS92MS9zdG9yZXMvNjc1Mzk5
110
+ NTYiLAogICAgICAgICJmaW5kX29mZmVyc19hdF90aGlzX2xvY2F0aW9uIjog
111
+ Imh0dHBzOi8vb2ZmZXItZGVtby5hZGNyd3MuY29tL3YxL29mZmVycz9sb2Nh
112
+ dGlvbl9rZXk9NTE3MzU3OCIKICAgICAgfQogICAgfQogIF0sCiAgImxpbmtz
113
+ IjogewogICAgIm5leHRfcGFnZSI6ICJodHRwczovL29mZmVyLWRlbW8uYWRj
114
+ cndzLmNvbS92MS9sb2NhdGlvbnM/bWVtYmVyX2tleT1BUElfUlVCWV9HRU1f
115
+ VEVTVCZwYWdlPTImcGVyX3BhZ2U9MSIKICB9Cn0=
374
116
  http_version:
375
- recorded_at: Fri, 11 Sep 2015 20:33:23 GMT
117
+ recorded_at: Wed, 16 Sep 2015 19:54:02 GMT
376
118
  recorded_with: VCR 2.9.3
@@ -1,310 +1,5 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: https://token-demo.adcrws.com/v1/oauth_applications?query=pizza
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Access-Token:
11
- - token_without_limit
12
- Content-Type:
13
- - application/json
14
- Accept:
15
- - application/json
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Access-Control-Allow-Headers:
22
- - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
23
- Access-Control-Allow-Methods:
24
- - POST, GET, PUT, DELETE, OPTIONS
25
- Access-Control-Max-Age:
26
- - '1728000'
27
- Access-Control-Request-Method:
28
- - GET
29
- Cache-Control:
30
- - max-age=0, private, must-revalidate
31
- Content-Type:
32
- - application/json
33
- Date:
34
- - Sat, 01 Aug 2015 03:53:57 GMT
35
- Etag:
36
- - '"f1d419c272d9447f94e71973ad66ddfd"'
37
- Server:
38
- - nginx/1.6.2
39
- Strict-Transport-Security:
40
- - max-age=31536000
41
- X-Content-Type-Options:
42
- - nosniff
43
- X-Frame-Options:
44
- - SAMEORIGIN
45
- X-Request-Id:
46
- - 9da518fa-992d-4eb6-8c15-cb8883892779
47
- X-Runtime:
48
- - '0.084186'
49
- X-Xss-Protection:
50
- - 1; mode=block
51
- Content-Length:
52
- - '5397'
53
- Connection:
54
- - keep-alive
55
- body:
56
- encoding: UTF-8
57
- string: |-
58
- {
59
- "info": {
60
- "total_results": 701,
61
- "results_per_page": 10,
62
- "current_page": 1,
63
- "total_pages": 71
64
- },
65
- "oauth_applications": [
66
- {
67
- "id": 22,
68
- "name": "American Grandparents Association",
69
- "owner_id": 235308134,
70
- "owner_type": "Program",
71
- "domain_urls": null,
72
- "scopes": [
73
- "api",
74
- "docs"
75
- ],
76
- "active_tokens": [
77
- "e4db3fb9a054e78807c431e837c49a59553c73204de91d404fe43d12c247f805"
78
- ],
79
- "filter": {
80
- "filter_id": 18,
81
- "filter_name": "Grandparents"
82
- },
83
- "links": {
84
- "show_application": "https://token-demo.adcrws.com/v1/oauth_applications/22"
85
- }
86
- },
87
- {
88
- "id": 31,
89
- "name": "IGIFT Back",
90
- "owner_id": 234482199,
91
- "owner_type": "Program",
92
- "domain_urls": "localhost, plus.igiftback.org, plus.igiftback.net",
93
- "scopes": [
94
- "api"
95
- ],
96
- "active_tokens": [
97
- "50e34a00a8a0a7468c2d408b3564c78416c7397fda95fcd391d2e0f139152f2c"
98
- ],
99
- "filter": {
100
- "filter_id": 39,
101
- "filter_name": "iGiftBack - Auto, Dining, Entertainment, Golf, Home/Garden, Movies, Services, Shopping, Instore Print ONLY"
102
- },
103
- "links": {
104
- "show_application": "https://token-demo.adcrws.com/v1/oauth_applications/31"
105
- }
106
- },
107
- {
108
- "id": 649,
109
- "name": "amt-test",
110
- "owner_id": 230907234,
111
- "owner_type": "Program",
112
- "domain_urls": null,
113
- "scopes": [
114
- "amt"
115
- ],
116
- "active_tokens": [
117
- "7a044e366ee35284cc57dd02f5468f2f96f411e0df09ea37dad36a3581e64510"
118
- ],
119
- "filter": {
120
- "filter_id": 16,
121
- "filter_name": "No Content Filter"
122
- },
123
- "links": {
124
- "show_application": "https://token-demo.adcrws.com/v1/oauth_applications/649"
125
- }
126
- },
127
- {
128
- "id": 32,
129
- "name": "Rewards for Recycling",
130
- "owner_id": 1090,
131
- "owner_type": "Program",
132
- "domain_urls": "www.rizzorewards.com,www.emterrarewards.com,r4rnet.com",
133
- "scopes": [
134
-
135
- ],
136
- "active_tokens": [
137
- "fab2e7ffa62f0059929fa8296ae0f82d96f33ec0aa51905d31fcb805e5d6fc5c",
138
- "b33f6659908758aee9132f7fac7f39ec93a4b6ee92f8201e06d5e39691ae20e2"
139
- ],
140
- "filter": {
141
- "filter_id": 33,
142
- "filter_name": "Auto, Car Rental, Cruise, Dining, Entertainment, Golf, Health/Beauty, Home/Garden, Hotel, Movies, Services, Shopping, Travel"
143
- },
144
- "links": {
145
- "show_application": "https://token-demo.adcrws.com/v1/oauth_applications/32"
146
- }
147
- },
148
- {
149
- "id": 653,
150
- "name": "DreamWorld",
151
- "owner_id": 339,
152
- "owner_type": "Program",
153
- "domain_urls": null,
154
- "scopes": [
155
-
156
- ],
157
- "active_tokens": [
158
- "2c863bc19218e8ad834b53b2c322c861ba0923173c082f8a83143a1cb33cc71c"
159
- ],
160
- "filter": {
161
- "filter_id": 38,
162
- "filter_name": "All Categories except EDUCATION ONLY"
163
- },
164
- "links": {
165
- "show_application": "https://token-demo.adcrws.com/v1/oauth_applications/653"
166
- }
167
- },
168
- {
169
- "id": 15,
170
- "name": "RetailMeNot",
171
- "owner_id": 191718123,
172
- "owner_type": "Program",
173
- "domain_urls": null,
174
- "scopes": [
175
-
176
- ],
177
- "active_tokens": [
178
- "d9bf1c1741f07b96389fae9377f54de3b237e0b64a1e3dc07f2615bd7fa5874d"
179
- ],
180
- "filter": {
181
- "filter_id": 14,
182
- "filter_name": "Retail Me Not"
183
- },
184
- "links": {
185
- "show_application": "https://token-demo.adcrws.com/v1/oauth_applications/15"
186
- }
187
- },
188
- {
189
- "id": 14,
190
- "name": "Viggle",
191
- "owner_id": 2192,
192
- "owner_type": "Program",
193
- "domain_urls": null,
194
- "scopes": [
195
- "api"
196
- ],
197
- "active_tokens": [
198
- "3ad8453fbb347995e648d8925c6582073d043b2dff2332082be90e5b9c23b440"
199
- ],
200
- "filter": {
201
- "filter_id": 13,
202
- "filter_name": "VIGGLE"
203
- },
204
- "links": {
205
- "show_application": "https://token-demo.adcrws.com/v1/oauth_applications/14"
206
- }
207
- },
208
- {
209
- "id": 18,
210
- "name": "SaveOn Resorts",
211
- "owner_id": 215,
212
- "owner_type": "Program",
213
- "domain_urls": null,
214
- "scopes": [
215
-
216
- ],
217
- "active_tokens": [
218
- "cec4ead0e094d3b27e2d82e8684503a6c2ccb2a01e27c3e8df107fc76cc4c372"
219
- ],
220
- "filter": null,
221
- "links": {
222
- "show_application": "https://token-demo.adcrws.com/v1/oauth_applications/18"
223
- }
224
- },
225
- {
226
- "id": 654,
227
- "name": "API CREATE TEST",
228
- "owner_id": 161,
229
- "owner_type": "Program",
230
- "domain_urls": null,
231
- "scopes": [
232
- "admin",
233
- "api",
234
- "public"
235
- ],
236
- "active_tokens": [
237
- "42502aed0cb85ed4df362ccb60ec431c70201bd51aa68afaf5570b5fcff3cc42"
238
- ],
239
- "filter": null,
240
- "links": {
241
- "show_application": "https://token-demo.adcrws.com/v1/oauth_applications/654"
242
- }
243
- },
244
- {
245
- "id": 655,
246
- "name": "TEST TEST",
247
- "owner_id": 1234,
248
- "owner_type": "Program",
249
- "domain_urls": null,
250
- "scopes": [
251
- "api"
252
- ],
253
- "active_tokens": [
254
- "7d584cd25a6ff1477d135d61e8132ef576b4da90cabed63b8bf1e3e98078db49"
255
- ],
256
- "filter": null,
257
- "links": {
258
- "show_application": "https://token-demo.adcrws.com/v1/oauth_applications/655"
259
- }
260
- }
261
- ],
262
- "links": {
263
- "next_page": "https://report-demo.adcrws.com/v1/oauth_applications?page=2"
264
- }
265
- }
266
- http_version:
267
- recorded_at: Sat, 01 Aug 2015 03:53:58 GMT
268
- - request:
269
- method: get
270
- uri: https://offer-demo.adcrws.com/v1/locations
271
- body:
272
- encoding: UTF-8
273
- string: query=pizza
274
- headers:
275
- Access-Token:
276
- - token_without_limit
277
- Content-Type:
278
- - application/json
279
- Accept:
280
- - application/json
281
- response:
282
- status:
283
- code: 400
284
- message: Bad Request
285
- headers:
286
- Content-Type:
287
- - application/json
288
- Date:
289
- - Thu, 06 Aug 2015 17:30:00 GMT
290
- Server:
291
- - nginx/1.6.2
292
- Strict-Transport-Security:
293
- - max-age=31536000
294
- X-Request-Id:
295
- - def56b52-a451-4b76-ab85-313ae8e5e77d
296
- X-Runtime:
297
- - '0.000289'
298
- Content-Length:
299
- - '112'
300
- Connection:
301
- - keep-alive
302
- body:
303
- encoding: UTF-8
304
- string: '{"status":400,"message":"There was a problem in the JSON you submitted:
305
- 795: unexpected token at ''query=pizza''"}'
306
- http_version:
307
- recorded_at: Thu, 06 Aug 2015 17:30:00 GMT
308
3
  - request:
309
4
  method: get
310
5
  uri: https://offer-demo.adcrws.com/v1/locations?query=pizza
@@ -313,7 +8,7 @@ http_interactions:
313
8
  string: ''
314
9
  headers:
315
10
  Access-Token:
316
- - token_without_limit
11
+ - token_without_filters
317
12
  Content-Type:
318
13
  - application/json
319
14
  Accept:
@@ -336,17 +31,21 @@ http_interactions:
336
31
  Content-Type:
337
32
  - application/json
338
33
  Date:
339
- - Fri, 11 Sep 2015 20:33:22 GMT
34
+ - Wed, 16 Sep 2015 19:54:03 GMT
340
35
  Server:
341
36
  - nginx/1.6.2
342
37
  X-Content-Type-Options:
343
38
  - nosniff
344
39
  X-Frame-Options:
345
40
  - SAMEORIGIN
41
+ X-Ratelimit-Limit:
42
+ - '1000'
43
+ X-Ratelimit-Remaining:
44
+ - '970'
346
45
  X-Request-Id:
347
- - 55ffa00c-8707-49e8-b831-e2f0c80e50c0
46
+ - ec39101c-c4e6-4397-930b-0d31bdd13e0a
348
47
  X-Runtime:
349
- - '0.008652'
48
+ - '0.010384'
350
49
  X-Xss-Protection:
351
50
  - 1; mode=block
352
51
  Content-Length:
@@ -361,5 +60,5 @@ http_interactions:
361
60
  "status": 401
362
61
  }
363
62
  http_version:
364
- recorded_at: Fri, 11 Sep 2015 20:33:22 GMT
63
+ recorded_at: Wed, 16 Sep 2015 19:54:03 GMT
365
64
  recorded_with: VCR 2.9.3