access 2.2.0 → 2.3.0.pre.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/.travis.yml +6 -4
- data/Gemfile.lock +40 -80
- data/README.md +2 -4
- data/Rakefile +1 -1
- data/access.gemspec +4 -6
- data/lib/access/response.rb +1 -1
- data/lib/access/version.rb +1 -1
- data/test/access/campaign_test.rb +3 -3
- data/test/access/category_test.rb +1 -0
- data/test/access/device_test.rb +1 -4
- data/test/access/member_test.rb +2 -5
- data/test/access/redeem_test.rb +1 -0
- data/test/access/report_test.rb +14 -7
- data/test/access/spot_test.rb +4 -4
- data/test/access/user_test.rb +9 -10
- data/test/access/verify_test.rb +1 -1
- data/test/vcr/cassettes/autocomplete/search_categories.yml +11 -9
- data/test/vcr/cassettes/autocomplete/search_first.yml +21 -19
- data/test/vcr/cassettes/autocomplete/search_locations.yml +13 -11
- data/test/vcr/cassettes/autocomplete/search_offers.yml +15 -13
- data/test/vcr/cassettes/autocomplete/search_stores.yml +17 -15
- data/test/vcr/cassettes/campaign/find.yml +139 -0
- data/test/vcr/cassettes/campaign/search.yml +89 -971
- data/test/vcr/cassettes/campaign/search_first.yml +139 -0
- data/test/vcr/cassettes/category/find.yml +11 -9
- data/test/vcr/cassettes/category/search.yml +14 -35
- data/test/vcr/cassettes/category/search_fail_member_key.yml +11 -9
- data/test/vcr/cassettes/category/search_first.yml +27 -69
- data/test/vcr/cassettes/category/subcategory_find.yml +12 -118
- data/test/vcr/cassettes/channel/search.yml +26 -18
- data/test/vcr/cassettes/favorite/create_generic_with_offer.yml +95 -93
- data/test/vcr/cassettes/favorite/create_location.yml +63 -17
- data/test/vcr/cassettes/favorite/create_offer.yml +95 -93
- data/test/vcr/cassettes/favorite/create_store.yml +59 -59
- data/test/vcr/cassettes/favorite/delete_generic_with_offer.yml +110 -108
- data/test/vcr/cassettes/favorite/delete_location.yml +139 -93
- data/test/vcr/cassettes/favorite/delete_offer.yml +204 -200
- data/test/vcr/cassettes/favorite/delete_store.yml +117 -143
- data/test/vcr/cassettes/favorite/find_generic_with_offer.yml +180 -242
- data/test/vcr/cassettes/favorite/find_location.yml +124 -78
- data/test/vcr/cassettes/favorite/find_offer.yml +180 -242
- data/test/vcr/cassettes/favorite/find_store.yml +103 -129
- data/test/vcr/cassettes/favorite/one_of_everything.yml +323 -1031
- data/test/vcr/cassettes/favorite/search.yml +269 -281
- data/test/vcr/cassettes/favorite/search_bad_member.yml +9 -11
- data/test/vcr/cassettes/favorite/search_locations.yml +103 -62
- data/test/vcr/cassettes/favorite/search_no_favorites.yml +9 -11
- data/test/vcr/cassettes/favorite/search_offers.yml +148 -148
- data/test/vcr/cassettes/favorite/search_stores.yml +70 -127
- data/test/vcr/cassettes/filter/find.yml +11 -9
- data/test/vcr/cassettes/filter/search.yml +14 -12
- data/test/vcr/cassettes/filter/search_first.yml +14 -12
- data/test/vcr/cassettes/location/find.yml +562 -634
- data/test/vcr/cassettes/location/search.yml +82 -77
- data/test/vcr/cassettes/location/search_fail_member_key.yml +11 -9
- data/test/vcr/cassettes/location/search_first.yml +82 -77
- data/test/vcr/cassettes/member/show_failure.yml +14 -14
- data/test/vcr/cassettes/member/show_success.yml +16 -16
- data/test/vcr/cassettes/member/update_success.yml +16 -16
- data/test/vcr/cassettes/member_authenticate/cvt_failure.yml +13 -13
- data/test/vcr/cassettes/member_authenticate/cvt_success.yml +16 -16
- data/test/vcr/cassettes/member_authenticate/failure.yml +54 -9
- data/test/vcr/cassettes/member_authenticate/member_key_failure.yml +13 -13
- data/test/vcr/cassettes/member_authenticate/member_key_success.yml +21 -20
- data/test/vcr/cassettes/member_authenticate/success.yml +70 -13
- data/test/vcr/cassettes/member_device/search_failure.yml +16 -16
- data/test/vcr/cassettes/member_device/search_success.yml +423 -31
- data/test/vcr/cassettes/oauth_application/find.yml +19 -21
- data/test/vcr/cassettes/oauth_application/search.yml +21 -23
- data/test/vcr/cassettes/oauth_application/search_oauth_first.yml +21 -23
- data/test/vcr/cassettes/oauth_application/token_find.yml +33 -34
- data/test/vcr/cassettes/oauth_application/token_search.yml +97 -532
- data/test/vcr/cassettes/oauth_application/token_search_tokens_first.yml +33 -178
- data/test/vcr/cassettes/offer/find.yml +97 -109
- data/test/vcr/cassettes/offer/find_uses_remaining.yml +16 -14
- data/test/vcr/cassettes/offer/find_with_offer_uses_remaining.yml +97 -109
- data/test/vcr/cassettes/offer/search.yml +99 -111
- data/test/vcr/cassettes/offer/search_fail_member_key.yml +11 -9
- data/test/vcr/cassettes/offer/search_first.yml +99 -111
- data/test/vcr/cassettes/offer/search_for_redeem.yml +99 -111
- data/test/vcr/cassettes/offer/with_aggregations.yml +920 -959
- data/test/vcr/cassettes/redeem/offer_no_redeem_type.yml +8 -8
- data/test/vcr/cassettes/redeem/offer_with_redeem_type.yml +14 -7
- data/test/vcr/cassettes/redeem/redeem_offer_with_redeem_type_for_uses_remaining_test.yml +15 -8
- data/test/vcr/cassettes/redemption/find_by_member_key.yml +49 -47
- data/test/vcr/cassettes/redemption/search_by_member_key.yml +516 -228
- data/test/vcr/cassettes/redemption/search_by_member_key_first.yml +516 -228
- data/test/vcr/cassettes/redemption/search_by_member_key_without_redemptions.yml +11 -9
- data/test/vcr/cassettes/report/all_usage.yml +15 -100
- data/test/vcr/cassettes/report/member_location_frequent.yml +15 -19
- data/test/vcr/cassettes/report/member_location_recent.yml +15 -19
- data/test/vcr/cassettes/report/member_query_frequent.yml +15 -19
- data/test/vcr/cassettes/report/member_query_recent.yml +15 -19
- data/test/vcr/cassettes/report/usage.yml +15 -100
- data/test/vcr/cassettes/report/usage_other.yml +15 -100
- data/test/vcr/cassettes/spot/find.yml +9 -9
- data/test/vcr/cassettes/spot/search_by_campaign.yml +93 -2667
- data/test/vcr/cassettes/spot/search_by_channel.yml +73 -906
- data/test/vcr/cassettes/spot/search_by_channel_first.yml +73 -906
- data/test/vcr/cassettes/store/find.yml +48 -45
- data/test/vcr/cassettes/store/national_stores.yml +1764 -2884
- data/test/vcr/cassettes/store/search.yml +52 -49
- data/test/vcr/cassettes/store/search_fail_member_key.yml +11 -9
- data/test/vcr/cassettes/store/search_first.yml +52 -49
- data/test/vcr/cassettes/token/find.yml +53 -29
- data/test/vcr/cassettes/token/get_first_token.yml +55 -31
- data/test/vcr/cassettes/token/search.yml +55 -31
- data/test/vcr/cassettes/user_register/failure.yml +13 -13
- data/test/vcr/cassettes/user_register/success.yml +11 -109
- data/test/vcr/cassettes/user_update/success.yml +58 -12
- data/test/vcr/cassettes/verify/filter.yml +108 -94
- data/test/vcr/cassettes/verify/token.yml +15 -13
- metadata +22 -46
@@ -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:
|
@@ -19,15 +19,13 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Server:
|
22
|
-
- nginx/1.
|
22
|
+
- nginx/1.12.2
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Sun, 01 Jul 2018 04:23:59 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json
|
27
27
|
Transfer-Encoding:
|
28
28
|
- chunked
|
29
|
-
Connection:
|
30
|
-
- keep-alive
|
31
29
|
X-Frame-Options:
|
32
30
|
- SAMEORIGIN
|
33
31
|
X-Xss-Protection:
|
@@ -42,14 +40,18 @@ http_interactions:
|
|
42
40
|
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
43
41
|
Access-Control-Max-Age:
|
44
42
|
- '1728000'
|
43
|
+
X-Ratelimit-Limit:
|
44
|
+
- '10000'
|
45
|
+
X-Ratelimit-Remaining:
|
46
|
+
- '9930'
|
45
47
|
Etag:
|
46
48
|
- '"3b83a22c2709ca270cea6d0270e50959"'
|
47
49
|
Cache-Control:
|
48
50
|
- max-age=0, private, must-revalidate
|
49
51
|
X-Request-Id:
|
50
|
-
-
|
52
|
+
- ea0563f2-5098-48d7-87c5-c36d8fd94e3e
|
51
53
|
X-Runtime:
|
52
|
-
- '0.
|
54
|
+
- '0.008725'
|
53
55
|
body:
|
54
56
|
encoding: UTF-8
|
55
57
|
string: |-
|
@@ -58,5 +60,5 @@ http_interactions:
|
|
58
60
|
"status": 200
|
59
61
|
}
|
60
62
|
http_version:
|
61
|
-
recorded_at:
|
62
|
-
recorded_with: VCR
|
63
|
+
recorded_at: Sun, 01 Jul 2018 04:23:59 GMT
|
64
|
+
recorded_with: VCR 4.0.0
|
@@ -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/all_usage
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -19,15 +19,13 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Server:
|
22
|
-
- nginx/1.
|
22
|
+
- nginx/1.12.2
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Thu, 28 Jun 2018 17:11:30 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json
|
27
27
|
Transfer-Encoding:
|
28
28
|
- chunked
|
29
|
-
Connection:
|
30
|
-
- keep-alive
|
31
29
|
X-Frame-Options:
|
32
30
|
- SAMEORIGIN
|
33
31
|
X-Xss-Protection:
|
@@ -42,115 +40,32 @@ http_interactions:
|
|
42
40
|
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
43
41
|
Access-Control-Max-Age:
|
44
42
|
- '1728000'
|
43
|
+
X-Ratelimit-Limit:
|
44
|
+
- '10000'
|
45
|
+
X-Ratelimit-Remaining:
|
46
|
+
- '9940'
|
45
47
|
Etag:
|
46
|
-
- '"
|
48
|
+
- '"80051d1219cee5a0c4f9983ff6dbcfb0"'
|
47
49
|
Cache-Control:
|
48
50
|
- max-age=0, private, must-revalidate
|
49
51
|
X-Request-Id:
|
50
|
-
-
|
52
|
+
- bd83d4a1-2f47-435f-a524-edb20f9569e7
|
51
53
|
X-Runtime:
|
52
|
-
- '0.
|
54
|
+
- '0.020805'
|
53
55
|
body:
|
54
56
|
encoding: UTF-8
|
55
57
|
string: |-
|
56
58
|
{
|
57
59
|
"info": {
|
58
|
-
"total_api_calls":
|
59
|
-
"time_period": "
|
60
|
+
"total_api_calls": 0,
|
61
|
+
"time_period": "2018-06-01T06:00:00Z to now",
|
60
62
|
"interval": "1d",
|
61
|
-
"report_env": "
|
63
|
+
"report_env": "staging"
|
62
64
|
},
|
63
65
|
"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
|
-
}
|
66
|
+
|
152
67
|
]
|
153
68
|
}
|
154
69
|
http_version:
|
155
|
-
recorded_at:
|
70
|
+
recorded_at: Thu, 28 Jun 2018 17:11:30 GMT
|
156
71
|
recorded_with: VCR 3.0.1
|
@@ -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/locations/frequent
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -19,15 +19,13 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Server:
|
22
|
-
- nginx/1.
|
22
|
+
- nginx/1.12.2
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Thu, 28 Jun 2018 17:11:30 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json
|
27
27
|
Transfer-Encoding:
|
28
28
|
- chunked
|
29
|
-
Connection:
|
30
|
-
- keep-alive
|
31
29
|
X-Frame-Options:
|
32
30
|
- SAMEORIGIN
|
33
31
|
X-Xss-Protection:
|
@@ -42,32 +40,30 @@ http_interactions:
|
|
42
40
|
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
43
41
|
Access-Control-Max-Age:
|
44
42
|
- '1728000'
|
43
|
+
X-Ratelimit-Limit:
|
44
|
+
- '10000'
|
45
|
+
X-Ratelimit-Remaining:
|
46
|
+
- '9943'
|
45
47
|
Etag:
|
46
|
-
- '"
|
48
|
+
- '"334a5fef25e68ae51f22a7c749972504"'
|
47
49
|
Cache-Control:
|
48
50
|
- max-age=0, private, must-revalidate
|
49
51
|
X-Request-Id:
|
50
|
-
-
|
52
|
+
- 14e457ba-f71f-4929-80e3-55b74b453850
|
51
53
|
X-Runtime:
|
52
|
-
- '
|
54
|
+
- '0.021744'
|
53
55
|
body:
|
54
56
|
encoding: UTF-8
|
55
57
|
string: |-
|
56
58
|
{
|
57
59
|
"info": {
|
58
60
|
"member_key": "API_RUBY_GEM_TEST",
|
59
|
-
"time_period": "
|
60
|
-
"report_env": "
|
61
|
+
"time_period": "now-1M to now",
|
62
|
+
"report_env": "staging",
|
61
63
|
"organization_id": 160,
|
62
|
-
"program_id":
|
63
|
-
}
|
64
|
-
"member_usage": [
|
65
|
-
{
|
66
|
-
"postal_code": "84047",
|
67
|
-
"api_call_count": 2
|
68
|
-
}
|
69
|
-
]
|
64
|
+
"program_id": 263862512
|
65
|
+
}
|
70
66
|
}
|
71
67
|
http_version:
|
72
|
-
recorded_at:
|
68
|
+
recorded_at: Thu, 28 Jun 2018 17:11:30 GMT
|
73
69
|
recorded_with: VCR 3.0.1
|
@@ -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/locations/recent
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -19,15 +19,13 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Server:
|
22
|
-
- nginx/1.
|
22
|
+
- nginx/1.12.2
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Thu, 28 Jun 2018 17:11:30 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json
|
27
27
|
Transfer-Encoding:
|
28
28
|
- chunked
|
29
|
-
Connection:
|
30
|
-
- keep-alive
|
31
29
|
X-Frame-Options:
|
32
30
|
- SAMEORIGIN
|
33
31
|
X-Xss-Protection:
|
@@ -42,32 +40,30 @@ http_interactions:
|
|
42
40
|
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
43
41
|
Access-Control-Max-Age:
|
44
42
|
- '1728000'
|
43
|
+
X-Ratelimit-Limit:
|
44
|
+
- '10000'
|
45
|
+
X-Ratelimit-Remaining:
|
46
|
+
- '9944'
|
45
47
|
Etag:
|
46
|
-
- '"
|
48
|
+
- '"334a5fef25e68ae51f22a7c749972504"'
|
47
49
|
Cache-Control:
|
48
50
|
- max-age=0, private, must-revalidate
|
49
51
|
X-Request-Id:
|
50
|
-
-
|
52
|
+
- 9adbcd3b-34f1-4bab-95c1-cf22ba02c981
|
51
53
|
X-Runtime:
|
52
|
-
- '
|
54
|
+
- '0.022067'
|
53
55
|
body:
|
54
56
|
encoding: UTF-8
|
55
57
|
string: |-
|
56
58
|
{
|
57
59
|
"info": {
|
58
60
|
"member_key": "API_RUBY_GEM_TEST",
|
59
|
-
"time_period": "
|
60
|
-
"report_env": "
|
61
|
+
"time_period": "now-1M to now",
|
62
|
+
"report_env": "staging",
|
61
63
|
"organization_id": 160,
|
62
|
-
"program_id":
|
63
|
-
}
|
64
|
-
"member_usage": [
|
65
|
-
{
|
66
|
-
"postal_code": "84047",
|
67
|
-
"api_call_date": "2015-11-03T22:50:19.108Z"
|
68
|
-
}
|
69
|
-
]
|
64
|
+
"program_id": 263862512
|
65
|
+
}
|
70
66
|
}
|
71
67
|
http_version:
|
72
|
-
recorded_at:
|
68
|
+
recorded_at: Thu, 28 Jun 2018 17:11:30 GMT
|
73
69
|
recorded_with: VCR 3.0.1
|
@@ -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/queries/frequent
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -19,15 +19,13 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Server:
|
22
|
-
- nginx/1.
|
22
|
+
- nginx/1.12.2
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Thu, 28 Jun 2018 17:11:29 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json
|
27
27
|
Transfer-Encoding:
|
28
28
|
- chunked
|
29
|
-
Connection:
|
30
|
-
- keep-alive
|
31
29
|
X-Frame-Options:
|
32
30
|
- SAMEORIGIN
|
33
31
|
X-Xss-Protection:
|
@@ -42,32 +40,30 @@ http_interactions:
|
|
42
40
|
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
43
41
|
Access-Control-Max-Age:
|
44
42
|
- '1728000'
|
43
|
+
X-Ratelimit-Limit:
|
44
|
+
- '10000'
|
45
|
+
X-Ratelimit-Remaining:
|
46
|
+
- '9946'
|
45
47
|
Etag:
|
46
|
-
- '"
|
48
|
+
- '"334a5fef25e68ae51f22a7c749972504"'
|
47
49
|
Cache-Control:
|
48
50
|
- max-age=0, private, must-revalidate
|
49
51
|
X-Request-Id:
|
50
|
-
-
|
52
|
+
- 7742b574-e068-479a-91c4-8b18c27ffc48
|
51
53
|
X-Runtime:
|
52
|
-
- '
|
54
|
+
- '0.044040'
|
53
55
|
body:
|
54
56
|
encoding: UTF-8
|
55
57
|
string: |-
|
56
58
|
{
|
57
59
|
"info": {
|
58
60
|
"member_key": "API_RUBY_GEM_TEST",
|
59
|
-
"time_period": "
|
60
|
-
"report_env": "
|
61
|
+
"time_period": "now-1M to now",
|
62
|
+
"report_env": "staging",
|
61
63
|
"organization_id": 160,
|
62
|
-
"program_id":
|
63
|
-
}
|
64
|
-
"member_usage": [
|
65
|
-
{
|
66
|
-
"query": "pizza",
|
67
|
-
"api_call_count": 981
|
68
|
-
}
|
69
|
-
]
|
64
|
+
"program_id": 263862512
|
65
|
+
}
|
70
66
|
}
|
71
67
|
http_version:
|
72
|
-
recorded_at:
|
68
|
+
recorded_at: Thu, 28 Jun 2018 17:11:29 GMT
|
73
69
|
recorded_with: VCR 3.0.1
|
@@ -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/queries/recent
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -19,15 +19,13 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Server:
|
22
|
-
- nginx/1.
|
22
|
+
- nginx/1.12.2
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Thu, 28 Jun 2018 17:11:29 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json
|
27
27
|
Transfer-Encoding:
|
28
28
|
- chunked
|
29
|
-
Connection:
|
30
|
-
- keep-alive
|
31
29
|
X-Frame-Options:
|
32
30
|
- SAMEORIGIN
|
33
31
|
X-Xss-Protection:
|
@@ -42,32 +40,30 @@ http_interactions:
|
|
42
40
|
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
43
41
|
Access-Control-Max-Age:
|
44
42
|
- '1728000'
|
43
|
+
X-Ratelimit-Limit:
|
44
|
+
- '10000'
|
45
|
+
X-Ratelimit-Remaining:
|
46
|
+
- '9945'
|
45
47
|
Etag:
|
46
|
-
- '"
|
48
|
+
- '"334a5fef25e68ae51f22a7c749972504"'
|
47
49
|
Cache-Control:
|
48
50
|
- max-age=0, private, must-revalidate
|
49
51
|
X-Request-Id:
|
50
|
-
-
|
52
|
+
- 3aacbf69-c61d-46b2-8569-3f6f6ac0dfd2
|
51
53
|
X-Runtime:
|
52
|
-
- '
|
54
|
+
- '0.021996'
|
53
55
|
body:
|
54
56
|
encoding: UTF-8
|
55
57
|
string: |-
|
56
58
|
{
|
57
59
|
"info": {
|
58
60
|
"member_key": "API_RUBY_GEM_TEST",
|
59
|
-
"time_period": "
|
60
|
-
"report_env": "
|
61
|
+
"time_period": "now-1M to now",
|
62
|
+
"report_env": "staging",
|
61
63
|
"organization_id": 160,
|
62
|
-
"program_id":
|
63
|
-
}
|
64
|
-
"member_usage": [
|
65
|
-
{
|
66
|
-
"query": "pizza",
|
67
|
-
"api_call_date": "2015-11-03T22:29:38.617Z"
|
68
|
-
}
|
69
|
-
]
|
64
|
+
"program_id": 263862512
|
65
|
+
}
|
70
66
|
}
|
71
67
|
http_version:
|
72
|
-
recorded_at:
|
68
|
+
recorded_at: Thu, 28 Jun 2018 17:11:29 GMT
|
73
69
|
recorded_with: VCR 3.0.1
|