access 1.1.7 → 2.0.0

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 (83) hide show
  1. checksums.yaml +4 -4
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +2 -0
  4. data/.travis.yml +12 -0
  5. data/Guardfile +7 -0
  6. data/README.md +159 -23
  7. data/Rakefile +13 -0
  8. data/access.gemspec +6 -1
  9. data/bin/console +14 -0
  10. data/bin/setup +7 -0
  11. data/lib/access.rb +21 -10
  12. data/lib/access/api.rb +188 -64
  13. data/lib/access/autocomplete.rb +11 -0
  14. data/lib/access/campaign.rb +24 -0
  15. data/lib/access/category.rb +16 -2
  16. data/lib/access/channel.rb +24 -0
  17. data/lib/access/city_savings.rb +16 -0
  18. data/lib/access/config.rb +8 -7
  19. data/lib/access/error.rb +8 -2
  20. data/lib/access/filter.rb +30 -2
  21. data/lib/access/info.rb +13 -0
  22. data/lib/access/link.rb +17 -0
  23. data/lib/access/location.rb +17 -2
  24. data/lib/access/member.rb +11 -0
  25. data/lib/access/oauth_application.rb +31 -0
  26. data/lib/access/offer.rb +24 -20
  27. data/lib/access/redeem.rb +11 -4
  28. data/lib/access/report.rb +10 -0
  29. data/lib/access/request.rb +25 -20
  30. data/lib/access/response.rb +127 -0
  31. data/lib/access/spot.rb +28 -0
  32. data/lib/access/store.rb +16 -2
  33. data/lib/access/token.rb +18 -0
  34. data/lib/access/verify.rb +11 -2
  35. data/lib/access/version.rb +1 -1
  36. data/test/access/autocomplete_test.rb +53 -0
  37. data/test/access/category_test.rb +64 -0
  38. data/test/access/city_savings_test.rb +5 -0
  39. data/test/access/filter_test.rb +40 -0
  40. data/test/access/location_test.rb +59 -0
  41. data/test/access/member_test.rb +5 -0
  42. data/test/access/oauth_application_test.rb +91 -0
  43. data/test/access/offer_test.rb +71 -0
  44. data/test/access/redeem_test.rb +38 -0
  45. data/test/access/report_test.rb +36 -0
  46. data/test/access/store_test.rb +65 -0
  47. data/test/access/token_test.rb +35 -0
  48. data/test/access/verify_test.rb +29 -0
  49. data/test/access/version_test.rb +9 -0
  50. data/test/fixtures/autocomplete_search.yml +207 -0
  51. data/test/fixtures/autocomplete_search_categories.yml +181 -0
  52. data/test/fixtures/autocomplete_search_locations.yml +173 -0
  53. data/test/fixtures/autocomplete_search_offers.yml +181 -0
  54. data/test/fixtures/autocomplete_search_stores.yml +185 -0
  55. data/test/fixtures/category_find.yml +303 -0
  56. data/test/fixtures/category_search.yml +683 -0
  57. data/test/fixtures/category_search_fail_member_key.yml +102 -0
  58. data/test/fixtures/filter_find.yml +70 -0
  59. data/test/fixtures/filter_search.yml +195 -0
  60. data/test/fixtures/location_find.yml +923 -0
  61. data/test/fixtures/location_search.yml +378 -0
  62. data/test/fixtures/location_search_fail_member_key.yml +367 -0
  63. data/test/fixtures/national_stores.yml +4135 -0
  64. data/test/fixtures/oauth_application_find.yml +163 -0
  65. data/test/fixtures/oauth_application_search.yml +134 -0
  66. data/test/fixtures/oauth_application_search_fail_member_key.yml +268 -0
  67. data/test/fixtures/oauth_application_token_find.yml +249 -0
  68. data/test/fixtures/oauth_application_token_search.yml +98 -0
  69. data/test/fixtures/offer_find.yml +683 -0
  70. data/test/fixtures/offer_search.yml +329 -0
  71. data/test/fixtures/offer_search_fail_member_key.yml +102 -0
  72. data/test/fixtures/redeem_offer_no_redeem_type.yml +423 -0
  73. data/test/fixtures/store_find.yml +333 -0
  74. data/test/fixtures/store_search.yml +227 -0
  75. data/test/fixtures/store_search_fail_member_key.yml +102 -0
  76. data/test/fixtures/subcategory_find.yml +283 -0
  77. data/test/fixtures/token_find.yml +245 -0
  78. data/test/fixtures/token_search.yml +301 -0
  79. data/test/fixtures/verify_filter.yml +290 -0
  80. data/test/fixtures/verify_token.yml +78 -0
  81. data/test/test_helper.rb +15 -0
  82. metadata +183 -11
  83. data/test/offers/offer_test.rb +0 -5
