access 2.0.7 → 2.0.8

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.
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,135 +1,5 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: https://offer-demo.adcrws.com/v1/stores
6
- body:
7
- encoding: UTF-8
8
- string: member_key=guest&per_page=1
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: 400
19
- message: Bad Request
20
- headers:
21
- Content-Type:
22
- - application/json
23
- Date:
24
- - Thu, 06 Aug 2015 17:30:04 GMT
25
- Server:
26
- - nginx/1.6.2
27
- Strict-Transport-Security:
28
- - max-age=31536000
29
- X-Request-Id:
30
- - b6abf83a-99cc-41ea-9f71-964fc3848b23
31
- X-Runtime:
32
- - '0.000267'
33
- Content-Length:
34
- - '133'
35
- Connection:
36
- - keep-alive
37
- body:
38
- encoding: UTF-8
39
- string: '{"status":400,"message":"There was a problem in the JSON you submitted:
40
- 795: unexpected token at ''member_key=guest\u0026per_page=1''"}'
41
- http_version:
42
- recorded_at: Thu, 06 Aug 2015 17:30:04 GMT
43
- - request:
44
- method: get
45
- uri: https://offer-demo.adcrws.com/v1/stores?member_key=guest&per_page=1
46
- body:
47
- encoding: US-ASCII
48
- string: ''
49
- headers:
50
- Access-Token:
51
- - token_without_limit
52
- Content-Type:
53
- - application/json
54
- Accept:
55
- - application/json
56
- response:
57
- status:
58
- code: 200
59
- message: OK
60
- headers:
61
- Access-Control-Allow-Headers:
62
- - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
63
- Access-Control-Allow-Methods:
64
- - POST, GET, PUT, DELETE, OPTIONS
65
- Access-Control-Max-Age:
66
- - '1728000'
67
- Access-Control-Request-Method:
68
- - GET
69
- Cache-Control:
70
- - max-age=0, private, must-revalidate
71
- Content-Type:
72
- - application/json
73
- Date:
74
- - Thu, 06 Aug 2015 17:51:05 GMT
75
- Etag:
76
- - '"bc08b519982f4f9794d854e0f6ca9a67"'
77
- Server:
78
- - nginx/1.6.2
79
- Strict-Transport-Security:
80
- - max-age=31536000
81
- X-Content-Type-Options:
82
- - nosniff
83
- X-Frame-Options:
84
- - SAMEORIGIN
85
- X-Request-Id:
86
- - 0f8aa96a-3735-48e5-9ea6-1d06e9884b15
87
- X-Runtime:
88
- - '0.017632'
89
- X-Xss-Protection:
90
- - 1; mode=block
91
- Content-Length:
92
- - '1452'
93
- Connection:
94
- - keep-alive
95
- body:
96
- encoding: ASCII-8BIT
97
- string: !binary |-
98
- ewogICJpbmZvIjogewogICAgInRvdGFsX3Jlc3VsdHMiOiAyNTQyNCwKICAg
99
- ICJjdXJyZW50X3BhZ2UiOiAxLAogICAgInRvdGFsX3BhZ2VzIjogMjU0MjQs
100
- CiAgICAicmVzdWx0c19wZXJfcGFnZSI6IDEKICB9LAogICJzdG9yZXMiOiBb
101
- CiAgICB7CiAgICAgICJzZWFyY2hfcmVsZXZhbmNlIjogMS4wLAogICAgICAi
102
- c3RvcmVfa2V5IjogMjE5NTU4ODM1LAogICAgICAibmFtZSI6ICJDcmVla3dv
103
- b2QgVmV0ZXJpbmFyeSBIb3NwaXRhbCIsCiAgICAgICJkZXNjcmlwdGlvbiI6
104
- ICJDcmVla3dvb2QgVmV0ZXJpbmFyeSBIb3NwaXRhbMKgIHByb3ZpZGVzIG91
105
- dHN0YW5kaW5nIHZldGVyaW5hcnkgbWVkaWNhbCBhbmQgc3VyZ2ljYWwgY2Fy
106
- ZSwgaW5jbHVkaW5nIGxhc2VyIHN1cmdlcnkgYW5kIHRoZXJhcHkuIFNlcnZp
107
- Y2VzIGluY2x1ZGUgbWVkaWNpbmUsIGRpYWdub3N0aWNzLCBkZW50aXN0cnks
108
- IGxhc2VyIGFuZCBjb252ZW50aW9uYWwgc3VyZ2VyeSwgdGhlcmFwZXV0aWMg
109
- bGFzZXIgdHJlYXRtZW50LCBsaW1pdGVkIGdyb29taW5nLCBhbmQgcHJvZHVj
110
- dHMgZm9yIHBldCBoZWFsdGggY2FyZS4iLAogICAgICAibG9nb191cmwiOiAi
111
- aHR0cHM6Ly9zdGF0aWMtZGVtby5hY2Nlc3NkZXZlbG9wbWVudC5jb20vYnJh
112
- bmQvNTY5YWNhYTRlNGFmYjVjYzU4NDRmY2U1NmFlZmQ2ZDhhOTQxZTk4NC9v
113
- cmlnaW5hbC5wbmciLAogICAgICAibmF0aW9uYWwiOiBmYWxzZSwKICAgICAg
114
- ImFjdGl2ZV9sb2NhdGlvbl9jb3VudCI6IDEsCiAgICAgICJhY3RpdmVfb2Zm
115
- ZXJfY291bnQiOiAxLAogICAgICAic3RvcmVfY2F0ZWdvcmllcyI6IFsKICAg
116
- ICAgICB7CiAgICAgICAgICAiY2F0ZWdvcnlfbmFtZSI6ICJTZXJ2aWNlcyIs
117
- CiAgICAgICAgICAiY2F0ZWdvcnlfa2V5IjogNTAsCiAgICAgICAgICAiY2F0
118
- ZWdvcnlfcGFyZW50X2tleSI6IG51bGwsCiAgICAgICAgICAiY2F0ZWdvcnlf
119
- cGFyZW50X25hbWUiOiBudWxsLAogICAgICAgICAgImNhdGVnb3J5X3R5cGUi
120
- OiAiY2F0ZWdvcnkiCiAgICAgICAgfQogICAgICBdLAogICAgICAibGlua3Mi
121
- OiB7CiAgICAgICAgInNob3dfc3RvcmUiOiAiaHR0cHM6Ly9vZmZlci1kZW1v
122
- LmFkY3J3cy5jb20vdjEvc3RvcmVzLzIxOTU1ODgzNSIsCiAgICAgICAgImZp
123
- bmRfb2ZmZXJzX2Zvcl90aGlzX3N0b3JlIjogImh0dHBzOi8vb2ZmZXItZGVt
124
- by5hZGNyd3MuY29tL3YxL29mZmVycz9zdG9yZV9rZXk9MjE5NTU4ODM1IiwK
125
- ICAgICAgICAiZmluZF9sb2NhdGlvbnNfZm9yX3RoaXNfc3RvcmUiOiAiaHR0
126
- cHM6Ly9vZmZlci1kZW1vLmFkY3J3cy5jb20vdjEvbG9jYXRpb25zP3N0b3Jl
127
- X2tleT0yMTk1NTg4MzUiCiAgICAgIH0KICAgIH0KICBdLAogICJsaW5rcyI6
128
- IHsKICAgICJuZXh0X3BhZ2UiOiAiaHR0cHM6Ly9vZmZlci1kZW1vLmFkY3J3
129
- cy5jb20vdjEvc3RvcmVzP21lbWJlcl9rZXk9Z3Vlc3QmcGFnZT0yJnBlcl9w
130
- YWdlPTEiCiAgfQp9
131
- http_version:
132
- recorded_at: Thu, 06 Aug 2015 17:51:05 GMT
133
3
  - request:
