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.
Files changed (172) hide show
  1. checksums.yaml +4 -4
  2. data/.env.sample +8 -0
  3. data/.gitignore +1 -0
  4. data/Gemfile.lock +3 -1
  5. data/README.md +4 -0
  6. data/access.gemspec +1 -0
  7. data/bin/console +2 -1
  8. data/lib/access/api.rb +4 -4
  9. data/lib/access/favorite.rb +2 -2
  10. data/lib/access/version.rb +1 -1
  11. data/test/access/autocomplete_test.rb +5 -5
  12. data/test/access/campaign_test.rb +3 -3
  13. data/test/access/category_test.rb +5 -5
  14. data/test/access/channel_test.rb +6 -6
  15. data/test/access/device_test.rb +4 -4
  16. data/test/access/favorite_test.rb +61 -54
  17. data/test/access/filter_test.rb +3 -3
  18. data/test/access/location_test.rb +4 -4
  19. data/test/access/member_test.rb +3 -3
  20. data/test/access/oauth_application_test.rb +6 -7
  21. data/test/access/offer_test.rb +9 -9
  22. data/test/access/redeem_test.rb +3 -3
  23. data/test/access/redemption_test.rb +4 -5
  24. data/test/access/report_test.rb +14 -14
  25. data/test/access/spot_test.rb +4 -4
  26. data/test/access/store_test.rb +5 -5
  27. data/test/access/token_test.rb +3 -3
  28. data/test/access/user_test.rb +19 -15
  29. data/test/access/verify_test.rb +2 -2
  30. data/test/test_helper.rb +6 -3
  31. data/test/vcr/cassettes/{autocomplete_search_categories.yml → autocomplete/search_categories.yml} +8 -8
  32. data/test/vcr/cassettes/autocomplete/search_first.yml +94 -0
  33. data/test/vcr/cassettes/autocomplete/search_locations.yml +71 -0
  34. data/test/vcr/cassettes/{autocomplete_search_offers.yml → autocomplete/search_offers.yml} +10 -10
  35. data/test/vcr/cassettes/{autocomplete_search_stores.yml → autocomplete/search_stores.yml} +11 -11
  36. data/test/vcr/cassettes/campaign/search.yml +1021 -0
  37. data/test/vcr/cassettes/{category_find.yml → category/find.yml} +29 -29
  38. data/test/vcr/cassettes/category/search.yml +1588 -0
  39. data/test/vcr/cassettes/{location_search_fail_member_key.yml → category/search_fail_member_key.yml} +6 -6
  40. data/test/vcr/cassettes/{category_search.yml → category/search_first.yml} +739 -787
  41. data/test/vcr/cassettes/{subcategory_find.yml → category/subcategory_find.yml} +28 -28
  42. data/test/vcr/cassettes/{channel_search.yml → channel/search.yml} +3 -3
  43. data/test/vcr/cassettes/favorite/create_generic_with_offer.yml +126 -0
  44. data/test/vcr/cassettes/{favorite_create_offer.yml → favorite/create_location.yml} +7 -7
  45. data/test/vcr/cassettes/favorite/create_offer.yml +126 -0
  46. data/test/vcr/cassettes/favorite/create_store.yml +94 -0
  47. data/test/vcr/cassettes/favorite/delete_generic_with_offer.yml +171 -0
  48. data/test/vcr/cassettes/favorite/delete_location.yml +203 -0
  49. data/test/vcr/cassettes/favorite/delete_offer.yml +294 -0
  50. data/test/vcr/cassettes/favorite/delete_store.yml +258 -0
  51. data/test/vcr/cassettes/favorite/find_generic_with_offer.yml +323 -0
  52. data/test/vcr/cassettes/favorite/find_location.yml +158 -0
  53. data/test/vcr/cassettes/favorite/find_offer.yml +323 -0
  54. data/test/vcr/cassettes/favorite/find_store.yml +213 -0
  55. data/test/vcr/cassettes/{favorite_one_of_everything.yml → favorite/one_of_everything.yml} +181 -58
  56. data/test/vcr/cassettes/favorite/search.yml +346 -0
  57. data/test/vcr/cassettes/favorite/search_bad_member.yml +66 -0
  58. data/test/vcr/cassettes/favorite/search_locations.yml +113 -0
  59. data/test/vcr/cassettes/favorite/search_no_favorites.yml +66 -0
  60. data/test/vcr/cassettes/favorite/search_offers.yml +200 -0
  61. data/test/vcr/cassettes/favorite/search_stores.yml +178 -0
  62. data/test/vcr/cassettes/filter/find.yml +66 -0
  63. data/test/vcr/cassettes/{filter_search.yml → filter/search.yml} +12 -12
  64. data/test/vcr/cassettes/filter/search_first.yml +75 -0
  65. data/test/vcr/cassettes/location/find.yml +680 -0
  66. data/test/vcr/cassettes/location/search.yml +123 -0
  67. data/test/vcr/cassettes/{category_search_fail_member_key.yml → location/search_fail_member_key.yml} +6 -6
  68. data/test/vcr/cassettes/location/search_first.yml +123 -0
  69. data/test/vcr/cassettes/{member_show_failure.yml → member/show_failure.yml} +3 -3
  70. data/test/vcr/cassettes/{member_show_success.yml → member/show_success.yml} +5 -5
  71. data/test/vcr/cassettes/{favorite_delete_generic_with_offer.yml → member/update_success.yml} +7 -7
  72. data/test/vcr/cassettes/{member_authenticate_cvt_failure.yml → member_authenticate/cvt_failure.yml} +4 -4
  73. data/test/vcr/cassettes/{member_authenticate_cvt_success.yml → member_authenticate/cvt_success.yml} +6 -6
  74. data/test/vcr/cassettes/{member_authenticate_failure.yml → member_authenticate/failure.yml} +4 -4
  75. data/test/vcr/cassettes/{member_authenticate_member_key_failure.yml → member_authenticate/member_key_failure.yml} +3 -3
  76. data/test/vcr/cassettes/{member_authenticate_member_key_success.yml → member_authenticate/member_key_success.yml} +3 -3
  77. data/test/vcr/cassettes/{member_authenticate_success.yml → member_authenticate/success.yml} +5 -5
  78. data/test/vcr/cassettes/{member_device_search_failure.yml → member_device/search_failure.yml} +3 -3
  79. data/test/vcr/cassettes/member_device/search_success.yml +63 -0
  80. data/test/vcr/cassettes/{oauth_application_find.yml → oauth_application/find.yml} +19 -15
  81. data/test/vcr/cassettes/{oauth_application_search.yml → oauth_application/search.yml} +23 -19
  82. data/test/vcr/cassettes/oauth_application/search_oauth_first.yml +95 -0
  83. data/test/vcr/cassettes/oauth_application/token_find.yml +95 -0
  84. data/test/vcr/cassettes/oauth_application/token_search.yml +720 -0
  85. data/test/vcr/cassettes/oauth_application/token_search_tokens_first.yml +242 -0
  86. data/test/vcr/cassettes/offer/find.yml +158 -0
  87. data/test/vcr/cassettes/{offer_find_uses_remaining.yml → offer/find_uses_remaining.yml} +10 -10
  88. data/test/vcr/cassettes/offer/find_with_offer_uses_remaining.yml +158 -0
  89. data/test/vcr/cassettes/offer/search.yml +159 -0
  90. data/test/vcr/cassettes/{offer_search_fail_member_key.yml → offer/search_fail_member_key.yml} +6 -6
  91. data/test/vcr/cassettes/offer/search_first.yml +159 -0
  92. data/test/vcr/cassettes/offer/search_for_redeem.yml +159 -0
  93. data/test/vcr/cassettes/offer/with_aggregations.yml +1046 -0
  94. data/test/vcr/cassettes/redeem/offer_no_redeem_type.yml +36 -0
  95. data/test/vcr/cassettes/redeem/offer_with_redeem_type.yml +36 -0
  96. data/test/vcr/cassettes/redeem/redeem_offer_with_redeem_type_for_uses_remaining_test.yml +36 -0
  97. data/test/vcr/cassettes/redemption/find_by_member_key.yml +133 -0
  98. data/test/vcr/cassettes/redemption/search_by_member_key.yml +495 -0
  99. data/test/vcr/cassettes/redemption/search_by_member_key_first.yml +495 -0
  100. data/test/vcr/cassettes/{search_redemption_by_member_key_without_redemptions.yml → redemption/search_by_member_key_without_redemptions.yml} +6 -6
  101. data/test/vcr/cassettes/report/all_usage.yml +156 -0
  102. data/test/vcr/cassettes/{member_location_frequent.yml → report/member_location_frequent.yml} +6 -10
  103. data/test/vcr/cassettes/{member_location_recent.yml → report/member_location_recent.yml} +6 -6
  104. data/test/vcr/cassettes/{member_query_frequent.yml → report/member_query_frequent.yml} +6 -6
  105. data/test/vcr/cassettes/{member_query_recent.yml → report/member_query_recent.yml} +6 -6
  106. data/test/vcr/cassettes/report/usage.yml +156 -0
  107. data/test/vcr/cassettes/report/usage_other.yml +156 -0
  108. data/test/vcr/cassettes/{spot_find.yml → spot/find.yml} +3 -3
  109. data/test/vcr/cassettes/spot/search_by_campaign.yml +2727 -0
  110. data/test/vcr/cassettes/spot/search_by_channel.yml +956 -0
  111. data/test/vcr/cassettes/spot/search_by_channel_first.yml +956 -0
  112. data/test/vcr/cassettes/{store_find.yml → store/find.yml} +17 -17
  113. data/test/vcr/cassettes/store/national_stores.yml +3057 -0
  114. data/test/vcr/cassettes/{store_search.yml → store/search.yml} +21 -21
  115. data/test/vcr/cassettes/{store_search_fail_member_key.yml → store/search_fail_member_key.yml} +6 -6
  116. data/test/vcr/cassettes/store/search_first.yml +95 -0
  117. data/test/vcr/cassettes/token/find.yml +107 -0
  118. data/test/vcr/cassettes/token/get_first_token.yml +121 -0
  119. data/test/vcr/cassettes/token/search.yml +121 -0
  120. data/test/vcr/cassettes/{user_register_failure.yml → user_register/failure.yml} +4 -4
  121. data/test/vcr/cassettes/user_register/success.yml +101 -0
  122. data/test/vcr/cassettes/{user_update_success.yml → user_update/success.yml} +8 -6
  123. data/test/vcr/cassettes/{verify_filter.yml → verify/filter.yml} +41 -124
  124. data/test/vcr/cassettes/{verify_token.yml → verify/token.yml} +14 -11
  125. metadata +205 -174
  126. data/test/vcr/cassettes/all_usage.yml +0 -84
  127. data/test/vcr/cassettes/autocomplete_search.yml +0 -84
  128. data/test/vcr/cassettes/autocomplete_search_locations.yml +0 -66
  129. data/test/vcr/cassettes/campaign_find.yml +0 -232
  130. data/test/vcr/cassettes/campaign_search.yml +0 -1258
  131. data/test/vcr/cassettes/channel_find.yml +0 -57
  132. data/test/vcr/cassettes/favorite_create_generic_with_offer.yml +0 -93
  133. data/test/vcr/cassettes/favorite_create_location.yml +0 -91
  134. data/test/vcr/cassettes/favorite_create_store.yml +0 -92
  135. data/test/vcr/cassettes/favorite_delete_location.yml +0 -94
  136. data/test/vcr/cassettes/favorite_delete_offer.yml +0 -93
  137. data/test/vcr/cassettes/favorite_delete_store.yml +0 -94
  138. data/test/vcr/cassettes/favorite_find_generic_with_offer.yml +0 -93
  139. data/test/vcr/cassettes/favorite_find_location.yml +0 -179
  140. data/test/vcr/cassettes/favorite_find_offer.yml +0 -93
  141. data/test/vcr/cassettes/favorite_find_store.yml +0 -181
  142. data/test/vcr/cassettes/favorite_search.yml +0 -131
  143. data/test/vcr/cassettes/favorite_search_bad_member.yml +0 -49
  144. data/test/vcr/cassettes/favorite_search_locations.yml +0 -99
  145. data/test/vcr/cassettes/favorite_search_no_favorites.yml +0 -49
  146. data/test/vcr/cassettes/favorite_search_offers.yml +0 -169
  147. data/test/vcr/cassettes/favorite_search_stores.yml +0 -92
  148. data/test/vcr/cassettes/filter_find.yml +0 -174
  149. data/test/vcr/cassettes/find_redemption_by_member_key.yml +0 -131
  150. data/test/vcr/cassettes/location_find.yml +0 -505
  151. data/test/vcr/cassettes/location_search.yml +0 -123
  152. data/test/vcr/cassettes/member_device_search_success.yml +0 -48
  153. data/test/vcr/cassettes/member_update_success.yml +0 -183
  154. data/test/vcr/cassettes/national_stores.yml +0 -1914
  155. data/test/vcr/cassettes/oauth_application_token_find.yml +0 -92
  156. data/test/vcr/cassettes/oauth_application_token_search.yml +0 -95
  157. data/test/vcr/cassettes/offer_find.yml +0 -149
  158. data/test/vcr/cassettes/offer_find_with_offer_uses_remaining.yml +0 -149
  159. data/test/vcr/cassettes/offer_search.yml +0 -148
  160. data/test/vcr/cassettes/offer_with_aggregations.yml +0 -934
  161. data/test/vcr/cassettes/redeem_offer_no_redeem_type.yml +0 -38
  162. data/test/vcr/cassettes/redeem_offer_with_redeem_type.yml +0 -38
  163. data/test/vcr/cassettes/redeem_offer_with_redeem_type_for_uses_remaining_test.yml +0 -38
  164. data/test/vcr/cassettes/search_redemption_by_member_key.yml +0 -762
  165. data/test/vcr/cassettes/spot_search_by_campaign.yml +0 -2954
  166. data/test/vcr/cassettes/spot_search_by_channel.yml +0 -1192
  167. data/test/vcr/cassettes/token_find.yml +0 -99
  168. data/test/vcr/cassettes/token_get_first_token.yml +0 -113
  169. data/test/vcr/cassettes/token_search.yml +0 -113
  170. data/test/vcr/cassettes/usage.yml +0 -84
  171. data/test/vcr/cassettes/usage_other.yml +0 -84
  172. 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-demo.adcrws.com/v1/members/API_RUBY_GEM_TEST_NOREDEMPTIONS/offer_redemptions
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
- - Thu, 21 Jan 2016 18:34:30 GMT
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
- - f5894614-6b90-4abc-ae2f-bd402af47ca6
50
+ - 57e9263c-bc99-41d9-b61d-1f34330c26f7
51
51
  X-Runtime:
