access 2.0.48 → 2.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.env.sample +8 -0
- data/.gitignore +1 -0
- data/Gemfile.lock +3 -1
- data/README.md +4 -0
- data/access.gemspec +1 -0
- data/bin/console +2 -1
- data/lib/access/api.rb +4 -4
- data/lib/access/favorite.rb +2 -2
- data/lib/access/version.rb +1 -1
- data/test/access/autocomplete_test.rb +5 -5
- data/test/access/campaign_test.rb +3 -3
- data/test/access/category_test.rb +5 -5
- data/test/access/channel_test.rb +6 -6
- data/test/access/device_test.rb +4 -4
- data/test/access/favorite_test.rb +61 -54
- data/test/access/filter_test.rb +3 -3
- data/test/access/location_test.rb +4 -4
- data/test/access/member_test.rb +3 -3
- data/test/access/oauth_application_test.rb +6 -7
- data/test/access/offer_test.rb +9 -9
- data/test/access/redeem_test.rb +3 -3
- data/test/access/redemption_test.rb +4 -5
- data/test/access/report_test.rb +14 -14
- data/test/access/spot_test.rb +4 -4
- data/test/access/store_test.rb +5 -5
- data/test/access/token_test.rb +3 -3
- data/test/access/user_test.rb +19 -15
- data/test/access/verify_test.rb +2 -2
- data/test/test_helper.rb +6 -3
- data/test/vcr/cassettes/{autocomplete_search_categories.yml → autocomplete/search_categories.yml} +8 -8
- data/test/vcr/cassettes/autocomplete/search_first.yml +94 -0
- data/test/vcr/cassettes/autocomplete/search_locations.yml +71 -0
- data/test/vcr/cassettes/{autocomplete_search_offers.yml → autocomplete/search_offers.yml} +10 -10
- data/test/vcr/cassettes/{autocomplete_search_stores.yml → autocomplete/search_stores.yml} +11 -11
- data/test/vcr/cassettes/campaign/search.yml +1021 -0
- data/test/vcr/cassettes/{category_find.yml → category/find.yml} +29 -29
- data/test/vcr/cassettes/category/search.yml +1588 -0
- data/test/vcr/cassettes/{location_search_fail_member_key.yml → category/search_fail_member_key.yml} +6 -6
- data/test/vcr/cassettes/{category_search.yml → category/search_first.yml} +739 -787
- data/test/vcr/cassettes/{subcategory_find.yml → category/subcategory_find.yml} +28 -28
- data/test/vcr/cassettes/{channel_search.yml → channel/search.yml} +3 -3
- data/test/vcr/cassettes/favorite/create_generic_with_offer.yml +126 -0
- data/test/vcr/cassettes/{favorite_create_offer.yml → favorite/create_location.yml} +7 -7
- data/test/vcr/cassettes/favorite/create_offer.yml +126 -0
- data/test/vcr/cassettes/favorite/create_store.yml +94 -0
- data/test/vcr/cassettes/favorite/delete_generic_with_offer.yml +171 -0
- data/test/vcr/cassettes/favorite/delete_location.yml +203 -0
- data/test/vcr/cassettes/favorite/delete_offer.yml +294 -0
- data/test/vcr/cassettes/favorite/delete_store.yml +258 -0
- data/test/vcr/cassettes/favorite/find_generic_with_offer.yml +323 -0
- data/test/vcr/cassettes/favorite/find_location.yml +158 -0
- data/test/vcr/cassettes/favorite/find_offer.yml +323 -0
- data/test/vcr/cassettes/favorite/find_store.yml +213 -0
- data/test/vcr/cassettes/{favorite_one_of_everything.yml → favorite/one_of_everything.yml} +181 -58
- data/test/vcr/cassettes/favorite/search.yml +346 -0
- data/test/vcr/cassettes/favorite/search_bad_member.yml +66 -0
- data/test/vcr/cassettes/favorite/search_locations.yml +113 -0
- data/test/vcr/cassettes/favorite/search_no_favorites.yml +66 -0
- data/test/vcr/cassettes/favorite/search_offers.yml +200 -0
- data/test/vcr/cassettes/favorite/search_stores.yml +178 -0
- data/test/vcr/cassettes/filter/find.yml +66 -0
- data/test/vcr/cassettes/{filter_search.yml → filter/search.yml} +12 -12
- data/test/vcr/cassettes/filter/search_first.yml +75 -0
- data/test/vcr/cassettes/location/find.yml +680 -0
- data/test/vcr/cassettes/location/search.yml +123 -0
- data/test/vcr/cassettes/{category_search_fail_member_key.yml → location/search_fail_member_key.yml} +6 -6
- data/test/vcr/cassettes/location/search_first.yml +123 -0
- data/test/vcr/cassettes/{member_show_failure.yml → member/show_failure.yml} +3 -3
- data/test/vcr/cassettes/{member_show_success.yml → member/show_success.yml} +5 -5
- data/test/vcr/cassettes/{favorite_delete_generic_with_offer.yml → member/update_success.yml} +7 -7
- data/test/vcr/cassettes/{member_authenticate_cvt_failure.yml → member_authenticate/cvt_failure.yml} +4 -4
- data/test/vcr/cassettes/{member_authenticate_cvt_success.yml → member_authenticate/cvt_success.yml} +6 -6
- data/test/vcr/cassettes/{member_authenticate_failure.yml → member_authenticate/failure.yml} +4 -4
- data/test/vcr/cassettes/{member_authenticate_member_key_failure.yml → member_authenticate/member_key_failure.yml} +3 -3
- data/test/vcr/cassettes/{member_authenticate_member_key_success.yml → member_authenticate/member_key_success.yml} +3 -3
- data/test/vcr/cassettes/{member_authenticate_success.yml → member_authenticate/success.yml} +5 -5
- data/test/vcr/cassettes/{member_device_search_failure.yml → member_device/search_failure.yml} +3 -3
- data/test/vcr/cassettes/member_device/search_success.yml +63 -0
- data/test/vcr/cassettes/{oauth_application_find.yml → oauth_application/find.yml} +19 -15
- data/test/vcr/cassettes/{oauth_application_search.yml → oauth_application/search.yml} +23 -19
- data/test/vcr/cassettes/oauth_application/search_oauth_first.yml +95 -0
- data/test/vcr/cassettes/oauth_application/token_find.yml +95 -0
- data/test/vcr/cassettes/oauth_application/token_search.yml +720 -0
- data/test/vcr/cassettes/oauth_application/token_search_tokens_first.yml +242 -0
- data/test/vcr/cassettes/offer/find.yml +158 -0
- data/test/vcr/cassettes/{offer_find_uses_remaining.yml → offer/find_uses_remaining.yml} +10 -10
- data/test/vcr/cassettes/offer/find_with_offer_uses_remaining.yml +158 -0
- data/test/vcr/cassettes/offer/search.yml +159 -0
- data/test/vcr/cassettes/{offer_search_fail_member_key.yml → offer/search_fail_member_key.yml} +6 -6
- data/test/vcr/cassettes/offer/search_first.yml +159 -0
- data/test/vcr/cassettes/offer/search_for_redeem.yml +159 -0
- data/test/vcr/cassettes/offer/with_aggregations.yml +1046 -0
- data/test/vcr/cassettes/redeem/offer_no_redeem_type.yml +36 -0
- data/test/vcr/cassettes/redeem/offer_with_redeem_type.yml +36 -0
- data/test/vcr/cassettes/redeem/redeem_offer_with_redeem_type_for_uses_remaining_test.yml +36 -0
- data/test/vcr/cassettes/redemption/find_by_member_key.yml +133 -0
- data/test/vcr/cassettes/redemption/search_by_member_key.yml +495 -0
- data/test/vcr/cassettes/redemption/search_by_member_key_first.yml +495 -0
- data/test/vcr/cassettes/{search_redemption_by_member_key_without_redemptions.yml → redemption/search_by_member_key_without_redemptions.yml} +6 -6
- data/test/vcr/cassettes/report/all_usage.yml +156 -0
- data/test/vcr/cassettes/{member_location_frequent.yml → report/member_location_frequent.yml} +6 -10
- data/test/vcr/cassettes/{member_location_recent.yml → report/member_location_recent.yml} +6 -6
- data/test/vcr/cassettes/{member_query_frequent.yml → report/member_query_frequent.yml} +6 -6
- data/test/vcr/cassettes/{member_query_recent.yml → report/member_query_recent.yml} +6 -6
- data/test/vcr/cassettes/report/usage.yml +156 -0
- data/test/vcr/cassettes/report/usage_other.yml +156 -0
- data/test/vcr/cassettes/{spot_find.yml → spot/find.yml} +3 -3
- data/test/vcr/cassettes/spot/search_by_campaign.yml +2727 -0
- data/test/vcr/cassettes/spot/search_by_channel.yml +956 -0
- data/test/vcr/cassettes/spot/search_by_channel_first.yml +956 -0
- data/test/vcr/cassettes/{store_find.yml → store/find.yml} +17 -17
- data/test/vcr/cassettes/store/national_stores.yml +3057 -0
- data/test/vcr/cassettes/{store_search.yml → store/search.yml} +21 -21
- data/test/vcr/cassettes/{store_search_fail_member_key.yml → store/search_fail_member_key.yml} +6 -6
- data/test/vcr/cassettes/store/search_first.yml +95 -0
- data/test/vcr/cassettes/token/find.yml +107 -0
- data/test/vcr/cassettes/token/get_first_token.yml +121 -0
- data/test/vcr/cassettes/token/search.yml +121 -0
- data/test/vcr/cassettes/{user_register_failure.yml → user_register/failure.yml} +4 -4
- data/test/vcr/cassettes/user_register/success.yml +101 -0
- data/test/vcr/cassettes/{user_update_success.yml → user_update/success.yml} +8 -6
- data/test/vcr/cassettes/{verify_filter.yml → verify/filter.yml} +41 -124
- data/test/vcr/cassettes/{verify_token.yml → verify/token.yml} +14 -11
- metadata +205 -174
- data/test/vcr/cassettes/all_usage.yml +0 -84
- data/test/vcr/cassettes/autocomplete_search.yml +0 -84
- data/test/vcr/cassettes/autocomplete_search_locations.yml +0 -66
- data/test/vcr/cassettes/campaign_find.yml +0 -232
- data/test/vcr/cassettes/campaign_search.yml +0 -1258
- data/test/vcr/cassettes/channel_find.yml +0 -57
- data/test/vcr/cassettes/favorite_create_generic_with_offer.yml +0 -93
- data/test/vcr/cassettes/favorite_create_location.yml +0 -91
- data/test/vcr/cassettes/favorite_create_store.yml +0 -92
- data/test/vcr/cassettes/favorite_delete_location.yml +0 -94
- data/test/vcr/cassettes/favorite_delete_offer.yml +0 -93
- data/test/vcr/cassettes/favorite_delete_store.yml +0 -94
- data/test/vcr/cassettes/favorite_find_generic_with_offer.yml +0 -93
- data/test/vcr/cassettes/favorite_find_location.yml +0 -179
- data/test/vcr/cassettes/favorite_find_offer.yml +0 -93
- data/test/vcr/cassettes/favorite_find_store.yml +0 -181
- data/test/vcr/cassettes/favorite_search.yml +0 -131
- data/test/vcr/cassettes/favorite_search_bad_member.yml +0 -49
- data/test/vcr/cassettes/favorite_search_locations.yml +0 -99
- data/test/vcr/cassettes/favorite_search_no_favorites.yml +0 -49
- data/test/vcr/cassettes/favorite_search_offers.yml +0 -169
- data/test/vcr/cassettes/favorite_search_stores.yml +0 -92
- data/test/vcr/cassettes/filter_find.yml +0 -174
- data/test/vcr/cassettes/find_redemption_by_member_key.yml +0 -131
- data/test/vcr/cassettes/location_find.yml +0 -505
- data/test/vcr/cassettes/location_search.yml +0 -123
- data/test/vcr/cassettes/member_device_search_success.yml +0 -48
- data/test/vcr/cassettes/member_update_success.yml +0 -183
- data/test/vcr/cassettes/national_stores.yml +0 -1914
- data/test/vcr/cassettes/oauth_application_token_find.yml +0 -92
- data/test/vcr/cassettes/oauth_application_token_search.yml +0 -95
- data/test/vcr/cassettes/offer_find.yml +0 -149
- data/test/vcr/cassettes/offer_find_with_offer_uses_remaining.yml +0 -149
- data/test/vcr/cassettes/offer_search.yml +0 -148
- data/test/vcr/cassettes/offer_with_aggregations.yml +0 -934
- data/test/vcr/cassettes/redeem_offer_no_redeem_type.yml +0 -38
- data/test/vcr/cassettes/redeem_offer_with_redeem_type.yml +0 -38
- data/test/vcr/cassettes/redeem_offer_with_redeem_type_for_uses_remaining_test.yml +0 -38
- data/test/vcr/cassettes/search_redemption_by_member_key.yml +0 -762
- data/test/vcr/cassettes/spot_search_by_campaign.yml +0 -2954
- data/test/vcr/cassettes/spot_search_by_channel.yml +0 -1192
- data/test/vcr/cassettes/token_find.yml +0 -99
- data/test/vcr/cassettes/token_get_first_token.yml +0 -113
- data/test/vcr/cassettes/token_search.yml +0 -113
- data/test/vcr/cassettes/usage.yml +0 -84
- data/test/vcr/cassettes/usage_other.yml +0 -84
- data/test/vcr/cassettes/user_register_success.yml +0 -50
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://report-
|
5
|
+
uri: https://report-stage.adcrws.com/v1/members/API_RUBY_GEM_TEST_NOREDEMPTIONS/offer_redemptions
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -21,7 +21,7 @@ http_interactions:
|
|
21
21
|
Server:
|
22
22
|
- nginx/1.8.0
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Mon, 22 Feb 2016 20:31:25 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json
|
27
27
|
Transfer-Encoding:
|
@@ -47,9 +47,9 @@ http_interactions:
|
|
47
47
|
Cache-Control:
|
48
48
|
- max-age=0, private, must-revalidate
|
49
49
|
X-Request-Id:
|
50
|
-
-
|
50
|
+
- 57e9263c-bc99-41d9-b61d-1f34330c26f7
|
51
51
|
X-Runtime:
|
52
|
-
- '0.
|
52
|
+
- '0.012980'
|
53
53
|
body:
|
54
54
|
encoding: UTF-8
|
55
55
|
string: |-
|
@@ -58,5 +58,5 @@ http_interactions:
|
|
58
58
|
"status": 200
|
59
59
|
}
|
60
60
|
http_version:
|
61
|
-
recorded_at:
|
62
|
-
recorded_with: VCR 3.0.
|
61
|
+
recorded_at: Mon, 22 Feb 2016 20:31:28 GMT
|
62
|
+
recorded_with: VCR 3.0.1
|
@@ -0,0 +1,156 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://report-demo.adcrws.com/v1/all_usage
|
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
|
+
Server:
|
22
|
+
- nginx/1.8.0
|
23
|
+
Date:
|
24
|
+
- Mon, 22 Feb 2016 23:10:15 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
X-Frame-Options:
|
32
|
+
- SAMEORIGIN
|
33
|
+
X-Xss-Protection:
|
34
|
+
- 1; mode=block
|
35
|
+
X-Content-Type-Options:
|
36
|
+
- nosniff
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- POST, GET, PUT, DELETE, OPTIONS
|
39
|
+
Access-Control-Request-Method:
|
40
|
+
- GET
|
41
|
+
Access-Control-Allow-Headers:
|
42
|
+
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
43
|
+
Access-Control-Max-Age:
|
44
|
+
- '1728000'
|
45
|
+
Etag:
|
46
|
+
- '"2bffd12d21ecd40fb5510c6365fa18f1"'
|
47
|
+
Cache-Control:
|
48
|
+
- max-age=0, private, must-revalidate
|
49
|
+
X-Request-Id:
|
50
|
+
- e0bc0e3a-ee5d-4210-9c15-7f7344dab488
|
51
|
+
X-Runtime:
|
52
|
+
- '0.545086'
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: |-
|
56
|
+
{
|
57
|
+
"info": {
|
58
|
+
"total_api_calls": 49049,
|
59
|
+
"time_period": "2016-02-01T00:00:00Z to now",
|
60
|
+
"interval": "1d",
|
61
|
+
"report_env": "demo"
|
62
|
+
},
|
63
|
+
"api_calls_over_time": [
|
64
|
+
{
|
65
|
+
"timestamp": "2016-02-01T00:00:00.000",
|
66
|
+
"api_call_count": 1850
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"timestamp": "2016-02-02T00:00:00.000",
|
70
|
+
"api_call_count": 1812
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"timestamp": "2016-02-03T00:00:00.000",
|
74
|
+
"api_call_count": 1065
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"timestamp": "2016-02-04T00:00:00.000",
|
78
|
+
"api_call_count": 1198
|
79
|
+
},
|
80
|
+
{
|
81
|
+
"timestamp": "2016-02-05T00:00:00.000",
|
82
|
+
"api_call_count": 1122
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"timestamp": "2016-02-06T00:00:00.000",
|
86
|
+
"api_call_count": 1667
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"timestamp": "2016-02-07T00:00:00.000",
|
90
|
+
"api_call_count": 1338
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"timestamp": "2016-02-08T00:00:00.000",
|
94
|
+
"api_call_count": 1744
|
95
|
+
},
|
96
|
+
{
|
97
|
+
"timestamp": "2016-02-09T00:00:00.000",
|
98
|
+
"api_call_count": 1761
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"timestamp": "2016-02-10T00:00:00.000",
|
102
|
+
"api_call_count": 1741
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"timestamp": "2016-02-11T00:00:00.000",
|
106
|
+
"api_call_count": 2892
|
107
|
+
},
|
108
|
+
{
|
109
|
+
"timestamp": "2016-02-12T00:00:00.000",
|
110
|
+
"api_call_count": 2684
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"timestamp": "2016-02-13T00:00:00.000",
|
114
|
+
"api_call_count": 1168
|
115
|
+
},
|
116
|
+
{
|
117
|
+
"timestamp": "2016-02-14T00:00:00.000",
|
118
|
+
"api_call_count": 699
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"timestamp": "2016-02-15T00:00:00.000",
|
122
|
+
"api_call_count": 1808
|
123
|
+
},
|
124
|
+
{
|
125
|
+
"timestamp": "2016-02-16T00:00:00.000",
|
126
|
+
"api_call_count": 3409
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"timestamp": "2016-02-17T00:00:00.000",
|
130
|
+
"api_call_count": 7127
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"timestamp": "2016-02-18T00:00:00.000",
|
134
|
+
"api_call_count": 4558
|
135
|
+
},
|
136
|
+
{
|
137
|
+
"timestamp": "2016-02-19T00:00:00.000",
|
138
|
+
"api_call_count": 7410
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"timestamp": "2016-02-20T00:00:00.000",
|
142
|
+
"api_call_count": 152
|
143
|
+
},
|
144
|
+
{
|
145
|
+
"timestamp": "2016-02-21T00:00:00.000",
|
146
|
+
"api_call_count": 756
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"timestamp": "2016-02-22T00:00:00.000",
|
150
|
+
"api_call_count": 1088
|
151
|
+
}
|
152
|
+
]
|
153
|
+
}
|
154
|
+
http_version:
|
155
|
+
recorded_at: Mon, 22 Feb 2016 23:10:17 GMT
|
156
|
+
recorded_with: VCR 3.0.1
|
data/test/vcr/cassettes/{member_location_frequent.yml → report/member_location_frequent.yml}
RENAMED
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Access-Token:
|
11
|
-
- ACCESS_TOKEN
|
11
|
+
- "<ACCESS_TOKEN>"
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -21,7 +21,7 @@ http_interactions:
|
|
21
21
|
Server:
|
22
22
|
- nginx/1.8.0
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Mon, 22 Feb 2016 23:10:14 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json
|
27
27
|
Transfer-Encoding:
|
@@ -42,18 +42,14 @@ http_interactions:
|
|
42
42
|
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
43
43
|
Access-Control-Max-Age:
|
44
44
|
- '1728000'
|
45
|
-
X-Ratelimit-Limit:
|
46
|
-
- '1000'
|
47
|
-
X-Ratelimit-Remaining:
|
48
|
-
- '999'
|
49
45
|
Etag:
|
50
46
|
- '"7640078b22e19a2094d1708621d0047f"'
|
51
47
|
Cache-Control:
|
52
48
|
- max-age=0, private, must-revalidate
|
53
49
|
X-Request-Id:
|
54
|
-
-
|
50
|
+
- afe0c6c0-5867-4fe5-a2ad-e2160421a9c1
|
55
51
|
X-Runtime:
|
56
|
-
- '
|
52
|
+
- '2.933998'
|
57
53
|
body:
|
58
54
|
encoding: UTF-8
|
59
55
|
string: |-
|
@@ -73,5 +69,5 @@ http_interactions:
|
|
73
69
|
]
|
74
70
|
}
|
75
71
|
http_version:
|
76
|
-
recorded_at:
|
77
|
-
recorded_with: VCR 3.0.
|
72
|
+
recorded_at: Mon, 22 Feb 2016 23:10:16 GMT
|
73
|
+
recorded_with: VCR 3.0.1
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Access-Token:
|
11
|
-
- ACCESS_TOKEN
|
11
|
+
- "<ACCESS_TOKEN>"
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -21,7 +21,7 @@ http_interactions:
|
|
21
21
|
Server:
|
22
22
|
- nginx/1.8.0
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Mon, 22 Feb 2016 23:10:07 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json
|
27
27
|
Transfer-Encoding:
|
@@ -47,9 +47,9 @@ http_interactions:
|
|
47
47
|
Cache-Control:
|
48
48
|
- max-age=0, private, must-revalidate
|
49
49
|
X-Request-Id:
|
50
|
-
-
|
50
|
+
- 3d51a774-5a57-40af-a70c-8a01e940141f
|
51
51
|
X-Runtime:
|
52
|
-
- '
|
52
|
+
- '6.484404'
|
53
53
|
body:
|
54
54
|
encoding: UTF-8
|
55
55
|
string: |-
|
@@ -69,5 +69,5 @@ http_interactions:
|
|
69
69
|
]
|
70
70
|
}
|
71
71
|
http_version:
|
72
|
-
recorded_at:
|
73
|
-
recorded_with: VCR 3.0.
|
72
|
+
recorded_at: Mon, 22 Feb 2016 23:10:10 GMT
|
73
|
+
recorded_with: VCR 3.0.1
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Access-Token:
|
11
|
-
- ACCESS_TOKEN
|
11
|
+
- "<ACCESS_TOKEN>"
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -21,7 +21,7 @@ http_interactions:
|
|
21
21
|
Server:
|
22
22
|
- nginx/1.8.0
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Mon, 22 Feb 2016 23:10:11 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json
|
27
27
|
Transfer-Encoding:
|
@@ -47,9 +47,9 @@ http_interactions:
|
|
47
47
|
Cache-Control:
|
48
48
|
- max-age=0, private, must-revalidate
|
49
49
|
X-Request-Id:
|
50
|
-
-
|
50
|
+
- 4129541d-5ee8-4934-84ee-6cc6b3ea4ca5
|
51
51
|
X-Runtime:
|
52
|
-
- '
|
52
|
+
- '1.425712'
|
53
53
|
body:
|
54
54
|
encoding: UTF-8
|
55
55
|
string: |-
|
@@ -69,5 +69,5 @@ http_interactions:
|
|
69
69
|
]
|
70
70
|
}
|
71
71
|
http_version:
|
72
|
-
recorded_at:
|
73
|
-
recorded_with: VCR 3.0.
|
72
|
+
recorded_at: Mon, 22 Feb 2016 23:10:13 GMT
|
73
|
+
recorded_with: VCR 3.0.1
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Access-Token:
|
11
|
-
- ACCESS_TOKEN
|
11
|
+
- "<ACCESS_TOKEN>"
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -21,7 +21,7 @@ http_interactions:
|
|
21
21
|
Server:
|
22
22
|
- nginx/1.8.0
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Mon, 22 Feb 2016 23:10:00 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json
|
27
27
|
Transfer-Encoding:
|
@@ -47,9 +47,9 @@ http_interactions:
|
|
47
47
|
Cache-Control:
|
48
48
|
- max-age=0, private, must-revalidate
|
49
49
|
X-Request-Id:
|
50
|
-
-
|
50
|
+
- 8e25b1b2-2d6f-433c-8525-6b02214dce82
|
51
51
|
X-Runtime:
|
52
|
-
- '
|
52
|
+
- '2.203884'
|
53
53
|
body:
|
54
54
|
encoding: UTF-8
|
55
55
|
string: |-
|
@@ -69,5 +69,5 @@ http_interactions:
|
|
69
69
|
]
|
70
70
|
}
|
71
71
|
http_version:
|
72
|
-
recorded_at:
|
73
|
-
recorded_with: VCR 3.0.
|
72
|
+
recorded_at: Mon, 22 Feb 2016 23:10:03 GMT
|
73
|
+
recorded_with: VCR 3.0.1
|
@@ -0,0 +1,156 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://report-demo.adcrws.com/v1/usage
|
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
|
+
Server:
|
22
|
+
- nginx/1.8.0
|
23
|
+
Date:
|
24
|
+
- Mon, 22 Feb 2016 23:10:09 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
X-Frame-Options:
|
32
|
+
- SAMEORIGIN
|
33
|
+
X-Xss-Protection:
|
34
|
+
- 1; mode=block
|
35
|
+
X-Content-Type-Options:
|
36
|
+
- nosniff
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- POST, GET, PUT, DELETE, OPTIONS
|
39
|
+
Access-Control-Request-Method:
|
40
|
+
- GET
|
41
|
+
Access-Control-Allow-Headers:
|
42
|
+
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
43
|
+
Access-Control-Max-Age:
|
44
|
+
- '1728000'
|
45
|
+
Etag:
|
46
|
+
- '"20ab7c3bc6cb233b45fb9ec85f9837b8"'
|
47
|
+
Cache-Control:
|
48
|
+
- max-age=0, private, must-revalidate
|
49
|
+
X-Request-Id:
|
50
|
+
- be46a6fe-30d1-4b32-8963-f0ae7f331560
|
51
|
+
X-Runtime:
|
52
|
+
- '0.762732'
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: |-
|
56
|
+
{
|
57
|
+
"info": {
|
58
|
+
"total_api_calls": 17641,
|
59
|
+
"time_period": "2016-02-01T00:00:00Z to now",
|
60
|
+
"interval": "1d",
|
61
|
+
"report_env": "demo"
|
62
|
+
},
|
63
|
+
"api_calls_over_time": [
|
64
|
+
{
|
65
|
+
"timestamp": "2016-02-01T00:00:00.000",
|
66
|
+
"api_call_count": 1465
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"timestamp": "2016-02-02T00:00:00.000",
|
70
|
+
"api_call_count": 1347
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"timestamp": "2016-02-03T00:00:00.000",
|
74
|
+
"api_call_count": 427
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"timestamp": "2016-02-04T00:00:00.000",
|
78
|
+
"api_call_count": 544
|
79
|
+
},
|
80
|
+
{
|
81
|
+
"timestamp": "2016-02-05T00:00:00.000",
|
82
|
+
"api_call_count": 502
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"timestamp": "2016-02-06T00:00:00.000",
|
86
|
+
"api_call_count": 1283
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"timestamp": "2016-02-07T00:00:00.000",
|
90
|
+
"api_call_count": 1266
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"timestamp": "2016-02-08T00:00:00.000",
|
94
|
+
"api_call_count": 964
|
95
|
+
},
|
96
|
+
{
|
97
|
+
"timestamp": "2016-02-09T00:00:00.000",
|
98
|
+
"api_call_count": 932
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"timestamp": "2016-02-10T00:00:00.000",
|
102
|
+
"api_call_count": 752
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"timestamp": "2016-02-11T00:00:00.000",
|
106
|
+
"api_call_count": 1359
|
107
|
+
},
|
108
|
+
{
|
109
|
+
"timestamp": "2016-02-12T00:00:00.000",
|
110
|
+
"api_call_count": 1253
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"timestamp": "2016-02-13T00:00:00.000",
|
114
|
+
"api_call_count": 353
|
115
|
+
},
|
116
|
+
{
|
117
|
+
"timestamp": "2016-02-14T00:00:00.000",
|
118
|
+
"api_call_count": 382
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"timestamp": "2016-02-15T00:00:00.000",
|
122
|
+
"api_call_count": 465
|
123
|
+
},
|
124
|
+
{
|
125
|
+
"timestamp": "2016-02-16T00:00:00.000",
|
126
|
+
"api_call_count": 764
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"timestamp": "2016-02-17T00:00:00.000",
|
130
|
+
"api_call_count": 667
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"timestamp": "2016-02-18T00:00:00.000",
|
134
|
+
"api_call_count": 368
|
135
|
+
},
|
136
|
+
{
|
137
|
+
"timestamp": "2016-02-19T00:00:00.000",
|
138
|
+
"api_call_count": 1877
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"timestamp": "2016-02-20T00:00:00.000",
|
142
|
+
"api_call_count": 118
|
143
|
+
},
|
144
|
+
{
|
145
|
+
"timestamp": "2016-02-21T00:00:00.000",
|
146
|
+
"api_call_count": 17
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"timestamp": "2016-02-22T00:00:00.000",
|
150
|
+
"api_call_count": 536
|
151
|
+
}
|
152
|
+
]
|
153
|
+
}
|
154
|
+
http_version:
|
155
|
+
recorded_at: Mon, 22 Feb 2016 23:10:12 GMT
|
156
|
+
recorded_with: VCR 3.0.1
|