134
4
  method: get
135
5
  uri: https://offer-demo.adcrws.com/v1/stores?member_key=API_RUBY_GEM_TEST&per_page=1
@@ -138,7 +8,7 @@ http_interactions:
138
8
  string: ''
139
9
  headers:
140
10
  Access-Token:
141
- - token_without_limit
11
+ - token_without_filters
142
12
  Content-Type:
143
13
  - application/json
144
14
  Accept:
@@ -161,7 +31,7 @@ http_interactions:
161
31
  Content-Type:
162
32
  - application/json
163
33
  Date:
164
- - Fri, 11 Sep 2015 20:33:22 GMT
34
+ - Wed, 16 Sep 2015 19:54:01 GMT
165
35
  Etag:
166
36
  - '"35ba8d15d7773b5a5f28410567cc8ae8"'
167
37
  Server:
@@ -170,10 +40,14 @@ http_interactions:
170
40
  - nosniff
171
41
  X-Frame-Options:
172
42
  - SAMEORIGIN
43
+ X-Ratelimit-Limit:
44
+ - '1000'
45
+ X-Ratelimit-Remaining:
46
+ - '976'
173
47
  X-Request-Id:
174
- - 9d6a6662-f1e4-4a1a-bbe1-7fa97fad1bdf
48
+ - 6c916ebb-c552-41c6-96be-e906e1b7df16
175
49
  X-Runtime:
