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.
Files changed (116) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +1 -0
  3. data/.ruby-version +1 -1
  4. data/.travis.yml +6 -4
  5. data/Gemfile.lock +40 -80
  6. data/README.md +2 -4
  7. data/Rakefile +1 -1
  8. data/access.gemspec +4 -6
  9. data/lib/access/response.rb +1 -1
  10. data/lib/access/version.rb +1 -1
  11. data/test/access/campaign_test.rb +3 -3
  12. data/test/access/category_test.rb +1 -0
  13. data/test/access/device_test.rb +1 -4
  14. data/test/access/member_test.rb +2 -5
  15. data/test/access/redeem_test.rb +1 -0
  16. data/test/access/report_test.rb +14 -7
  17. data/test/access/spot_test.rb +4 -4
  18. data/test/access/user_test.rb +9 -10
  19. data/test/access/verify_test.rb +1 -1
  20. data/test/vcr/cassettes/autocomplete/search_categories.yml +11 -9
  21. data/test/vcr/cassettes/autocomplete/search_first.yml +21 -19
  22. data/test/vcr/cassettes/autocomplete/search_locations.yml +13 -11
  23. data/test/vcr/cassettes/autocomplete/search_offers.yml +15 -13
  24. data/test/vcr/cassettes/autocomplete/search_stores.yml +17 -15
  25. data/test/vcr/cassettes/campaign/find.yml +139 -0
  26. data/test/vcr/cassettes/campaign/search.yml +89 -971
  27. data/test/vcr/cassettes/campaign/search_first.yml +139 -0
  28. data/test/vcr/cassettes/category/find.yml +11 -9
  29. data/test/vcr/cassettes/category/search.yml +14 -35
  30. data/test/vcr/cassettes/category/search_fail_member_key.yml +11 -9
  31. data/test/vcr/cassettes/category/search_first.yml +27 -69
  32. data/test/vcr/cassettes/category/subcategory_find.yml +12 -118
  33. data/test/vcr/cassettes/channel/search.yml +26 -18
  34. data/test/vcr/cassettes/favorite/create_generic_with_offer.yml +95 -93
  35. data/test/vcr/cassettes/favorite/create_location.yml +63 -17
  36. data/test/vcr/cassettes/favorite/create_offer.yml +95 -93
  37. data/test/vcr/cassettes/favorite/create_store.yml +59 -59
  38. data/test/vcr/cassettes/favorite/delete_generic_with_offer.yml +110 -108
  39. data/test/vcr/cassettes/favorite/delete_location.yml +139 -93
  40. data/test/vcr/cassettes/favorite/delete_offer.yml +204 -200
  41. data/test/vcr/cassettes/favorite/delete_store.yml +117 -143
  42. data/test/vcr/cassettes/favorite/find_generic_with_offer.yml +180 -242
  43. data/test/vcr/cassettes/favorite/find_location.yml +124 -78
  44. data/test/vcr/cassettes/favorite/find_offer.yml +180 -242
  45. data/test/vcr/cassettes/favorite/find_store.yml +103 -129
  46. data/test/vcr/cassettes/favorite/one_of_everything.yml +323 -1031
  47. data/test/vcr/cassettes/favorite/search.yml +269 -281
  48. data/test/vcr/cassettes/favorite/search_bad_member.yml +9 -11
  49. data/test/vcr/cassettes/favorite/search_locations.yml +103 -62
  50. data/test/vcr/cassettes/favorite/search_no_favorites.yml +9 -11
  51. data/test/vcr/cassettes/favorite/search_offers.yml +148 -148
  52. data/test/vcr/cassettes/favorite/search_stores.yml +70 -127
  53. data/test/vcr/cassettes/filter/find.yml +11 -9
  54. data/test/vcr/cassettes/filter/search.yml +14 -12
  55. data/test/vcr/cassettes/filter/search_first.yml +14 -12
  56. data/test/vcr/cassettes/location/find.yml +562 -634
  57. data/test/vcr/cassettes/location/search.yml +82 -77
  58. data/test/vcr/cassettes/location/search_fail_member_key.yml +11 -9
  59. data/test/vcr/cassettes/location/search_first.yml +82 -77
  60. data/test/vcr/cassettes/member/show_failure.yml +14 -14
  61. data/test/vcr/cassettes/member/show_success.yml +16 -16
  62. data/test/vcr/cassettes/member/update_success.yml +16 -16
  63. data/test/vcr/cassettes/member_authenticate/cvt_failure.yml +13 -13
  64. data/test/vcr/cassettes/member_authenticate/cvt_success.yml +16 -16
  65. data/test/vcr/cassettes/member_authenticate/failure.yml +54 -9
  66. data/test/vcr/cassettes/member_authenticate/member_key_failure.yml +13 -13
  67. data/test/vcr/cassettes/member_authenticate/member_key_success.yml +21 -20
  68. data/test/vcr/cassettes/member_authenticate/success.yml +70 -13
  69. data/test/vcr/cassettes/member_device/search_failure.yml +16 -16
  70. data/test/vcr/cassettes/member_device/search_success.yml +423 -31
  71. data/test/vcr/cassettes/oauth_application/find.yml +19 -21
  72. data/test/vcr/cassettes/oauth_application/search.yml +21 -23
  73. data/test/vcr/cassettes/oauth_application/search_oauth_first.yml +21 -23
  74. data/test/vcr/cassettes/oauth_application/token_find.yml +33 -34
  75. data/test/vcr/cassettes/oauth_application/token_search.yml +97 -532
  76. data/test/vcr/cassettes/oauth_application/token_search_tokens_first.yml +33 -178
  77. data/test/vcr/cassettes/offer/find.yml +97 -109
  78. data/test/vcr/cassettes/offer/find_uses_remaining.yml +16 -14
  79. data/test/vcr/cassettes/offer/find_with_offer_uses_remaining.yml +97 -109
  80. data/test/vcr/cassettes/offer/search.yml +99 -111
  81. data/test/vcr/cassettes/offer/search_fail_member_key.yml +11 -9
  82. data/test/vcr/cassettes/offer/search_first.yml +99 -111
  83. data/test/vcr/cassettes/offer/search_for_redeem.yml +99 -111
  84. data/test/vcr/cassettes/offer/with_aggregations.yml +920 -959
  85. data/test/vcr/cassettes/redeem/offer_no_redeem_type.yml +8 -8
  86. data/test/vcr/cassettes/redeem/offer_with_redeem_type.yml +14 -7
  87. data/test/vcr/cassettes/redeem/redeem_offer_with_redeem_type_for_uses_remaining_test.yml +15 -8
  88. data/test/vcr/cassettes/redemption/find_by_member_key.yml +49 -47
  89. data/test/vcr/cassettes/redemption/search_by_member_key.yml +516 -228
  90. data/test/vcr/cassettes/redemption/search_by_member_key_first.yml +516 -228
  91. data/test/vcr/cassettes/redemption/search_by_member_key_without_redemptions.yml +11 -9
  92. data/test/vcr/cassettes/report/all_usage.yml +15 -100
  93. data/test/vcr/cassettes/report/member_location_frequent.yml +15 -19
  94. data/test/vcr/cassettes/report/member_location_recent.yml +15 -19
  95. data/test/vcr/cassettes/report/member_query_frequent.yml +15 -19
  96. data/test/vcr/cassettes/report/member_query_recent.yml +15 -19
  97. data/test/vcr/cassettes/report/usage.yml +15 -100
  98. data/test/vcr/cassettes/report/usage_other.yml +15 -100
  99. data/test/vcr/cassettes/spot/find.yml +9 -9
  100. data/test/vcr/cassettes/spot/search_by_campaign.yml +93 -2667
  101. data/test/vcr/cassettes/spot/search_by_channel.yml +73 -906
  102. data/test/vcr/cassettes/spot/search_by_channel_first.yml +73 -906
  103. data/test/vcr/cassettes/store/find.yml +48 -45
  104. data/test/vcr/cassettes/store/national_stores.yml +1764 -2884
  105. data/test/vcr/cassettes/store/search.yml +52 -49
  106. data/test/vcr/cassettes/store/search_fail_member_key.yml +11 -9
  107. data/test/vcr/cassettes/store/search_first.yml +52 -49
  108. data/test/vcr/cassettes/token/find.yml +53 -29
  109. data/test/vcr/cassettes/token/get_first_token.yml +55 -31
  110. data/test/vcr/cassettes/token/search.yml +55 -31
  111. data/test/vcr/cassettes/user_register/failure.yml +13 -13
  112. data/test/vcr/cassettes/user_register/success.yml +11 -109
  113. data/test/vcr/cassettes/user_update/success.yml +58 -12
  114. data/test/vcr/cassettes/verify/filter.yml +108 -94
  115. data/test/vcr/cassettes/verify/token.yml +15 -13
  116. 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.8.0
