chartmogul-ruby 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/ChartMogul_Metrics_MRRChurnRate/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +40 -0
- data/ChartMogul_Metrics_MRRChurnRate/behaves_like_Metrics_API_resource/should_have_entries.yml +40 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +82 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/changelog.md +8 -0
- data/chartmogul-ruby.gemspec +29 -0
- data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/correctly_interracts_with_the_API.yml +189 -0
- data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/correctly_raises_errors_on_404.yml +46 -0
- data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/correctly_raises_errors_on_422.yml +48 -0
- data/fixtures/vcr_cassettes/ChartMogul_Enrichment_Customer/API_Interactions/adds_custom_attributes.yml +80 -0
- data/fixtures/vcr_cassettes/ChartMogul_Enrichment_Customer/API_Interactions/adds_required_tags.yml +79 -0
- data/fixtures/vcr_cassettes/ChartMogul_Enrichment_Customer/API_Interactions/raises_404_if_no_customers_found.yml +38 -0
- data/fixtures/vcr_cassettes/ChartMogul_Enrichment_Customer/API_Interactions/removes_custom_attributes.yml +80 -0
- data/fixtures/vcr_cassettes/ChartMogul_Enrichment_Customer/API_Interactions/removes_tags.yml +80 -0
- data/fixtures/vcr_cassettes/ChartMogul_Enrichment_Customer/API_Interactions/returns_all_customers_through_list_all_endpoint.yml +47 -0
- data/fixtures/vcr_cassettes/ChartMogul_Enrichment_Customer/API_Interactions/returns_customer_through_retrieve_endpoint.yml +42 -0
- data/fixtures/vcr_cassettes/ChartMogul_Enrichment_Customer/API_Interactions/returns_right_customers_through_search_endpoint.yml +43 -0
- data/fixtures/vcr_cassettes/ChartMogul_Enrichment_Customer/API_Interactions/updates_custom_attributes.yml +82 -0
- data/fixtures/vcr_cassettes/ChartMogul_Import_Customer/API_Interactions/correctly_handles_a_422_response.yml +50 -0
- data/fixtures/vcr_cassettes/ChartMogul_Import_Customer/API_Interactions/correctly_interracts_with_the_API.yml +240 -0
- data/fixtures/vcr_cassettes/ChartMogul_Import_CustomerInvoices/API_Interactions/correctly_interracts_with_the_API.yml +298 -0
- data/fixtures/vcr_cassettes/ChartMogul_Import_DataSource/API_Interactions/correctly_interracts_with_the_API.yml +189 -0
- data/fixtures/vcr_cassettes/ChartMogul_Import_DataSource/API_Interactions/correctly_raises_errors_on_404.yml +46 -0
- data/fixtures/vcr_cassettes/ChartMogul_Import_DataSource/API_Interactions/correctly_raises_errors_on_422.yml +48 -0
- data/fixtures/vcr_cassettes/ChartMogul_Import_Plan/API_Interractions/correctly_handles_a_422_error.yml +51 -0
- data/fixtures/vcr_cassettes/ChartMogul_Import_Plan/API_Interractions/correctly_interracts_with_the_API.yml +152 -0
- data/fixtures/vcr_cassettes/ChartMogul_Import_Subscription/API_Interactions/correctly_interracts_with_the_API.yml +340 -0
- data/fixtures/vcr_cassettes/ChartMogul_Import_Transactions_Payment/API_Interactions/correctly_interracts_with_the_API.yml +243 -0
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARPA/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +42 -0
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARPA/behaves_like_Metrics_API_resource/should_have_entries.yml +42 -0
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARR/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +42 -0
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARR/behaves_like_Metrics_API_resource/should_have_entries.yml +42 -0
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ASP/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +40 -0
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ASP/behaves_like_Metrics_API_resource/should_have_entries.yml +40 -0
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Activity/behaves_like_Pageable/should_be_pageable.yml +41 -0
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Activity/should_have_Activity_entries.yml +41 -0
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_AllKeyMetric/should_have_entries.yml +42 -0
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerChurnRate/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +40 -0
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerChurnRate/behaves_like_Metrics_API_resource/should_have_entries.yml +40 -0
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerCount/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +42 -0
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerCount/behaves_like_Metrics_API_resource/should_have_entries.yml +42 -0
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_LTV/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +40 -0
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_LTV/behaves_like_Metrics_API_resource/should_have_entries.yml +40 -0
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRR/behaves_like_Summary/should_have_summary.yml +42 -0
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRR/should_have_entries.yml +42 -0
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRRChurnRate/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +40 -0
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRRChurnRate/behaves_like_Metrics_API_resource/should_have_entries.yml +40 -0
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Subscription/behaves_like_Pageable/should_be_pageable.yml +40 -0
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Subscription/should_have_Subscription_entries.yml +40 -0
- data/lib/chartmogul.rb +77 -0
- data/lib/chartmogul/api/actions/all.rb +28 -0
- data/lib/chartmogul/api/actions/create.rb +39 -0
- data/lib/chartmogul/api/actions/custom.rb +42 -0
- data/lib/chartmogul/api/actions/destroy.rb +14 -0
- data/lib/chartmogul/api/actions/update.rb +19 -0
- data/lib/chartmogul/api_resource.rb +57 -0
- data/lib/chartmogul/concerns/entries.rb +37 -0
- data/lib/chartmogul/concerns/pageable.rb +14 -0
- data/lib/chartmogul/concerns/summary.rb +20 -0
- data/lib/chartmogul/config_attributes.rb +15 -0
- data/lib/chartmogul/configuration.rb +6 -0
- data/lib/chartmogul/enrichment/customer.rb +114 -0
- data/lib/chartmogul/errors/chartmogul_error.rb +19 -0
- data/lib/chartmogul/errors/configuration_error.rb +4 -0
- data/lib/chartmogul/errors/forbidden_error.rb +4 -0
- data/lib/chartmogul/errors/not_found_error.rb +4 -0
- data/lib/chartmogul/errors/resource_invalid_error.rb +4 -0
- data/lib/chartmogul/errors/schema_invalid_error.rb +4 -0
- data/lib/chartmogul/import/customer.rb +38 -0
- data/lib/chartmogul/import/customer_invoices.rb +40 -0
- data/lib/chartmogul/import/data_source.rb +19 -0
- data/lib/chartmogul/import/invoice.rb +64 -0
- data/lib/chartmogul/import/line_items/one_time.rb +25 -0
- data/lib/chartmogul/import/line_items/subscription.rb +31 -0
- data/lib/chartmogul/import/plan.rb +21 -0
- data/lib/chartmogul/import/subscription.rb +30 -0
- data/lib/chartmogul/import/transactions/payment.rb +26 -0
- data/lib/chartmogul/import/transactions/refund.rb +26 -0
- data/lib/chartmogul/metrics/activity.rb +32 -0
- data/lib/chartmogul/metrics/all_key_metrics.rb +25 -0
- data/lib/chartmogul/metrics/arpa.rb +19 -0
- data/lib/chartmogul/metrics/arr.rb +19 -0
- data/lib/chartmogul/metrics/asp.rb +19 -0
- data/lib/chartmogul/metrics/base.rb +56 -0
- data/lib/chartmogul/metrics/customer_churn_rate.rb +19 -0
- data/lib/chartmogul/metrics/customer_count.rb +19 -0
- data/lib/chartmogul/metrics/ltv.rb +19 -0
- data/lib/chartmogul/metrics/mrr.rb +26 -0
- data/lib/chartmogul/metrics/mrr_churn_rate.rb +19 -0
- data/lib/chartmogul/metrics/subscription.rb +35 -0
- data/lib/chartmogul/object.rb +119 -0
- data/lib/chartmogul/resource_path.rb +42 -0
- data/lib/chartmogul/summary.rb +7 -0
- data/lib/chartmogul/utils/hash_snake_caser.rb +50 -0
- data/lib/chartmogul/utils/json_parser.rb +11 -0
- data/lib/chartmogul/version.rb +3 -0
- metadata +232 -0
@@ -0,0 +1,243 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.chartmogul.com/v1/import/data_sources
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"name":"Invoice Payment Test Data Source"}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.2
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Authorization:
|
15
|
+
- Basic YmIzN2I0Njk5NjNlMjhlYjY2MjA1ZWYzZmU1MWQ1NmM6ZmM1YjQxYzM3YTNlZTcwYjQyN2UwYzU1ODg2NzA2ZmQ=
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 201
|
19
|
+
message:
|
20
|
+
headers:
|
21
|
+
server:
|
22
|
+
- nginx/1.9.10
|
23
|
+
date:
|
24
|
+
- Thu, 23 Jun 2016 14:47:22 GMT
|
25
|
+
content-type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
transfer-encoding:
|
28
|
+
- chunked
|
29
|
+
connection:
|
30
|
+
- close
|
31
|
+
x-frame-options:
|
32
|
+
- SAMEORIGIN
|
33
|
+
x-xss-protection:
|
34
|
+
- 1; mode=block
|
35
|
+
x-content-type-options:
|
36
|
+
- nosniff
|
37
|
+
etag:
|
38
|
+
- W/"ad541e45449462884dced1b527da7376"
|
39
|
+
cache-control:
|
40
|
+
- max-age=0, private, must-revalidate
|
41
|
+
x-request-id:
|
42
|
+
- d542ffb6-712b-4678-8363-d6d69f6a9111
|
43
|
+
x-runtime:
|
44
|
+
- '0.533348'
|
45
|
+
strict-transport-security:
|
46
|
+
- max-age=15768000
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"uuid":"ds_e25656b4-035e-433c-80e7-46c783271e9f","name":"Invoice Payment
|
50
|
+
Test Data Source","created_at":"2016-06-23T14:47:21.996Z","status":"never_imported"}'
|
51
|
+
http_version:
|
52
|
+
recorded_at: Thu, 23 Jun 2016 14:47:22 GMT
|
53
|
+
- request:
|
54
|
+
method: post
|
55
|
+
uri: https://api.chartmogul.com/v1/import/customers
|
56
|
+
body:
|
57
|
+
encoding: UTF-8
|
58
|
+
string: '{"data_source_uuid":"ds_e25656b4-035e-433c-80e7-46c783271e9f","external_id":"test_cus_ext_id","name":"Test
|
59
|
+
Customer"}'
|
60
|
+
headers:
|
61
|
+
User-Agent:
|
62
|
+
- Faraday v0.9.2
|
63
|
+
Content-Type:
|
64
|
+
- application/json
|
65
|
+
Authorization:
|
66
|
+
- Basic YmIzN2I0Njk5NjNlMjhlYjY2MjA1ZWYzZmU1MWQ1NmM6ZmM1YjQxYzM3YTNlZTcwYjQyN2UwYzU1ODg2NzA2ZmQ=
|
67
|
+
response:
|
68
|
+
status:
|
69
|
+
code: 201
|
70
|
+
message:
|
71
|
+
headers:
|
72
|
+
server:
|
73
|
+
- nginx/1.9.10
|
74
|
+
date:
|
75
|
+
- Thu, 23 Jun 2016 14:47:22 GMT
|
76
|
+
content-type:
|
77
|
+
- application/json; charset=utf-8
|
78
|
+
transfer-encoding:
|
79
|
+
- chunked
|
80
|
+
connection:
|
81
|
+
- close
|
82
|
+
x-frame-options:
|
83
|
+
- SAMEORIGIN
|
84
|
+
x-xss-protection:
|
85
|
+
- 1; mode=block
|
86
|
+
x-content-type-options:
|
87
|
+
- nosniff
|
88
|
+
etag:
|
89
|
+
- W/"aeef9d5a4cd0ede802c52624fed11704"
|
90
|
+
cache-control:
|
91
|
+
- max-age=0, private, must-revalidate
|
92
|
+
x-request-id:
|
93
|
+
- 204614cd-6de5-482d-9e85-78ad381a412f
|
94
|
+
x-runtime:
|
95
|
+
- '0.227565'
|
96
|
+
strict-transport-security:
|
97
|
+
- max-age=15768000
|
98
|
+
body:
|
99
|
+
encoding: UTF-8
|
100
|
+
string: '{"uuid":"cus_fe40373d-fe78-4bd4-8c14-9d459abf7849","external_id":"test_cus_ext_id","name":"Test
|
101
|
+
Customer","company":"","email":"","city":"","state":"","country":"","zip":"","data_source_uuid":"ds_e25656b4-035e-433c-80e7-46c783271e9f"}'
|
102
|
+
http_version:
|
103
|
+
recorded_at: Thu, 23 Jun 2016 14:47:22 GMT
|
104
|
+
- request:
|
105
|
+
method: post
|
106
|
+
uri: https://api.chartmogul.com/v1/import/customers/cus_fe40373d-fe78-4bd4-8c14-9d459abf7849/invoices
|
107
|
+
body:
|
108
|
+
encoding: UTF-8
|
109
|
+
string: '{"invoices":[{"date":"2016-01-01 12:00:00 +0000","currency":"USD","line_items":[{"type":"one_time","amount_in_cents":1000}],"external_id":"test_tr_inv_ext_id"}],"customer_uuid":"cus_fe40373d-fe78-4bd4-8c14-9d459abf7849"}'
|
110
|
+
headers:
|
111
|
+
User-Agent:
|
112
|
+
- Faraday v0.9.2
|
113
|
+
Content-Type:
|
114
|
+
- application/json
|
115
|
+
Authorization:
|
116
|
+
- Basic YmIzN2I0Njk5NjNlMjhlYjY2MjA1ZWYzZmU1MWQ1NmM6ZmM1YjQxYzM3YTNlZTcwYjQyN2UwYzU1ODg2NzA2ZmQ=
|
117
|
+
response:
|
118
|
+
status:
|
119
|
+
code: 201
|
120
|
+
message:
|
121
|
+
headers:
|
122
|
+
server:
|
123
|
+
- nginx/1.9.10
|
124
|
+
date:
|
125
|
+
- Thu, 23 Jun 2016 14:47:23 GMT
|
126
|
+
content-type:
|
127
|
+
- application/json; charset=utf-8
|
128
|
+
transfer-encoding:
|
129
|
+
- chunked
|
130
|
+
connection:
|
131
|
+
- close
|
132
|
+
x-frame-options:
|
133
|
+
- SAMEORIGIN
|
134
|
+
x-xss-protection:
|
135
|
+
- 1; mode=block
|
136
|
+
x-content-type-options:
|
137
|
+
- nosniff
|
138
|
+
etag:
|
139
|
+
- W/"150cd5f67ca1628b517a908c79aea1f0"
|
140
|
+
cache-control:
|
141
|
+
- max-age=0, private, must-revalidate
|
142
|
+
x-request-id:
|
143
|
+
- a4ac21cc-0a36-4e85-a055-5a0d1f568caf
|
144
|
+
x-runtime:
|
145
|
+
- '0.063138'
|
146
|
+
strict-transport-security:
|
147
|
+
- max-age=15768000
|
148
|
+
body:
|
149
|
+
encoding: UTF-8
|
150
|
+
string: '{"invoices":[{"uuid":"inv_8418d38b-e132-481f-ad4e-d914809f9e19","external_id":"test_tr_inv_ext_id","date":"2016-01-01T12:00:00.000Z","due_date":null,"currency":"USD","line_items":[{"uuid":"li_3be740bd-c725-444d-9745-6476fa3a6d02","external_id":null,"type":"one_time","description":"","amount_in_cents":1000,"quantity":1,"discount_code":"","discount_amount_in_cents":0,"tax_amount_in_cents":0}],"transactions":[]}]}'
|
151
|
+
http_version:
|
152
|
+
recorded_at: Thu, 23 Jun 2016 14:47:23 GMT
|
153
|
+
- request:
|
154
|
+
method: post
|
155
|
+
uri: https://api.chartmogul.com/v1/import/invoices/inv_8418d38b-e132-481f-ad4e-d914809f9e19/transactions
|
156
|
+
body:
|
157
|
+
encoding: UTF-8
|
158
|
+
string: '{"type":"payment","date":"2016-01-01 12:00:00 +0000","result":"successful","external_id":"test_tr_ext_id","invoice_uuid":"inv_8418d38b-e132-481f-ad4e-d914809f9e19"}'
|
159
|
+
headers:
|
160
|
+
User-Agent:
|
161
|
+
- Faraday v0.9.2
|
162
|
+
Content-Type:
|
163
|
+
- application/json
|
164
|
+
Authorization:
|
165
|
+
- Basic YmIzN2I0Njk5NjNlMjhlYjY2MjA1ZWYzZmU1MWQ1NmM6ZmM1YjQxYzM3YTNlZTcwYjQyN2UwYzU1ODg2NzA2ZmQ=
|
166
|
+
response:
|
167
|
+
status:
|
168
|
+
code: 201
|
169
|
+
message:
|
170
|
+
headers:
|
171
|
+
server:
|
172
|
+
- nginx/1.9.10
|
173
|
+
date:
|
174
|
+
- Thu, 23 Jun 2016 14:47:23 GMT
|
175
|
+
content-type:
|
176
|
+
- application/json; charset=utf-8
|
177
|
+
transfer-encoding:
|
178
|
+
- chunked
|
179
|
+
connection:
|
180
|
+
- close
|
181
|
+
x-frame-options:
|
182
|
+
- SAMEORIGIN
|
183
|
+
x-xss-protection:
|
184
|
+
- 1; mode=block
|
185
|
+
x-content-type-options:
|
186
|
+
- nosniff
|
187
|
+
etag:
|
188
|
+
- W/"48311e31dff0fe8a0f49c3aa28e735e4"
|
189
|
+
cache-control:
|
190
|
+
- max-age=0, private, must-revalidate
|
191
|
+
x-request-id:
|
192
|
+
- 2119149d-ee00-47ac-9c61-20ccef186710
|
193
|
+
x-runtime:
|
194
|
+
- '0.062007'
|
195
|
+
strict-transport-security:
|
196
|
+
- max-age=15768000
|
197
|
+
body:
|
198
|
+
encoding: UTF-8
|
199
|
+
string: '{"uuid":"tr_448b68d3-63cd-4646-933b-c18807c16bad","external_id":"test_tr_ext_id","type":"payment","date":"2016-01-01T12:00:00.000Z","result":"successful"}'
|
200
|
+
http_version:
|
201
|
+
recorded_at: Thu, 23 Jun 2016 14:47:23 GMT
|
202
|
+
- request:
|
203
|
+
method: delete
|
204
|
+
uri: https://api.chartmogul.com/v1/import/data_sources/ds_e25656b4-035e-433c-80e7-46c783271e9f
|
205
|
+
body:
|
206
|
+
encoding: US-ASCII
|
207
|
+
string: ''
|
208
|
+
headers:
|
209
|
+
User-Agent:
|
210
|
+
- Faraday v0.9.2
|
211
|
+
Authorization:
|
212
|
+
- Basic YmIzN2I0Njk5NjNlMjhlYjY2MjA1ZWYzZmU1MWQ1NmM6ZmM1YjQxYzM3YTNlZTcwYjQyN2UwYzU1ODg2NzA2ZmQ=
|
213
|
+
response:
|
214
|
+
status:
|
215
|
+
code: 204
|
216
|
+
message:
|
217
|
+
headers:
|
218
|
+
server:
|
219
|
+
- nginx/1.9.10
|
220
|
+
date:
|
221
|
+
- Thu, 23 Jun 2016 14:47:23 GMT
|
222
|
+
connection:
|
223
|
+
- close
|
224
|
+
x-frame-options:
|
225
|
+
- SAMEORIGIN
|
226
|
+
x-xss-protection:
|
227
|
+
- 1; mode=block
|
228
|
+
x-content-type-options:
|
229
|
+
- nosniff
|
230
|
+
cache-control:
|
231
|
+
- no-cache
|
232
|
+
x-request-id:
|
233
|
+
- 55112f9c-3f91-4ee0-85f4-0ba629912856
|
234
|
+
x-runtime:
|
235
|
+
- '0.009105'
|
236
|
+
strict-transport-security:
|
237
|
+
- max-age=15768000
|
238
|
+
body:
|
239
|
+
encoding: UTF-8
|
240
|
+
string: ''
|
241
|
+
http_version:
|
242
|
+
recorded_at: Thu, 23 Jun 2016 14:47:23 GMT
|
243
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.chartmogul.com/v1/metrics/arpa?end-date=2015-02-01&start-date=2015-01-01
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.2
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Authorization:
|
15
|
+
- Basic YzU0NjYwNDU5ZTMzODBkYzUyNmVhYjNiZjlhZGIyOGQ6N2MyMDEzOTYzZjQ2NGZiMmQ3ZjVjOTJkZDZiMjk2NDQ=
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message:
|
20
|
+
headers:
|
21
|
+
server:
|
22
|
+
- nginx/1.9.10
|
23
|
+
date:
|
24
|
+
- Fri, 01 Jul 2016 14:47:46 GMT
|
25
|
+
content-type:
|
26
|
+
- application/json
|
27
|
+
content-length:
|
28
|
+
- '1165'
|
29
|
+
connection:
|
30
|
+
- close
|
31
|
+
vary:
|
32
|
+
- Accept-Encoding
|
33
|
+
status:
|
34
|
+
- 200 OK
|
35
|
+
access-control-allow-credentials:
|
36
|
+
- 'true'
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: '{"entries":[{"date":"2015-01-01","arpa":0},{"date":"2015-01-02","arpa":0},{"date":"2015-01-03","arpa":0},{"date":"2015-01-04","arpa":0},{"date":"2015-01-05","arpa":0},{"date":"2015-01-06","arpa":0},{"date":"2015-01-07","arpa":0},{"date":"2015-01-08","arpa":0},{"date":"2015-01-09","arpa":11371},{"date":"2015-01-10","arpa":11371},{"date":"2015-01-11","arpa":11371},{"date":"2015-01-12","arpa":16092},{"date":"2015-01-13","arpa":16092},{"date":"2015-01-14","arpa":13963},{"date":"2015-01-15","arpa":13963},{"date":"2015-01-16","arpa":13963},{"date":"2015-01-17","arpa":13963},{"date":"2015-01-18","arpa":13171},{"date":"2015-01-19","arpa":13171},{"date":"2015-01-20","arpa":13171},{"date":"2015-01-21","arpa":13171},{"date":"2015-01-22","arpa":10996},{"date":"2015-01-23","arpa":13474},{"date":"2015-01-24","arpa":13474},{"date":"2015-01-25","arpa":13474},{"date":"2015-01-26","arpa":0},{"date":"2015-01-27","arpa":10000},{"date":"2015-01-28","arpa":10000},{"date":"2015-01-29","arpa":3436},{"date":"2015-01-30","arpa":15620},{"date":"2015-01-31","arpa":15620},{"date":"2015-02-01","arpa":15620}],"summary":{"current":10843,"previous":10843,"percentage-change":0.0}}'
|
40
|
+
http_version:
|
41
|
+
recorded_at: Fri, 01 Jul 2016 14:47:46 GMT
|
42
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.chartmogul.com/v1/metrics/arpa?end-date=2015-02-01&start-date=2015-01-01
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.2
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Authorization:
|
15
|
+
- Basic YzU0NjYwNDU5ZTMzODBkYzUyNmVhYjNiZjlhZGIyOGQ6N2MyMDEzOTYzZjQ2NGZiMmQ3ZjVjOTJkZDZiMjk2NDQ=
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message:
|
20
|
+
headers:
|
21
|
+
server:
|
22
|
+
- nginx/1.9.10
|
23
|
+
date:
|
24
|
+
- Fri, 01 Jul 2016 14:47:45 GMT
|
25
|
+
content-type:
|
26
|
+
- application/json
|
27
|
+
content-length:
|
28
|
+
- '1165'
|
29
|
+
connection:
|
30
|
+
- close
|
31
|
+
vary:
|
32
|
+
- Accept-Encoding
|
33
|
+
status:
|
34
|
+
- 200 OK
|
35
|
+
access-control-allow-credentials:
|
36
|
+
- 'true'
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: '{"entries":[{"date":"2015-01-01","arpa":0},{"date":"2015-01-02","arpa":0},{"date":"2015-01-03","arpa":0},{"date":"2015-01-04","arpa":0},{"date":"2015-01-05","arpa":0},{"date":"2015-01-06","arpa":0},{"date":"2015-01-07","arpa":0},{"date":"2015-01-08","arpa":0},{"date":"2015-01-09","arpa":11371},{"date":"2015-01-10","arpa":11371},{"date":"2015-01-11","arpa":11371},{"date":"2015-01-12","arpa":16092},{"date":"2015-01-13","arpa":16092},{"date":"2015-01-14","arpa":13963},{"date":"2015-01-15","arpa":13963},{"date":"2015-01-16","arpa":13963},{"date":"2015-01-17","arpa":13963},{"date":"2015-01-18","arpa":13171},{"date":"2015-01-19","arpa":13171},{"date":"2015-01-20","arpa":13171},{"date":"2015-01-21","arpa":13171},{"date":"2015-01-22","arpa":10996},{"date":"2015-01-23","arpa":13474},{"date":"2015-01-24","arpa":13474},{"date":"2015-01-25","arpa":13474},{"date":"2015-01-26","arpa":0},{"date":"2015-01-27","arpa":10000},{"date":"2015-01-28","arpa":10000},{"date":"2015-01-29","arpa":3436},{"date":"2015-01-30","arpa":15620},{"date":"2015-01-31","arpa":15620},{"date":"2015-02-01","arpa":15620}],"summary":{"current":10843,"previous":10843,"percentage-change":0.0}}'
|
40
|
+
http_version:
|
41
|
+
recorded_at: Fri, 01 Jul 2016 14:47:45 GMT
|
42
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.chartmogul.com/v1/metrics/arr?end-date=2015-02-01&start-date=2015-01-01
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.2
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Authorization:
|
15
|
+
- Basic YzU0NjYwNDU5ZTMzODBkYzUyNmVhYjNiZjlhZGIyOGQ6N2MyMDEzOTYzZjQ2NGZiMmQ3ZjVjOTJkZDZiMjk2NDQ=
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message:
|
20
|
+
headers:
|
21
|
+
server:
|
22
|
+
- nginx/1.9.10
|
23
|
+
date:
|
24
|
+
- Fri, 01 Jul 2016 14:47:45 GMT
|
25
|
+
content-type:
|
26
|
+
- application/json
|
27
|
+
content-length:
|
28
|
+
- '1158'
|
29
|
+
connection:
|
30
|
+
- close
|
31
|
+
vary:
|
32
|
+
- Accept-Encoding
|
33
|
+
status:
|
34
|
+
- 200 OK
|
35
|
+
access-control-allow-credentials:
|
36
|
+
- 'true'
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: '{"entries":[{"date":"2015-01-01","arr":0},{"date":"2015-01-02","arr":0},{"date":"2015-01-03","arr":0},{"date":"2015-01-04","arr":0},{"date":"2015-01-05","arr":0},{"date":"2015-01-06","arr":0},{"date":"2015-01-07","arr":0},{"date":"2015-01-08","arr":0},{"date":"2015-01-09","arr":409344},{"date":"2015-01-10","arr":409344},{"date":"2015-01-11","arr":409344},{"date":"2015-01-12","arr":772392},{"date":"2015-01-13","arr":772392},{"date":"2015-01-14","arr":670236},{"date":"2015-01-15","arr":670236},{"date":"2015-01-16","arr":670236},{"date":"2015-01-17","arr":670236},{"date":"2015-01-18","arr":790236},{"date":"2015-01-19","arr":790236},{"date":"2015-01-20","arr":790236},{"date":"2015-01-21","arr":790236},{"date":"2015-01-22","arr":659784},{"date":"2015-01-23","arr":646740},{"date":"2015-01-24","arr":646740},{"date":"2015-01-25","arr":646740},{"date":"2015-01-26","arr":0},{"date":"2015-01-27","arr":120000},{"date":"2015-01-28","arr":120000},{"date":"2015-01-29","arr":82452},{"date":"2015-01-30","arr":187440},{"date":"2015-01-31","arr":187440},{"date":"2015-02-01","arr":187440}],"summary":{"current":520452,"previous":520452,"percentage-change":0.0}}'
|
40
|
+
http_version:
|
41
|
+
recorded_at: Fri, 01 Jul 2016 14:47:45 GMT
|
42
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.chartmogul.com/v1/metrics/arr?end-date=2015-02-01&start-date=2015-01-01
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.2
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Authorization:
|
15
|
+
- Basic YzU0NjYwNDU5ZTMzODBkYzUyNmVhYjNiZjlhZGIyOGQ6N2MyMDEzOTYzZjQ2NGZiMmQ3ZjVjOTJkZDZiMjk2NDQ=
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message:
|
20
|
+
headers:
|
21
|
+
server:
|
22
|
+
- nginx/1.9.10
|
23
|
+
date:
|
24
|
+
- Fri, 01 Jul 2016 14:47:45 GMT
|
25
|
+
content-type:
|
26
|
+
- application/json
|
27
|
+
content-length:
|
28
|
+
- '1158'
|
29
|
+
connection:
|
30
|
+
- close
|
31
|
+
vary:
|
32
|
+
- Accept-Encoding
|
33
|
+
status:
|
34
|
+
- 200 OK
|
35
|
+
access-control-allow-credentials:
|
36
|
+
- 'true'
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: '{"entries":[{"date":"2015-01-01","arr":0},{"date":"2015-01-02","arr":0},{"date":"2015-01-03","arr":0},{"date":"2015-01-04","arr":0},{"date":"2015-01-05","arr":0},{"date":"2015-01-06","arr":0},{"date":"2015-01-07","arr":0},{"date":"2015-01-08","arr":0},{"date":"2015-01-09","arr":409344},{"date":"2015-01-10","arr":409344},{"date":"2015-01-11","arr":409344},{"date":"2015-01-12","arr":772392},{"date":"2015-01-13","arr":772392},{"date":"2015-01-14","arr":670236},{"date":"2015-01-15","arr":670236},{"date":"2015-01-16","arr":670236},{"date":"2015-01-17","arr":670236},{"date":"2015-01-18","arr":790236},{"date":"2015-01-19","arr":790236},{"date":"2015-01-20","arr":790236},{"date":"2015-01-21","arr":790236},{"date":"2015-01-22","arr":659784},{"date":"2015-01-23","arr":646740},{"date":"2015-01-24","arr":646740},{"date":"2015-01-25","arr":646740},{"date":"2015-01-26","arr":0},{"date":"2015-01-27","arr":120000},{"date":"2015-01-28","arr":120000},{"date":"2015-01-29","arr":82452},{"date":"2015-01-30","arr":187440},{"date":"2015-01-31","arr":187440},{"date":"2015-02-01","arr":187440}],"summary":{"current":520452,"previous":520452,"percentage-change":0.0}}'
|
40
|
+
http_version:
|
41
|
+
recorded_at: Fri, 01 Jul 2016 14:47:45 GMT
|
42
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.chartmogul.com/v1/metrics/asp?end-date=2015-02-01&start-date=2015-01-01
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.2
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Authorization:
|
15
|
+
- Basic YzU0NjYwNDU5ZTMzODBkYzUyNmVhYjNiZjlhZGIyOGQ6N2MyMDEzOTYzZjQ2NGZiMmQ3ZjVjOTJkZDZiMjk2NDQ=
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message:
|
20
|
+
headers:
|
21
|
+
server:
|
22
|
+
- nginx/1.9.10
|
23
|
+
date:
|
24
|
+
- Fri, 01 Jul 2016 14:47:44 GMT
|
25
|
+
content-type:
|
26
|
+
- application/json
|
27
|
+
content-length:
|
28
|
+
- '138'
|
29
|
+
connection:
|
30
|
+
- close
|
31
|
+
status:
|
32
|
+
- 200 OK
|
33
|
+
access-control-allow-credentials:
|
34
|
+
- 'true'
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: '{"entries":[{"date":"2015-01-31","asp":12731},{"date":"2015-02-01","asp":0}],"summary":{"current":0,"previous":0,"percentage-change":0.0}}'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Fri, 01 Jul 2016 14:47:44 GMT
|
40
|
+
recorded_with: VCR 3.0.3
|