176
- - '0.018896'
50
+ - '0.021473'
177
51
  X-Xss-Protection:
178
52
  - 1; mode=block
179
53
  Content-Length:
@@ -221,5 +95,5 @@ http_interactions:
221
95
  }
222
96
  }
223
97
  http_version:
224
- recorded_at: Fri, 11 Sep 2015 20:33:22 GMT
98
+ recorded_at: Wed, 16 Sep 2015 19:54:01 GMT
225
99
  recorded_with: VCR 2.9.3
@@ -1,45 +1,5 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: https://offer-demo.adcrws.com/v1/stores
6
- body:
7
- encoding: UTF-8
8
- string: query=pizza
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: 400
19
- message: Bad Request
20
- headers:
21
- Content-Type:
22
- - application/json
23
- Date:
24
- - Thu, 06 Aug 2015 17:30:03 GMT
25
- Server:
26
- - nginx/1.6.2
27
- Strict-Transport-Security:
28
- - max-age=31536000
29
- X-Request-Id:
30
- - 44e0c22c-e86d-46a1-8bcf-078bd1b391d1
31
- X-Runtime:
32
- - '0.000240'
33
- Content-Length:
34
- - '112'
35
- Connection:
36
- - keep-alive
37
- body:
38
- encoding: UTF-8
39
- string: '{"status":400,"message":"There was a problem in the JSON you submitted:
40
- 795: unexpected token at ''query=pizza''"}'
41
- http_version:
42
- recorded_at: Thu, 06 Aug 2015 17:30:03 GMT
43
3
  - request:
44
4
  method: get
45
5
  uri: https://offer-demo.adcrws.com/v1/stores?query=pizza
@@ -48,7 +8,7 @@ http_interactions:
48
8
  string: ''
49
9
  headers:
50
10
  Access-Token:
51
- - token_without_limit
11
+ - token_without_filters
52
12
  Content-Type:
53
13
  - application/json
54
14
  Accept:
@@ -71,17 +31,21 @@ http_interactions:
71
31
  Content-Type:
72
32
  - application/json
73
33
  Date:
74
- - Fri, 11 Sep 2015 20:33:21 GMT
34
+ - Wed, 16 Sep 2015 19:54:01 GMT
75
35
  Server:
76
36
  - nginx/1.6.2
77
37
  X-Content-Type-Options:
78
38
  - nosniff
79
39
  X-Frame-Options:
80
40
  - SAMEORIGIN
41
+ X-Ratelimit-Limit:
42
+ - '1000'
43
+ X-Ratelimit-Remaining:
44
+ - '975'
81
45
  X-Request-Id:
82
- - 279a5614-58ab-4dce-b52a-879b47fd2d76
46
+ - e5f15617-cefb-4c01-81bf-e2398be06569
83
47
  X-Runtime:
84
- - '0.008999'
48
+ - '0.011506'
85
49
  X-Xss-Protection:
86
50
  - 1; mode=block
87
51
  Content-Length:
@@ -96,5 +60,5 @@ http_interactions:
96
60
  "status": 401
97
61
  }
98
62
  http_version:
99
- recorded_at: Fri, 11 Sep 2015 20:33:21 GMT
63
+ recorded_at: Wed, 16 Sep 2015 19:54:01 GMT
100
64
  recorded_with: VCR 2.9.3
