access 2.0.11 → 2.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/access.rb +1 -0
- data/lib/access/api.rb +15 -1
- data/lib/access/redemption.rb +26 -0
- data/lib/access/response.rb +8 -9
- data/lib/access/version.rb +1 -1
- data/test/access/filter_test.rb +2 -0
- data/test/access/offer_test.rb +20 -2
- data/test/access/redeem_test.rb +1 -1
- data/test/access/redemption_test.rb +43 -0
- data/test/access/report_test.rb +77 -30
- data/test/test_helper.rb +5 -3
- data/test/vcr/cassettes/all_usage.yml +92 -0
- data/test/vcr/cassettes/autocomplete_search.yml +83 -0
- data/test/{fixtures → vcr/cassettes}/autocomplete_search_categories.yml +10 -10
- data/test/{fixtures → vcr/cassettes}/autocomplete_search_locations.yml +5 -5
- data/test/{fixtures → vcr/cassettes}/autocomplete_search_offers.yml +10 -10
- data/test/{fixtures → vcr/cassettes}/autocomplete_search_stores.yml +12 -12
- data/test/{fixtures → vcr/cassettes}/category_find.yml +7 -7
- data/test/{fixtures → vcr/cassettes}/category_search.yml +12 -12
- data/test/{fixtures → vcr/cassettes}/category_search_fail_member_key.yml +5 -5
- data/test/{fixtures → vcr/cassettes}/filter_find.yml +5 -5
- data/test/{fixtures → vcr/cassettes}/filter_search.yml +8 -8
- data/test/vcr/cassettes/find_redemption_by_member_key.yml +131 -0
- data/test/{fixtures → vcr/cassettes}/location_find.yml +8 -8
- data/test/{fixtures → vcr/cassettes}/location_search.yml +9 -9
- data/test/{fixtures → vcr/cassettes}/location_search_fail_member_key.yml +5 -5
- data/test/vcr/cassettes/member_location_frequent.yml +70 -0
- data/test/vcr/cassettes/member_location_recent.yml +70 -0
- data/test/vcr/cassettes/member_query_frequent.yml +73 -0
- data/test/vcr/cassettes/member_query_recent.yml +73 -0
- data/test/vcr/cassettes/national_stores.yml +1966 -0
- data/test/{fixtures → vcr/cassettes}/oauth_application_find.yml +5 -5
- data/test/{fixtures → vcr/cassettes}/oauth_application_search.yml +8 -8
- data/test/{fixtures → vcr/cassettes}/oauth_application_token_find.yml +5 -5
- data/test/{fixtures → vcr/cassettes}/oauth_application_token_search.yml +5 -5
- data/test/{fixtures → vcr/cassettes}/offer_find.yml +8 -8
- data/test/{fixtures → vcr/cassettes}/offer_search.yml +9 -9
- data/test/{fixtures → vcr/cassettes}/offer_search_fail_member_key.yml +5 -5
- data/test/vcr/cassettes/offer_with_aggregations.yml +935 -0
- data/test/vcr/cassettes/redeem_offer_no_redeem_type.yml +38 -0
- data/test/vcr/cassettes/redeem_offer_with_redeem_type.yml +38 -0
- data/test/vcr/cassettes/search_redemption_by_member_key.yml +762 -0
- data/test/vcr/cassettes/search_redemption_by_member_key_without_redemptions.yml +62 -0
- data/test/{fixtures → vcr/cassettes}/store_find.yml +5 -5
- data/test/{fixtures → vcr/cassettes}/store_search.yml +8 -8
- data/test/{fixtures → vcr/cassettes}/store_search_fail_member_key.yml +7 -7
- data/test/{fixtures → vcr/cassettes}/subcategory_find.yml +7 -7
- data/test/vcr/cassettes/token_find.yml +93 -0
- data/test/vcr/cassettes/token_get_first_token.yml +107 -0
- data/test/vcr/cassettes/token_search.yml +107 -0
- data/test/vcr/cassettes/usage.yml +92 -0
- data/test/vcr/cassettes/usage_other.yml +92 -0
- data/test/{fixtures → vcr/cassettes}/verify_filter.yml +17 -24
- data/test/{fixtures → vcr/cassettes}/verify_token.yml +6 -6
- metadata +91 -64
- data/test/fixtures/autocomplete_search.yml +0 -82
- data/test/fixtures/national_stores.yml +0 -1992
- data/test/fixtures/redeem_offer_no_redeem_type.yml +0 -73
- data/test/fixtures/token_find.yml +0 -92
- data/test/fixtures/token_get_first_token.yml +0 -106
- data/test/fixtures/token_search.yml +0 -106
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Access-Token:
|
11
|
-
-
|
11
|
+
- ACCESS_TOKEN
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -31,7 +31,7 @@ http_interactions:
|
|
31
31
|
Content-Type:
|
32
32
|
- application/json
|
33
33
|
Date:
|
34
|
-
-
|
34
|
+
- Tue, 06 Oct 2015 20:05:03 GMT
|
35
35
|
Etag:
|
36
36
|
- '"98daf27bcc5b2a794284ddcf788d8ad3"'
|
37
37
|
Server:
|
@@ -41,9 +41,9 @@ http_interactions:
|
|
41
41
|
X-Frame-Options:
|
42
42
|
- SAMEORIGIN
|
43
43
|
X-Request-Id:
|
44
|
-
-
|
44
|
+
- 65cb868a-ab61-4f14-9eb5-25bdb96b7b76
|
45
45
|
X-Runtime:
|
46
|
-
- '0.
|
46
|
+
- '0.174010'
|
47
47
|
X-Xss-Protection:
|
48
48
|
- 1; mode=block
|
49
49
|
Content-Length:
|
@@ -64,5 +64,5 @@ http_interactions:
|
|
64
64
|
]
|
65
65
|
}
|
66
66
|
http_version:
|
67
|
-
recorded_at:
|
67
|
+
recorded_at: Tue, 06 Oct 2015 20:05:03 GMT
|
68
68
|
recorded_with: VCR 2.9.3
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Access-Token:
|
11
|
-
-
|
11
|
+
- ACCESS_TOKEN
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -31,9 +31,9 @@ http_interactions:
|
|
31
31
|
Content-Type:
|
32
32
|
- application/json
|
33
33
|
Date:
|
34
|
-
-
|
34
|
+
- Tue, 06 Oct 2015 20:05:03 GMT
|
35
35
|
Etag:
|
36
|
-
- '"
|
36
|
+
- '"7a19ca5819b5289b1f6ce17ca1922986"'
|
37
37
|
Server:
|
38
38
|
- nginx/1.6.2
|
39
39
|
X-Content-Type-Options:
|
@@ -41,9 +41,9 @@ http_interactions:
|
|
41
41
|
X-Frame-Options:
|
42
42
|
- SAMEORIGIN
|
43
43
|
X-Request-Id:
|
44
|
-
-
|
44
|
+
- 390e1c3f-12b8-47b5-a0bc-f28a34d4e291
|
45
45
|
X-Runtime:
|
46
|
-
- '0.
|
46
|
+
- '0.077358'
|
47
47
|
X-Xss-Protection:
|
48
48
|
- 1; mode=block
|
49
49
|
Content-Length:
|
@@ -55,10 +55,10 @@ http_interactions:
|
|
55
55
|
string: |-
|
56
56
|
{
|
57
57
|
"info": {
|
58
|
-
"total_results":
|
58
|
+
"total_results": 55,
|
59
59
|
"results_per_page": 1,
|
60
60
|
"current_page": 1,
|
61
|
-
"total_pages":
|
61
|
+
"total_pages": 55
|
62
62
|
},
|
63
63
|
"filters": [
|
64
64
|
{
|
@@ -73,5 +73,5 @@ http_interactions:
|
|
73
73
|
}
|
74
74
|
}
|
75
75
|
http_version:
|
76
|
-
recorded_at:
|
76
|
+
recorded_at: Tue, 06 Oct 2015 20:05:03 GMT
|
77
77
|
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,131 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://report-demo.adcrws.com/v1/members/API_RUBY_GEM_TEST/offer-redemptions/1602664
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Access-Token:
|
11
|
+
- ACCESS_TOKEN
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
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
|
+
- Tue, 06 Oct 2015 20:04:53 GMT
|
35
|
+
Etag:
|
36
|
+
- '"9616161b8b0baf227093efa15d5d42da"'
|
37
|
+
Server:
|
38
|
+
- nginx/1.6.2
|
39
|
+
X-Content-Type-Options:
|
40
|
+
- nosniff
|
41
|
+
X-Frame-Options:
|
42
|
+
- SAMEORIGIN
|
43
|
+
X-Request-Id:
|
44
|
+
- eb1a0c2c-7323-46e2-b0ad-1808ca161050
|
45
|
+
X-Runtime:
|
46
|
+
- '0.019938'
|
47
|
+
X-Xss-Protection:
|
48
|
+
- 1; mode=block
|
49
|
+
Content-Length:
|
50
|
+
- '2589'
|
51
|
+
Connection:
|
52
|
+
- keep-alive
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: |-
|
56
|
+
{
|
57
|
+
"offer_redemptions": [
|
58
|
+
{
|
59
|
+
"usage_redeem_key": 1602664,
|
60
|
+
"redeem_key": 1001,
|
61
|
+
"redeem_type": "instore_print_coupon",
|
62
|
+
"usage_date": "2015-09-16T20:16:28.000Z",
|
63
|
+
"offer": {
|
64
|
+
"offer_key": 7365285,
|
65
|
+
"offer_group_key": 139697,
|
66
|
+
"title": "Any extra large pizza for the price of large pizza.",
|
67
|
+
"started_on": "2015-06-08T00:00:00.000Z",
|
68
|
+
"expires_on": "2015-11-05T23:59:59.999Z",
|
69
|
+
"logo_url": "https://static-demo.accessdevelopment.com/brand/ffabc5399b1b110ec6038a01dd80771a4f0eeb2e/original.png",
|
70
|
+
"national_offer": true,
|
71
|
+
"uses_per_period": "unlimited",
|
72
|
+
"offer_set": "DISCOUNT",
|
73
|
+
"savings_amount": "20%",
|
74
|
+
"minimum_purchase": 0.0,
|
75
|
+
"maximum_award": 0.0,
|
76
|
+
"offer_value": 7,
|
77
|
+
"discount_type": "percent",
|
78
|
+
"discount_value": 20.0,
|
79
|
+
"promotion_code": false,
|
80
|
+
"redemption_methods": [
|
81
|
+
"instore_print"
|
82
|
+
],
|
83
|
+
"categories": [
|
84
|
+
{
|
85
|
+
"category_name": "Casual & Fine Dining",
|
86
|
+
"category_key": 1009,
|
87
|
+
"category_parent_key": 39,
|
88
|
+
"category_parent_name": "Dining & Food",
|
89
|
+
"category_type": "subcategory"
|
90
|
+
}
|
91
|
+
],
|
92
|
+
"offer_store": {
|
93
|
+
"name": "Figaro's Italian Pizza",
|
94
|
+
"description": "Take your time and order what you'd like. Whether you enjoy classic pizzas like pepperoni or cheese or if you want to spice it up by ordering BBQ sauce or thin crust - We have what you want! Try Figaro's Pizza - Flavors That Sing.",
|
95
|
+
"store_key": 18938498,
|
96
|
+
"physical_location": {
|
97
|
+
"location_name": "Figaro's Italian Pizza",
|
98
|
+
"web_address": "http://www.figaros.com",
|
99
|
+
"description": null,
|
100
|
+
"location_key": 244820,
|
101
|
+
"postal_code": "98632",
|
102
|
+
"country": "US",
|
103
|
+
"street_address": "3208 Ocean Beach Hwy",
|
104
|
+
"extended_street_address": null,
|
105
|
+
"city_locality": "Longview",
|
106
|
+
"state_region": "WA",
|
107
|
+
"geolocation_array": [
|
108
|
+
-122.97105,
|
109
|
+
46.14831
|
110
|
+
],
|
111
|
+
"geolocation": {
|
112
|
+
"lat": 46.14831,
|
113
|
+
"lon": -122.97105
|
114
|
+
},
|
115
|
+
"phone_number": "360-353-3333"
|
116
|
+
}
|
117
|
+
}
|
118
|
+
},
|
119
|
+
"member": {
|
120
|
+
"member_key": "API_RUBY_GEM_TEST",
|
121
|
+
"program_key": "200156",
|
122
|
+
"program_name": "RWS API - No Filters No Limit",
|
123
|
+
"organization_key": "160",
|
124
|
+
"organization_name": "Access Development"
|
125
|
+
}
|
126
|
+
}
|
127
|
+
]
|
128
|
+
}
|
129
|
+
http_version:
|
130
|
+
recorded_at: Tue, 06 Oct 2015 20:04:53 GMT
|
131
|
+
recorded_with: VCR 2.9.3
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Access-Token:
|
11
|
-
-
|
11
|
+
- ACCESS_TOKEN
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -31,9 +31,9 @@ http_interactions:
|
|
31
31
|
Content-Type:
|
32
32
|
- application/json
|
33
33
|
Date:
|
34
|
-
-
|
34
|
+
- Tue, 06 Oct 2015 20:05:00 GMT
|
35
35
|
Etag:
|
36
|
-
- '"
|
36
|
+
- '"79548311a2f9d06902034e775f7eadb8"'
|
37
37
|
Server:
|
38
38
|
- nginx/1.6.2
|
39
39
|
X-Content-Type-Options:
|
@@ -41,9 +41,9 @@ http_interactions:
|
|
41
41
|
X-Frame-Options:
|
42
42
|
- SAMEORIGIN
|
43
43
|
X-Request-Id:
|
44
|
-
-
|
44
|
+
- 35e33001-80cf-4590-9e6f-50d8a131bd75
|
45
45
|
X-Runtime:
|
46
|
-
- '0.
|
46
|
+
- '0.035233'
|
47
47
|
X-Xss-Protection:
|
48
48
|
- 1; mode=block
|
49
49
|
Content-Length:
|
@@ -53,8 +53,8 @@ http_interactions:
|
|
53
53
|
body:
|
54
54
|
encoding: ASCII-8BIT
|
55
55
|
string: !binary |-
|
56
|
-
|
57
|
-
|
56
|
+
ewogICJpbmZvIjogewogICAgInRvdGFsX3Jlc3VsdHMiOiAyMDM5NzUsCiAg
|
57
|
+
ICAiY3VycmVudF9wYWdlIjogMSwKICAgICJ0b3RhbF9wYWdlcyI6IDIwMzk4
|
58
58
|
LAogICAgInJlc3VsdHNfcGVyX3BhZ2UiOiAxMAogIH0sCiAgImxvY2F0aW9u
|
59
59
|
cyI6IFsKICAgIHsKICAgICAgInNlYXJjaF9yZWxldmFuY2UiOiAxLjAsCiAg
|
60
60
|
ICAgICJwaHlzaWNhbF9sb2NhdGlvbiI6IHsKICAgICAgICAibG9jYXRpb25f
|
@@ -480,5 +480,5 @@ http_interactions:
|
|
480
480
|
Y2F0aW9ucz9tZW1iZXJfa2V5PUFQSV9SVUJZX0dFTV9URVNUJnBhZ2U9MiIK
|
481
481
|
ICB9Cn0=
|
482
482
|
http_version:
|
483
|
-
recorded_at:
|
483
|
+
recorded_at: Tue, 06 Oct 2015 20:05:00 GMT
|
484
484
|
recorded_with: VCR 2.9.3
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Access-Token:
|
11
|
-
-
|
11
|
+
- ACCESS_TOKEN
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -31,9 +31,9 @@ http_interactions:
|
|
31
31
|
Content-Type:
|
32
32
|
- application/json
|
33
33
|
Date:
|
34
|
-
-
|
34
|
+
- Tue, 06 Oct 2015 20:04:59 GMT
|
35
35
|
Etag:
|
36
|
-
- '"
|
36
|
+
- '"108dd3d8821c8964bf840746fbbe5f53"'
|
37
37
|
Server:
|
38
38
|
- nginx/1.6.2
|
39
39
|
X-Content-Type-Options:
|
@@ -41,9 +41,9 @@ http_interactions:
|
|
41
41
|
X-Frame-Options:
|
42
42
|
- SAMEORIGIN
|
43
43
|
X-Request-Id:
|
44
|
-
-
|
44
|
+
- 8707ef28-4fa3-4bac-8a6a-c7ed652c018a
|
45
45
|
X-Runtime:
|
46
|
-
- '0.
|
46
|
+
- '0.031831'
|
47
47
|
X-Xss-Protection:
|
48
48
|
- 1; mode=block
|
49
49
|
Content-Length:
|
@@ -53,9 +53,9 @@ http_interactions:
|
|
53
53
|
body:
|
54
54
|
encoding: ASCII-8BIT
|
55
55
|
string: !binary |-
|
56
|
-
|
57
|
-
|
58
|
-
|
56
|
+
ewogICJpbmZvIjogewogICAgInRvdGFsX3Jlc3VsdHMiOiAyMDM5NzUsCiAg
|
57
|
+
ICAiY3VycmVudF9wYWdlIjogMSwKICAgICJ0b3RhbF9wYWdlcyI6IDIwMzk3
|
58
|
+
NSwKICAgICJyZXN1bHRzX3Blcl9wYWdlIjogMQogIH0sCiAgImxvY2F0aW9u
|
59
59
|
cyI6IFsKICAgIHsKICAgICAgInNlYXJjaF9yZWxldmFuY2UiOiAxLjAsCiAg
|
60
60
|
ICAgICJwaHlzaWNhbF9sb2NhdGlvbiI6IHsKICAgICAgICAibG9jYXRpb25f
|
61
61
|
bmFtZSI6ICJTdW5iaXJkIENvbmRvJ3MiLAogICAgICAgICJ3ZWJfYWRkcmVz
|
@@ -110,5 +110,5 @@ http_interactions:
|
|
110
110
|
cndzLmNvbS92MS9sb2NhdGlvbnM/bWVtYmVyX2tleT1BUElfUlVCWV9HRU1f
|
111
111
|
VEVTVCZwYWdlPTImcGVyX3BhZ2U9MSIKICB9Cn0=
|
112
112
|
http_version:
|
113
|
-
recorded_at:
|
113
|
+
recorded_at: Tue, 06 Oct 2015 20:04:59 GMT
|
114
114
|
recorded_with: VCR 2.9.3
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Access-Token:
|
11
|
-
-
|
11
|
+
- ACCESS_TOKEN
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -31,7 +31,7 @@ http_interactions:
|
|
31
31
|
Content-Type:
|
32
32
|
- application/json
|
33
33
|
Date:
|
34
|
-
-
|
34
|
+
- Tue, 06 Oct 2015 20:05:00 GMT
|
35
35
|
Server:
|
36
36
|
- nginx/1.6.2
|
37
37
|
X-Content-Type-Options:
|
@@ -39,9 +39,9 @@ http_interactions:
|
|
39
39
|
X-Frame-Options:
|
40
40
|
- SAMEORIGIN
|
41
41
|
X-Request-Id:
|
42
|
-
-
|
42
|
+
- 4ed541d4-19f3-4d9f-a559-e31e88bb850c
|
43
43
|
X-Runtime:
|
44
|
-
- '0.
|
44
|
+
- '0.009145'
|
45
45
|
X-Xss-Protection:
|
46
46
|
- 1; mode=block
|
47
47
|
Content-Length:
|
@@ -56,5 +56,5 @@ http_interactions:
|
|
56
56
|
"status": 401
|
57
57
|
}
|
58
58
|
http_version:
|
59
|
-
recorded_at:
|
59
|
+
recorded_at: Tue, 06 Oct 2015 20:05:00 GMT
|
60
60
|
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,70 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://report-demo.adcrws.com/v1/members/API_RUBY_GEM_TEST/locations/frequent
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Access-Token:
|
11
|
+
- ACCESS_TOKEN
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
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
|
+
- Tue, 06 Oct 2015 22:05:42 GMT
|
35
|
+
Etag:
|
36
|
+
- '"2923b916c649c1e6f7e8f33407818f83"'
|
37
|
+
Server:
|
38
|
+
- nginx/1.6.2
|
39
|
+
X-Content-Type-Options:
|
40
|
+
- nosniff
|
41
|
+
X-Frame-Options:
|
42
|
+
- SAMEORIGIN
|
43
|
+
X-Request-Id:
|
44
|
+
- 2dcca779-2623-45e8-9a52-bdb7a3b1824a
|
45
|
+
X-Runtime:
|
46
|
+
- '0.343815'
|
47
|
+
X-Xss-Protection:
|
48
|
+
- 1; mode=block
|
49
|
+
Content-Length:
|
50
|
+
- '206'
|
51
|
+
Connection:
|
52
|
+
- keep-alive
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: |-
|
56
|
+
{
|
57
|
+
"info": {
|
58
|
+
"member_key": "API_RUBY_GEM_TEST",
|
59
|
+
"time_period": "2015-01-01 to now",
|
60
|
+
"report_env": "demo",
|
61
|
+
"organization_id": 160,
|
62
|
+
"program_id": 235589813
|
63
|
+
},
|
64
|
+
"member_usage": [
|
65
|
+
|
66
|
+
]
|
67
|
+
}
|
68
|
+
http_version:
|
69
|
+
recorded_at: Tue, 06 Oct 2015 22:05:43 GMT
|
70
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,70 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://report-demo.adcrws.com/v1/members/API_RUBY_GEM_TEST/locations/recent
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Access-Token:
|
11
|
+
- ACCESS_TOKEN
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
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
|
+
- Tue, 06 Oct 2015 22:05:43 GMT
|
35
|
+
Etag:
|
36
|
+
- '"2923b916c649c1e6f7e8f33407818f83"'
|
37
|
+
Server:
|
38
|
+
- nginx/1.6.2
|
39
|
+
X-Content-Type-Options:
|
40
|
+
- nosniff
|
41
|
+
X-Frame-Options:
|
42
|
+
- SAMEORIGIN
|
43
|
+
X-Request-Id:
|
44
|
+
- 3228aa08-c285-4c16-8a59-015153cf40bd
|
45
|
+
X-Runtime:
|
46
|
+
- '0.344423'
|
47
|
+
X-Xss-Protection:
|
48
|
+
- 1; mode=block
|
49
|
+
Content-Length:
|
50
|
+
- '206'
|
51
|
+
Connection:
|
52
|
+
- keep-alive
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: |-
|
56
|
+
{
|
57
|
+
"info": {
|
58
|
+
"member_key": "API_RUBY_GEM_TEST",
|
59
|
+
"time_period": "2015-01-01 to now",
|
60
|
+
"report_env": "demo",
|
61
|
+
"organization_id": 160,
|
62
|
+
"program_id": 235589813
|
63
|
+
},
|
64
|
+
"member_usage": [
|
65
|
+
|
66
|
+
]
|
67
|
+
}
|
68
|
+
http_version:
|
69
|
+
recorded_at: Tue, 06 Oct 2015 22:05:43 GMT
|
70
|
+
recorded_with: VCR 2.9.3
|