22
+ - nginx/1.12.2
23
23
  Date:
24
- - Mon, 22 Feb 2016 20:31:25 GMT
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
- - 57e9263c-bc99-41d9-b61d-1f34330c26f7
52
+ - ea0563f2-5098-48d7-87c5-c36d8fd94e3e
51
53
  X-Runtime:
52
- - '0.012980'
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: Mon, 22 Feb 2016 20:31:28 GMT
62
- recorded_with: VCR 3.0.1
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-demo.adcrws.com/v1/all_usage
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.8.0
22
+ - nginx/1.12.2
23
23
  Date:
24
- - Mon, 22 Feb 2016 23:10:15 GMT
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
- - '"2bffd12d21ecd40fb5510c6365fa18f1"'
48
+ - '"80051d1219cee5a0c4f9983ff6dbcfb0"'
47
49
  Cache-Control:
48
50
  - max-age=0, private, must-revalidate
49
51
  X-Request-Id:
50
- - e0bc0e3a-ee5d-4210-9c15-7f7344dab488
52
+ - bd83d4a1-2f47-435f-a524-edb20f9569e7
51
53
  X-Runtime:
52
- - '0.545086'
54
+ - '0.020805'
53
55
  body:
54
56
  encoding: UTF-8
55
57
  string: |-