@@ -1,145 +1,5 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: https://offer-demo.adcrws.com/v1/categories/1000?member_key=guest
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
- - Thu, 06 Aug 2015 17:51:01 GMT
35
- Etag:
36
- - '"2ded6201c8066957f09645cfbac4b1a6"'
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
- - 6d6c6466-3aad-4038-8fdb-366607eb895a
47
- X-Runtime:
48
- - '0.021030'
49
- X-Xss-Protection:
50
- - 1; mode=block
51
- Content-Length:
52
- - '3360'
53
- Connection:
54
- - keep-alive
55
- body:
56
- encoding: UTF-8
57
- string: |-
58
- {
59
- "categories": [
60
- {
61
- "category_name": "Auto Body & Paint",
62
- "category_key": 1000,
63
- "category_type": "subcategory",
64
- "category_parent_name": "Automotive",
65
- "category_parent_key": 51,
66
- "links": {
67
- "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
68
- "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1000"
69
- },
70
- "subcategory_siblings": [
71
- {
72
- "category_name": "Auto Parts",
73
- "category_key": 1001,
74
- "category_type": "subcategory",
75
- "category_parent_key": 51,
76
- "links": {
77
- "show_category": "https://offer-demo.adcrws.com/v1/categories/1001",
78
- "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
79
- "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1001"
80
- }
81
- },
82
- {
83
- "category_name": "Auto Service & Repair",
84
- "category_key": 1002,
85
- "category_type": "subcategory",
86
- "category_parent_key": 51,
87
- "links": {
88
- "show_category": "https://offer-demo.adcrws.com/v1/categories/1002",
89
- "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
90
- "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1002"
91
- }
92
- },
93
- {
94
- "category_name": "Car Wash & Detail",
95
- "category_key": 1003,
96
- "category_type": "subcategory",
97
- "category_parent_key": 51,
98
- "links": {
99
- "show_category": "https://offer-demo.adcrws.com/v1/categories/1003",
100
- "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
101
- "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1003"
102
- }
103
- },
104
- {
105
- "category_name": "Gas Station",
106
- "category_key": 1004,
107
- "category_type": "subcategory",
108
- "category_parent_key": 51,
109
- "links": {
110
- "show_category": "https://offer-demo.adcrws.com/v1/categories/1004",
111
- "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
112
- "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1004"
113
- }
114
- },
115
- {
116
- "category_name": "Tires",
117
- "category_key": 1005,
118
- "category_type": "subcategory",
119
- "category_parent_key": 51,
120
- "links": {
121
- "show_category": "https://offer-demo.adcrws.com/v1/categories/1005",
122
- "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
123
- "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1005"
124
- }
125
- },
126
- {
127
- "category_name": "Auto Sales & Warranties",
128
- "category_key": 1006,
129
- "category_type": "subcategory",
130
- "category_parent_key": 51,
131
- "links": {
132
- "show_category": "https://offer-demo.adcrws.com/v1/categories/1006",
133
- "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
134
- "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1006"
135
- }
136
- }
137
- ]
138
- }
139
- ]
140
- }
141
- http_version:
142
- recorded_at: Thu, 06 Aug 2015 17:51:01 GMT
143
3
  - request:
144
4
  method: get
145
5
  uri: https://offer-demo.adcrws.com/v1/categories/1000?member_key=API_RUBY_GEM_TEST
@@ -148,7 +8,7 @@ http_interactions:
148
8
  string: ''
149
9
  headers:
150
10
  Access-Token:
151
- - token_without_limit
11
+ - token_without_filters
152
12
  Content-Type:
153
13
  - application/json
154
14
  Accept:
@@ -171,7 +31,7 @@ http_interactions:
171
31
  Content-Type:
172
32
  - application/json
173
33
  Date:
174
- - Fri, 11 Sep 2015 20:33:18 GMT
34
+ - Wed, 16 Sep 2015 19:54:08 GMT
175
35
  Etag:
176
36
  - '"3b24a9589e2b3a60e10a64353bf6118c"'
177
37
  Server:
@@ -180,10 +40,14 @@ http_interactions:
180
40
  - nosniff
181
41
  X-Frame-Options:
182
42
  - SAMEORIGIN
43
+ X-Ratelimit-Limit:
44
+ - '1000'
45
+ X-Ratelimit-Remaining:
46
+ - '964'
183
47
  X-Request-Id:
184
- - bd632205-475e-457c-ad4d-6e049c077827
48
+ - 31700876-1873-41da-a2ac-9c89d7493557
185
49
  X-Runtime:
186
- - '0.026710'
50
+ - '0.030884'
187
51
  X-Xss-Protection:
188
52
  - 1; mode=block
189
53
  Content-Length:
@@ -284,5 +148,5 @@ http_interactions:
284
148
  ]
285
149
  }
286
150
  http_version:
287
- recorded_at: Fri, 11 Sep 2015 20:33:18 GMT
151
+ recorded_at: Wed, 16 Sep 2015 19:54:08 GMT
288
152
  recorded_with: VCR 2.9.3