@@ -0,0 +1,181 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://offer-demo.adcrws.com/v1/autocomplete
6
+ body:
7
+ encoding: UTF-8
8
+ string: member_key=guest&per_page=1&resources=offers
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:02 GMT
25
+ Server:
26
+ - nginx/1.6.2
27
+ Strict-Transport-Security:
28
+ - max-age=31536000
29
+ X-Request-Id:
30
+ - aaa0b7de-1e18-49d7-8b18-16aac7b7964b
31
+ X-Runtime:
32
+ - '0.000492'
33
+ Content-Length:
34
+ - '155'
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\u0026resources=offers''"}'
41
+ http_version:
42
+ recorded_at: Thu, 06 Aug 2015 17:30:02 GMT
43
+ - request:
44
+ method: get
45
+ uri: https://offer-demo.adcrws.com/v1/autocomplete?member_key=guest&per_page=1&resources=offers
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:03 GMT
75
+ Etag:
76
+ - '"737fe2953dc52776edffd3b82e90d9c7"'
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
+ - 91b08a02-74aa-4680-b2f3-e27715929d92
87
+ X-Runtime:
88
+ - '0.021640'
89
+ X-Xss-Protection:
90
+ - 1; mode=block
91
+ Content-Length:
92
+ - '324'
93
+ Connection:
94
+ - keep-alive
95
+ body:
96
+ encoding: UTF-8
97
+ string: |-
98
+ {
99
+ "suggestions": {
100
+ "query": "*",
101
+ "offers": [
102
+ {
103
+ "offer_name": "$10 off orders of $100 or more on Hockey Jerseys and apparel.",
104
+ "offer_key": 13270045,
105
+ "logo_url": "https://static-demo.accessdevelopment.com/brand/7f9fa6edc2308ae695aa8f43be8c4afa37812dfc/original.png"
106
+ }
107
+ ]
108
+ }
109
+ }
110
+ http_version:
111
+ recorded_at: Thu, 06 Aug 2015 17:51:03 GMT
112
+ - request:
113
+ method: get
114
+ uri: https://offer-demo.adcrws.com/v1/autocomplete?member_key=API_RUBY_GEM_TEST&per_page=1&resources=offers
115
+ body:
116
+ encoding: US-ASCII
117
+ string: ''
118
+ headers:
119
+ Access-Token:
120
+ - token_without_limit
121
+ Content-Type:
122
+ - application/json
123
+ Accept:
124
+ - application/json
125
+ response:
126
+ status:
127
+ code: 200
128
+ message: OK
129
+ headers:
130
+ Access-Control-Allow-Headers:
131
+ - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
132
+ Access-Control-Allow-Methods:
133
+ - POST, GET, PUT, DELETE, OPTIONS
134
+ Access-Control-Max-Age:
135
+ - '1728000'
136
+ Access-Control-Request-Method:
137
+ - GET
138
+ Cache-Control:
139
+ - max-age=0, private, must-revalidate
140
+ Content-Type:
141
+ - application/json
142
+ Date:
143
+ - Wed, 12 Aug 2015 17:46:44 GMT
144
+ Etag:
145
+ - '"737fe2953dc52776edffd3b82e90d9c7"'
146
+ Server:
147
+ - nginx/1.6.2
148
+ Strict-Transport-Security:
149
+ - max-age=31536000
150
+ X-Content-Type-Options:
151
+ - nosniff
152
+ X-Frame-Options:
153
+ - SAMEORIGIN
154
+ X-Request-Id:
155
+ - e15c489f-3d0b-4028-a199-19a6797581cc
156
+ X-Runtime:
157
+ - '0.020520'
158
+ X-Xss-Protection:
159
+ - 1; mode=block
160
+ Content-Length:
161
+ - '324'
162
+ Connection:
163
+ - keep-alive
164
+ body:
165
+ encoding: UTF-8
166
+ string: |-
167
+ {
168
+ "suggestions": {
169
+ "query": "*",
170
+ "offers": [
171
+ {
172
+ "offer_name": "$10 off orders of $100 or more on Hockey Jerseys and apparel.",
173
+ "offer_key": 13270045,
174
+ "logo_url": "https://static-demo.accessdevelopment.com/brand/7f9fa6edc2308ae695aa8f43be8c4afa37812dfc/original.png"
175
+ }
176
+ ]
177
+ }
178
+ }
179
+ http_version:
180
+ recorded_at: Wed, 12 Aug 2015 17:46:44 GMT
181
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,185 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://offer-demo.adcrws.com/v1/autocomplete
6
+ body:
7
+ encoding: UTF-8
8
+ string: member_key=guest&per_page=1&resources=stores
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:01 GMT
25
+ Server:
26
+ - nginx/1.6.2
27
+ Strict-Transport-Security:
28
+ - max-age=31536000
29
+ X-Request-Id:
30
+ - c65aa250-6547-4f34-8afc-e361dd2b3345
31
+ X-Runtime:
32
+ - '0.000252'
33
+ Content-Length:
34
+ - '155'
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\u0026resources=stores''"}'
41
+ http_version:
42
+ recorded_at: Thu, 06 Aug 2015 17:30:01 GMT
43
+ - request:
44
+ method: get
45
+ uri: https://offer-demo.adcrws.com/v1/autocomplete?member_key=guest&per_page=1&resources=stores
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:03 GMT
75
+ Etag:
76
+ - '"670e144143266937250ca03cf44a90f1"'
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
+ - 57c87c91-2caf-4864-b875-21f0f642f986
87
+ X-Runtime:
88
+ - '0.017682'
89
+ X-Xss-Protection:
90
+ - 1; mode=block
91
+ Content-Length:
92
+ - '357'
93
+ Connection:
94
+ - keep-alive
95
+ body:
96
+ encoding: UTF-8
97
+ string: |-
98
+ {
99
+ "suggestions": {
100
+ "query": "*",
101
+ "stores": [
102
+ {
103
+ "store_name": "Holiday Inn Express",
104
+ "store_key": 18987225,
105
+ "active_offer_count": 4143,
106
+ "active_location_count": 2125,
107
+ "logo_url": "https://static-demo.accessdevelopment.com/brand/ec6ba1ada0a010a8349931ec90e1c4620566ea8c/original.png"
108
+ }
109
+ ]
110
+ }
111
+ }
112
+ http_version:
113
+ recorded_at: Thu, 06 Aug 2015 17:51:03 GMT
114
+ - request:
115
+ method: get
116
+ uri: https://offer-demo.adcrws.com/v1/autocomplete?member_key=API_RUBY_GEM_TEST&per_page=1&resources=stores
117
+ body:
118
+ encoding: US-ASCII
119
+ string: ''
120
+ headers:
121
+ Access-Token:
122
+ - token_without_limit
123
+ Content-Type:
124
+ - application/json
125
+ Accept:
126
+ - application/json
127
+ response:
128
+ status:
129
+ code: 200
130
+ message: OK
131
+ headers:
132
+ Access-Control-Allow-Headers:
133
+ - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
134
+ Access-Control-Allow-Methods:
135
+ - POST, GET, PUT, DELETE, OPTIONS
136
+ Access-Control-Max-Age:
137
+ - '1728000'
138
+ Access-Control-Request-Method:
139
+ - GET
140
+ Cache-Control:
141
+ - max-age=0, private, must-revalidate
142
+ Content-Type:
143
+ - application/json
144
+ Date:
145
+ - Wed, 12 Aug 2015 17:46:45 GMT
146
+ Etag:
147
+ - '"670e144143266937250ca03cf44a90f1"'
148
+ Server:
149
+ - nginx/1.6.2
150
+ Strict-Transport-Security:
151
+ - max-age=31536000
152
+ X-Content-Type-Options:
153
+ - nosniff
154
+ X-Frame-Options:
155
+ - SAMEORIGIN
156
+ X-Request-Id:
157
+ - f135f7a3-ce27-4522-a7ef-c7446a752b81
158
+ X-Runtime:
159
+ - '0.017061'
160
+ X-Xss-Protection:
161
+ - 1; mode=block
162
+ Content-Length:
163
+ - '357'
164
+ Connection:
165
+ - keep-alive
166
+ body:
167
+ encoding: UTF-8
168
+ string: |-
169
+ {
170
+ "suggestions": {
171
+ "query": "*",
172
+ "stores": [
173
+ {
174
+ "store_name": "Holiday Inn Express",
175
+ "store_key": 18987225,
176
+ "active_offer_count": 4143,
177
+ "active_location_count": 2125,
178
+ "logo_url": "https://static-demo.accessdevelopment.com/brand/ec6ba1ada0a010a8349931ec90e1c4620566ea8c/original.png"
179
+ }
180
+ ]
181
+ }
182
+ }
183
+ http_version:
184
+ recorded_at: Wed, 12 Aug 2015 17:46:45 GMT
185
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,303 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://offer-demo.adcrws.com/v1/categories/51?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:02 GMT
35
+ Etag:
36
+ - '"9a1bf56f467a684bfa1d608b95924979"'
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
+ - a6017662-228c-41c3-96bf-d29902ce4443
47
+ X-Runtime:
48
+ - '0.016959'
49
+ X-Xss-Protection:
50
+ - 1; mode=block
51
+ Content-Length:
52
+ - '3735'
53
+ Connection:
54
+ - keep-alive
55
+ body:
56
+ encoding: UTF-8
57
+ string: |-
58
+ {
59
+ "categories": [
60
+ {
61
+ "category_name": "Automotive",
62
+ "category_key": 51,
63
+ "category_type": "category",
64
+ "category_parent_name": null,
65
+ "category_parent_key": null,
66
+ "links": {
67
+ "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=51"
68
+ },
69
+ "subcategories": [
70
+ {
71
+ "category_name": "Auto Body & Paint",
72
+ "category_key": 1000,
73
+ "category_type": "subcategory",
74
+ "category_parent_key": 51,
75
+ "links": {
76
+ "show_category": "https://offer-demo.adcrws.com/v1/categories/1000",
77
+ "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
78
+ "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1000"
79
+ }
80
+ },
81
+ {
82
+ "category_name": "Auto Parts",
83
+ "category_key": 1001,
84
+ "category_type": "subcategory",
85
+ "category_parent_key": 51,
86
+ "links": {
87
+ "show_category": "https://offer-demo.adcrws.com/v1/categories/1001",
88
+ "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
89
+ "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1001"
90
+ }
91
+ },
92
+ {
93
+ "category_name": "Auto Service & Repair",
94
+ "category_key": 1002,
95
+ "category_type": "subcategory",
96
+ "category_parent_key": 51,
97
+ "links": {
98
+ "show_category": "https://offer-demo.adcrws.com/v1/categories/1002",
99
+ "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
100
+ "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1002"
101
+ }
102
+ },
103
+ {
104
+ "category_name": "Car Wash & Detail",
105
+ "category_key": 1003,
106
+ "category_type": "subcategory",
107
+ "category_parent_key": 51,
108
+ "links": {
109
+ "show_category": "https://offer-demo.adcrws.com/v1/categories/1003",
110
+ "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
111
+ "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1003"
112
+ }
113
+ },
114
+ {
115
+ "category_name": "Gas Station",
116
+ "category_key": 1004,
117
+ "category_type": "subcategory",
118
+ "category_parent_key": 51,
119
+ "links": {
120
+ "show_category": "https://offer-demo.adcrws.com/v1/categories/1004",
121
+ "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
122
+ "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1004"
123
+ }
124
+ },
125
+ {
126
+ "category_name": "Tires",
127
+ "category_key": 1005,
128
+ "category_type": "subcategory",
129
+ "category_parent_key": 51,
130
+ "links": {
131
+ "show_category": "https://offer-demo.adcrws.com/v1/categories/1005",
132
+ "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
133
+ "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1005"
134
+ }
135
+ },
136
+ {
137
+ "category_name": "Auto Sales & Warranties",
138
+ "category_key": 1006,
139
+ "category_type": "subcategory",
140
+ "category_parent_key": 51,
141
+ "links": {
142
+ "show_category": "https://offer-demo.adcrws.com/v1/categories/1006",
143
+ "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
144
+ "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1006"
145
+ }
146
+ }
147
+ ]
148
+ }
149
+ ]
150
+ }
151
+ http_version:
152
+ recorded_at: Thu, 06 Aug 2015 17:51:02 GMT
153
+ - request:
154
+ method: get
155
+ uri: https://offer-demo.adcrws.com/v1/categories/51?member_key=API_RUBY_GEM_TEST
156
+ body:
157
+ encoding: US-ASCII
158
+ string: ''
159
+ headers:
160
+ Access-Token:
161
+ - token_without_limit
162
+ Content-Type:
163
+ - application/json
164
+ Accept:
165
+ - application/json
166
+ response:
167
+ status:
168
+ code: 200
169
+ message: OK
170
+ headers:
171
+ Access-Control-Allow-Headers:
172
+ - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
173
+ Access-Control-Allow-Methods:
174
+ - POST, GET, PUT, DELETE, OPTIONS
175
+ Access-Control-Max-Age:
176
+ - '1728000'
177
+ Access-Control-Request-Method:
178
+ - GET
179
+ Cache-Control:
180
+ - max-age=0, private, must-revalidate
181
+ Content-Type:
182
+ - application/json
183
+ Date:
184
+ - Wed, 12 Aug 2015 17:46:34 GMT
185
+ Etag:
186
+ - '"9a1bf56f467a684bfa1d608b95924979"'
187
+ Server:
188
+ - nginx/1.6.2
189
+ Strict-Transport-Security:
190
+ - max-age=31536000
191
+ X-Content-Type-Options:
192
+ - nosniff
193
+ X-Frame-Options:
194
+ - SAMEORIGIN
195
+ X-Request-Id:
196
+ - b2ab31ab-3436-495e-8aa6-b9a5e814155e
197
+ X-Runtime:
198
+ - '0.015022'
199
+ X-Xss-Protection:
200
+ - 1; mode=block
201
+ Content-Length:
202
+ - '3735'
203
+ Connection:
204
+ - keep-alive
205
+ body:
206
+ encoding: UTF-8
207
+ string: |-
208
+ {
209
+ "categories": [
210
+ {
211
+ "category_name": "Automotive",
212
+ "category_key": 51,
213
+ "category_type": "category",
214
+ "category_parent_name": null,
215
+ "category_parent_key": null,
216
+ "links": {
217
+ "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=51"
218
+ },
219
+ "subcategories": [
220
+ {
221
+ "category_name": "Auto Body & Paint",
222
+ "category_key": 1000,
223
+ "category_type": "subcategory",
224
+ "category_parent_key": 51,
225
+ "links": {
226
+ "show_category": "https://offer-demo.adcrws.com/v1/categories/1000",
227
+ "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
228
+ "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1000"
229
+ }
230
+ },
231
+ {
232
+ "category_name": "Auto Parts",
233
+ "category_key": 1001,
234
+ "category_type": "subcategory",
235
+ "category_parent_key": 51,
236
+ "links": {
237
+ "show_category": "https://offer-demo.adcrws.com/v1/categories/1001",
238
+ "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
239
+ "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1001"
240
+ }
241
+ },
242
+ {
243
+ "category_name": "Auto Service & Repair",
244
+ "category_key": 1002,
245
+ "category_type": "subcategory",
246
+ "category_parent_key": 51,
247
+ "links": {
248
+ "show_category": "https://offer-demo.adcrws.com/v1/categories/1002",
249
+ "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
250
+ "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1002"
251
+ }
252
+ },
253
+ {
254
+ "category_name": "Car Wash & Detail",
255
+ "category_key": 1003,
256
+ "category_type": "subcategory",
257
+ "category_parent_key": 51,
258
+ "links": {
259
+ "show_category": "https://offer-demo.adcrws.com/v1/categories/1003",
260
+ "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
261
+ "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1003"
262
+ }
263
+ },
264
+ {
265
+ "category_name": "Gas Station",
266
+ "category_key": 1004,
267
+ "category_type": "subcategory",
268
+ "category_parent_key": 51,
269
+ "links": {
270
+ "show_category": "https://offer-demo.adcrws.com/v1/categories/1004",
271
+ "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
272
+ "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1004"
273
+ }
274
+ },
275
+ {
276
+ "category_name": "Tires",
277
+ "category_key": 1005,
278
+ "category_type": "subcategory",
279
+ "category_parent_key": 51,
280
+ "links": {
281
+ "show_category": "https://offer-demo.adcrws.com/v1/categories/1005",
282
+ "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
283
+ "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1005"
284
+ }
285
+ },
286
+ {
287
+ "category_name": "Auto Sales & Warranties",
288
+ "category_key": 1006,
289
+ "category_type": "subcategory",
290
+ "category_parent_key": 51,
291
+ "links": {
292
+ "show_category": "https://offer-demo.adcrws.com/v1/categories/1006",
293
+ "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51",
294
+ "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1006"
295
+ }
296
+ }
297
+ ]
298
+ }
299
+ ]
300
+ }
301
+ http_version:
302
+ recorded_at: Wed, 12 Aug 2015 17:46:34 GMT
303
+ recorded_with: VCR 2.9.3