56
58
  {
57
59
  "info": {
58
- "total_api_calls": 49049,
59
- "time_period": "2016-02-01T00:00:00Z to now",
60
+ "total_api_calls": 0,
61
+ "time_period": "2018-06-01T06:00:00Z to now",
60
62
  "interval": "1d",
61
- "report_env": "demo"
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: Mon, 22 Feb 2016 23:10:17 GMT
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-demo.adcrws.com/v1/members/API_RUBY_GEM_TEST/locations/frequent
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.8.0
22
+ - nginx/1.12.2
23
23
  Date:
24
- - Mon, 22 Feb 2016 23:10:14 GMT
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
- - '"7640078b22e19a2094d1708621d0047f"'
48
+ - '"334a5fef25e68ae51f22a7c749972504"'
47
49
  Cache-Control:
48
50
  - max-age=0, private, must-revalidate
49
51
  X-Request-Id:
50
- - afe0c6c0-5867-4fe5-a2ad-e2160421a9c1
52
+ - 14e457ba-f71f-4929-80e3-55b74b453850
51
53
  X-Runtime:
52
- - '2.933998'
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": "2015-01-01 to now",
60
- "report_env": "demo",
61
+ "time_period": "now-1M to now",
62
+ "report_env": "staging",
61
63
  "organization_id": 160,
62
- "program_id": 235589813
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: Mon, 22 Feb 2016 23:10:16 GMT
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-demo.adcrws.com/v1/members/API_RUBY_GEM_TEST/locations/recent
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.8.0
22
+ - nginx/1.12.2
23
23
  Date:
24
- - Mon, 22 Feb 2016 23:10:07 GMT
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
- - '"c93c9ce4adce02186714eea8c731eb95"'
48
+ - '"334a5fef25e68ae51f22a7c749972504"'
47
49
  Cache-Control:
48
50
  - max-age=0, private, must-revalidate
49
51
  X-Request-Id:
50
- - 3d51a774-5a57-40af-a70c-8a01e940141f
52
+ - 9adbcd3b-34f1-4bab-95c1-cf22ba02c981
51
53
  X-Runtime:
52
- - '6.484404'
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": "2015-01-01 to now",
60
- "report_env": "demo",
61
+ "time_period": "now-1M to now",
62
+ "report_env": "staging",
61
63
  "organization_id": 160,
62
- "program_id": 235589813
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: Mon, 22 Feb 2016 23:10:10 GMT
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-demo.adcrws.com/v1/members/API_RUBY_GEM_TEST/queries/frequent
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.8.0
22
+ - nginx/1.12.2
23
23
  Date:
24
- - Mon, 22 Feb 2016 23:10:11 GMT
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
- - '"ba857dc26afd3e67e0f5db25a2ae9332"'
48
+ - '"334a5fef25e68ae51f22a7c749972504"'
47
49
  Cache-Control:
48
50
  - max-age=0, private, must-revalidate
49
51
  X-Request-Id:
50
- - 4129541d-5ee8-4934-84ee-6cc6b3ea4ca5
52
+ - 7742b574-e068-479a-91c4-8b18c27ffc48
51
53
  X-Runtime:
52
- - '1.425712'
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": "2015-01-01 to now",
60
- "report_env": "demo",
61
+ "time_period": "now-1M to now",
62
+ "report_env": "staging",
61
63
  "organization_id": 160,
62
- "program_id": 235589813
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: Mon, 22 Feb 2016 23:10:13 GMT
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-demo.adcrws.com/v1/members/API_RUBY_GEM_TEST/queries/recent
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.8.0
22
+ - nginx/1.12.2
23
23
  Date:
24
- - Mon, 22 Feb 2016 23:10:00 GMT
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
- - '"bb19e0d1cb68c1044602f186cc21863a"'
48
+ - '"334a5fef25e68ae51f22a7c749972504"'
47
49
  Cache-Control:
48
50
  - max-age=0, private, must-revalidate
49
51
  X-Request-Id:
50
- - 8e25b1b2-2d6f-433c-8525-6b02214dce82
52
+ - 3aacbf69-c61d-46b2-8569-3f6f6ac0dfd2
51
53
  X-Runtime:
52
- - '2.203884'
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": "2015-01-01 to now",
60
- "report_env": "demo",
61
+ "time_period": "now-1M to now",
62
+ "report_env": "staging",
61
63
  "organization_id": 160,
62
- "program_id": 235589813
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: Mon, 22 Feb 2016 23:10:03 GMT
68
+ recorded_at: Thu, 28 Jun 2018 17:11:29 GMT
73
69
  recorded_with: VCR 3.0.1