@@ -2,163 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://token-demo.adcrws.com/v1/tokens/941
5
+ uri: https://token-demo.adcrws.com/v1/tokens/6a83e8e361cdd3eba145ccbabf05e65e8f3fa15544f808caa44aaf7f43e13e1f
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  Access-Token:
11
- - token_without_limit
12
- Content-Type:
13
- - application/json
14
- Accept:
15
- - application/json
16
- response:
17
- status:
18
- code: 422
19
- message: Unprocessable Entity
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
- - no-cache
31
- Content-Type:
32
- - application/json
33
- Date:
34
- - Fri, 07 Aug 2015 16:34:02 GMT
35
- Server:
36
- - nginx/1.6.2
37
- Strict-Transport-Security:
38
- - max-age=31536000
39
- X-Content-Type-Options:
40
- - nosniff
41
- X-Frame-Options:
42
- - SAMEORIGIN
43
- X-Request-Id:
44
- - 16d445f1-8383-46da-b02a-75849536b08b
45
- X-Runtime:
46
- - '0.014046'
47
- X-Xss-Protection:
48
- - 1; mode=block
49
- Content-Length:
50
- - '56'
51
- Connection:
52
- - keep-alive
53
- body:
54
- encoding: UTF-8
55
- string: |-
56
- {
57
- "message": "Token not found: 941",
58
- "status": 422
59
- }
60
- http_version:
61
- recorded_at: Fri, 07 Aug 2015 16:34:02 GMT
62
- - request:
63
- method: get
64
- uri: https://token-demo.adcrws.com/v1/tokens/ec394658d69d9aea0d6de68a51b801523dac578caf91ae4d9fbc5fe9a1ffcd33
65
- body:
66
- encoding: US-ASCII
67
- string: ''
68
- headers:
69
- Access-Token:
70
- - token_without_limit
71
- Content-Type:
72
- - application/json
73
- Accept:
74
- - application/json
75
- response:
76
- status:
77
- code: 200
78
- message: OK
79
- headers:
80
- Access-Control-Allow-Headers:
81
- - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
82
- Access-Control-Allow-Methods:
83
- - POST, GET, PUT, DELETE, OPTIONS
84
- Access-Control-Max-Age:
85
- - '1728000'
86
- Access-Control-Request-Method:
87
- - GET
88
- Cache-Control:
89
- - max-age=0, private, must-revalidate
90
- Content-Type:
91
- - application/json
92
- Date:
93
- - Fri, 07 Aug 2015 16:56:22 GMT
94
- Etag:
95
- - '"2e3fd95c8eccb9e493ba6f48dfd991e3"'
96
- Server:
97
- - nginx/1.6.2
98
- Strict-Transport-Security:
99
- - max-age=31536000
100
- X-Content-Type-Options:
101
- - nosniff
102
- X-Frame-Options:
103
- - SAMEORIGIN
104
- X-Request-Id:
105
- - ea7fd0cf-b13f-4f3a-8cb2-5f1d52c8c687
106
- X-Runtime:
107
- - '0.011826'
108
- X-Xss-Protection:
109
- - 1; mode=block
110
- Content-Length:
111
- - '1473'
112
- Connection:
113
- - keep-alive
114
- body:
115
- encoding: UTF-8
116
- string: |-
117
- {
118
- "oauth_token": {
119
- "application_id": 824,
120
- "token": "ec394658d69d9aea0d6de68a51b801523dac578caf91ae4d9fbc5fe9a1ffcd33",
121
- "expires_in": null,
122
- "revoked_at": null,
123
- "created_at": "2015-08-04T10:14:54.011-06:00",
124
- "oauth_access_token_id": 941,
125
- "application_name": "Savings.com (pcid:200089)",
126
- "application_owner_id": 235589788,
127
- "application_owner_type": "Program",
128
- "program_id": 235589788,
129
- "program_name": "Savings.com",
130
- "program_customer_identifier": "200089",
131
- "program_start_dts": "2015-08-04T10:15:40.012-06:00",
132
- "program_end_dts": "2018-08-04T10:15:40.012-06:00",
133
- "organization_id": 2002086,
134
- "organization_name": "Savings.com",
135
- "organization_customer_identifier": "2002086",
136
- "filter_id": 38,
137
- "filter_name": "All Categories except EDUCATION ONLY",
138
- "filter": "{\"offers\":[{\"not\":{\"or\":[{\"terms\":{\"categories.category_key\":[1113]}},{\"terms\":{\"categories.category_parent_key\":[1113]}}]}}],\"categories\":[{\"not\":{\"or\":[{\"terms\":{\"category_key\":[1113]}},{\"terms\":{\"category_parent_key\":[1113]}}]}}],\"stores\":[{\"not\":{\"or\":[{\"terms\":{\"store_categories.category_key\":[1113]}},{\"terms\":{\"store_categories.category_parent_key\":[1113]}}]}}]}",
139
- "program_filter_id": 157,
140
- "domains": [
141
- "*.showitandsave.com"
142
- ],
143
- "application_scopes": [
144
- "api",
145
- "docs"
146
- ],
147
- "indexed_at": "2015-08-04T19:20:08.365Z",
148
- "token_status": "valid"
149
- }
150
- }
151
- http_version:
152
- recorded_at: Fri, 07 Aug 2015 16:56:23 GMT
153
- - request:
154
- method: get
155
- uri: https://token-demo.adcrws.com/v1/tokens/fcf4e7ee693a61155d1a40a0ca7577cc95ec785742a0ca295503185e290711e4
156
- body:
157
- encoding: US-ASCII
158
- string: ''
159
- headers:
160
- Access-Token:
161
- - token_without_limit
11
+ - token_without_filters
162
12
  Content-Type:
163
13
  - application/json
164
14
  Accept:
@@ -181,25 +31,27 @@ http_interactions:
181
31
  Content-Type:
182
32
  - application/json
183
33
  Date:
184
- - Wed, 12 Aug 2015 17:46:36 GMT
34
+ - Wed, 16 Sep 2015 19:54:09 GMT
185
35
  Etag:
186
- - '"459e7da3098aceaf5599a480d73ceccd"'
36
+ - '"394386753817095196c45e221b2139ff"'
187
37
  Server:
188
38
  - nginx/1.6.2
189
- Strict-Transport-Security:
190
- - max-age=31536000
191
39
  X-Content-Type-Options:
192
40
  - nosniff
193
41
  X-Frame-Options:
194
42
  - SAMEORIGIN
43
+ X-Ratelimit-Limit:
44
+ - '1000'
45
+ X-Ratelimit-Remaining:
46
+ - '960'
195
47
  X-Request-Id:
196
- - 867adab5-e81f-455d-8b52-c010560664c7
48
+ - 80f2cba9-6172-451c-9e8c-7f2b548dcd02
197
49
  X-Runtime:
198
- - '0.014934'
50
+ - '0.015326'
199
51
  X-Xss-Protection:
200
52
  - 1; mode=block
201
53
  Content-Length:
202
- - '1530'
54
+ - '979'
203
55
  Connection:
204
56
  - keep-alive
205
57
  body:
@@ -207,115 +59,23 @@ http_interactions:
207
59
  string: |-