52
- - '0.015456'
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: Thu, 21 Jan 2016 18:34:35 GMT
62
- recorded_with: VCR 3.0.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
@@ -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
- - Tue, 15 Dec 2015 19:52:08 GMT
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
- - 6252e0f3-01a9-4482-ae9d-85039f2df7cf
50
+ - afe0c6c0-5867-4fe5-a2ad-e2160421a9c1
55
51
  X-Runtime:
56
- - '3.457430'
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: Tue, 15 Dec 2015 19:52:08 GMT
77
- recorded_with: VCR 3.0.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
- - Thu, 21 Jan 2016 18:34:14 GMT
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
- - 30361232-b111-416f-9519-598f6e3121a8
50
+ - 3d51a774-5a57-40af-a70c-8a01e940141f
51
51
  X-Runtime:
52
- - '8.243233'
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: Thu, 21 Jan 2016 18:34:19 GMT
73
- recorded_with: VCR 3.0.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
- - Thu, 21 Jan 2016 18:33:57 GMT
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
- - 3d92c074-41d6-4429-a624-5eb93804f53a
50
+ - 4129541d-5ee8-4934-84ee-6cc6b3ea4ca5
51
51
  X-Runtime:
52
- - '3.268299'
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: Thu, 21 Jan 2016 18:34:02 GMT
73
- recorded_with: VCR 3.0.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
- - Thu, 21 Jan 2016 18:34:06 GMT
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
- - a2e9f0fc-4e75-4907-92be-c990608d6fa5
50
+ - 8e25b1b2-2d6f-433c-8525-6b02214dce82
51
51
  X-Runtime:
52
- - '8.219986'
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: Thu, 21 Jan 2016 18:34:10 GMT
73
- recorded_with: VCR 3.0.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