208
60
  {
209
61
  "oauth_token": {
210
- "application_id": 825,
211
- "token": "fcf4e7ee693a61155d1a40a0ca7577cc95ec785742a0ca295503185e290711e4",
62
+ "application_id": 837,
63
+ "token": "6a83e8e361cdd3eba145ccbabf05e65e8f3fa15544f808caa44aaf7f43e13e1f",
212
64
  "expires_in": null,
213
65
  "revoked_at": null,
214
- "created_at": "2015-08-11T15:54:04.086-06:00",
215
- "oauth_access_token_id": 942,
216
- "application_name": "Loylogic (pcid:200090)",
217
- "application_owner_id": 235589794,
66
+ "created_at": "2015-09-16T11:50:27.755-06:00",
67
+ "oauth_access_token_id": 959,
68
+ "application_name": "Breakaway Loyalty (pcid: 8983)",
69
+ "application_owner_id": 487,
218
70
  "application_owner_type": "Program",
219
- "program_id": 235589794,
220
- "program_name": "Loylogic",
221
- "program_customer_identifier": "200090",
222
- "program_start_dts": "2015-08-11T15:54:45.783-06:00",
223
- "program_end_dts": "2018-08-11T15:54:45.783-06:00",
224
- "organization_id": 2001157,
225
- "organization_name": "Loylogic",
226
- "organization_customer_identifier": "2001157",
227
- "filter_id": 35,
228
- "filter_name": "Dining, Entertainment, Health/Beauty, Hotel, Services, Shopping",
229
- "filter": "{\"offers\":[{\"or\":[{\"terms\":{\"categories.category_key\":[39,59,53,44,50,45]}},{\"terms\":{\"categories.category_parent_key\":[39,59,53,44,50,45]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[39,59,53,44,50,45]}},{\"terms\":{\"category_parent_key\":[39,59,53,44,50,45]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[39,59,53,44,50,45]}},{\"terms\":{\"store_categories.category_parent_key\":[39,59,53,44,50,45]}}]}]}",
230
- "program_filter_id": 158,
231
- "domains": [
232
-
233
- ],
234
- "application_scopes": [
235
- "api",
236
- "docs",
237
- "internal"
238
- ],
239
- "indexed_at": "2015-08-12T14:08:41.744Z",
240
- "token_status": "valid"
241
- }
242
- }
243
- http_version:
244
- recorded_at: Wed, 12 Aug 2015 17:46:36 GMT
245
- - request:
246
- method: get
247
- uri: https://token-demo.adcrws.com/v1/tokens/aa6f03c7f3a497fea502bf97fe72817b8e20d7dd30919c237e14ed4fdf38cb4d
248
- body:
249
- encoding: US-ASCII
250
- string: ''
251
- headers:
252
- Access-Token:
253
- - token_without_limit
254
- Content-Type:
255
- - application/json
256
- Accept:
257
- - application/json
258
- response:
259
- status:
260
- code: 200
261
- message: OK
262
- headers:
263
- Access-Control-Allow-Headers:
264
- - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
265
- Access-Control-Allow-Methods:
266
- - POST, GET, PUT, DELETE, OPTIONS
267
- Access-Control-Max-Age:
268
- - '1728000'
269
- Access-Control-Request-Method:
270
- - GET
271
- Cache-Control:
272
- - max-age=0, private, must-revalidate
273
- Content-Type:
274
- - application/json
275
- Date:
276
- - Thu, 27 Aug 2015 20:17:43 GMT
277
- Etag:
278
- - '"0b331a895a257d29aff66f2fd7971963"'
279
- Server:
280
- - nginx/1.6.2
281
- Strict-Transport-Security:
282
- - max-age=31536000
283
- X-Content-Type-Options:
284
- - nosniff
285
- X-Frame-Options:
286
- - SAMEORIGIN
287
- X-Request-Id:
288
- - 0d9d878b-dc0c-4db5-93c8-a37fa60fc7d7
289
- X-Runtime:
290
- - '0.013664'
291
- X-Xss-Protection:
292
- - 1; mode=block
293
- Content-Length:
294
- - '1015'
295
- Connection:
296
- - keep-alive
297
- body:
298
- encoding: UTF-8
299
- string: |-
300
- {
301
- "oauth_token": {
302
- "application_id": 831,
303
- "token": "aa6f03c7f3a497fea502bf97fe72817b8e20d7dd30919c237e14ed4fdf38cb4d",
304
- "expires_in": null,
305
- "revoked_at": null,
306
- "created_at": "2015-08-25T14:06:53.316-06:00",
307
- "oauth_access_token_id": 954,
308
- "application_name": "RWS API - No Filters No Limit (pcid:200156)",
309
- "application_owner_id": 235589813,
310
- "application_owner_type": "Program",
311
- "program_id": 235589813,
312
- "program_name": "RWS API - No Filters No Limit",
313
- "program_customer_identifier": "200156",
314
- "program_start_dts": "2015-08-25T13:21:27.622-06:00",
315
- "program_end_dts": "2018-08-25T13:21:27.622-06:00",
316
- "organization_id": 160,
317
- "organization_name": "Access Development",
318
- "organization_customer_identifier": "160",
71
+ "program_id": 487,
72
+ "program_name": "Breakaway Loyalty",
73
+ "program_customer_identifier": "8983",
74
+ "program_start_dts": "2012-04-12T15:10:31.634-06:00",
75
+ "program_end_dts": "2018-12-30T17:00:00.000-07:00",
76
+ "organization_id": 2000153,
77
+ "organization_name": "BreakawaLoyalty",
78
+ "organization_customer_identifier": "WEivv",
319
79
  "filter_id": null,
320
80
  "filter_name": null,
321
81
  "filter": null,
@@ -326,99 +86,10 @@ http_interactions:
326
86
  "application_scopes": [
327
87
 
328
88
  ],
329
- "indexed_at": "2015-08-25T20:09:31.012Z",
330
- "token_status": "valid"
331
- }
332
- }
333
- http_version:
334
- recorded_at: Thu, 27 Aug 2015 20:17:44 GMT
335
- - request:
336
- method: get
337
- uri: https://token-demo.adcrws.com/v1/tokens/fb6e8034ec9970144e4e68eb3c8c7e84041695626eb3bbeac53a8335bf4cba68
338
- body:
339
- encoding: US-ASCII
340
- string: ''
341
- headers:
342
- Access-Token:
343
- - token_without_limit
344
- Content-Type:
345
- - application/json
346
- Accept:
347
- - application/json
348
- response:
349
- status:
350
- code: 200
351
- message: OK
352
- headers:
353
- Access-Control-Allow-Headers:
354
- - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
355
- Access-Control-Allow-Methods:
356
- - POST, GET, PUT, DELETE, OPTIONS
357
- Access-Control-Max-Age:
358
- - '1728000'
359
- Access-Control-Request-Method:
360
- - GET
361
- Cache-Control:
362
- - max-age=0, private, must-revalidate
363
- Content-Type:
364
- - application/json
365
- Date:
366
- - Fri, 11 Sep 2015 20:33:08 GMT
367
- Etag:
368
- - '"93cb5c6783a6c532d926e52e793451af"'
369
- Server:
370
- - nginx/1.6.2
371
- X-Content-Type-Options:
372
- - nosniff
373
- X-Frame-Options:
374
- - SAMEORIGIN
375
- X-Request-Id:
376
- - 9eb7291d-261f-41db-a4a3-777a44a5809e
377
- X-Runtime:
378
- - '0.016039'
379
- X-Xss-Protection:
380
- - 1; mode=block
381
- Transfer-Encoding:
382
- - chunked
383
- Connection:
384
- - keep-alive
385
- body:
386
- encoding: UTF-8
387
- string: |-
388
- {
389
- "oauth_token": {
390
- "application_id": 836,
391
- "token": "fb6e8034ec9970144e4e68eb3c8c7e84041695626eb3bbeac53a8335bf4cba68",
392
- "expires_in": null,
393
- "revoked_at": null,
394
- "created_at": "2015-09-08T11:02:21.256-06:00",
395
- "oauth_access_token_id": 958,
396
- "application_name": "Essenza Software (pcid:200110)",
397
- "application_owner_id": 235589831,
398
- "application_owner_type": "Program",
399
- "program_id": 235589831,
400
- "program_name": "Essenza Software",
401
- "program_customer_identifier": "200110",
402
- "program_start_dts": "2015-09-08T11:02:45.215-06:00",
403
- "program_end_dts": "2018-09-08T11:02:45.215-06:00",
404
- "organization_id": 2002090,
405
- "organization_name": "Essenza Software",
406
- "organization_customer_identifier": "147852",
407
- "filter_id": 82,
408
- "filter_name": "Auto, Dining, Entertainment, Golf, Health/Beauty, Home/Garden, Hotel, Movies, Services, Shopping, Travel",
409
- "filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,39,59,48,53,1039,44,56,50,45,38]}},{\"terms\":{\"categories.category_parent_key\":[51,39,59,48,53,1039,44,56,50,45,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,39,59,48,53,1039,44,56,50,45,38]}},{\"terms\":{\"category_parent_key\":[51,39,59,48,53,1039,44,56,50,45,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,39,59,48,53,1039,44,56,50,45,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,39,59,48,53,1039,44,56,50,45,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,39,59,48,53,1039,44,56,50,45,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,39,59,48,53,1039,44,56,50,45,38]}}]}]}",
410
- "program_filter_id": 168,
411
- "domains": [
412
-
413
- ],
414
- "application_scopes": [
415
- "api",
416
- "docs"
417
- ],
418
- "indexed_at": "2015-09-08T17:06:31.036Z",
89
+ "indexed_at": "2015-09-16T17:50:06.034Z",
419
90
  "token_status": "valid"
420
91
  }
421
92
  }
422
93
  http_version:
423
- recorded_at: Fri, 11 Sep 2015 20:33:08 GMT
94
+ recorded_at: Wed, 16 Sep 2015 19:54:09 GMT
424
95
  recorded_with: VCR 2.9.3