chartmogul-ruby 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +10 -10
- data/.rspec +2 -2
- data/.travis.yml +4 -4
- data/Gemfile +4 -4
- data/LICENSE.txt +21 -21
- data/README.md +111 -111
- data/Rakefile +6 -6
- data/bin/console +14 -14
- data/bin/setup +9 -9
- data/changelog.md +27 -27
- data/chartmogul-ruby.gemspec +29 -29
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/adds_custom_attributes.yml +80 -80
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/adds_required_tags.yml +79 -79
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/can_page_through_search_endpoint.yml +43 -43
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/correctly_handles_a_422_response.yml +50 -50
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/correctly_interracts_with_the_API.yml +244 -244
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/merges_customers.yml +185 -185
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/raises_401_if_invalid_credentials.yml +38 -38
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/raises_404_if_no_customers_found.yml +38 -38
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/raises_422_for_update_with_invalid_data.yml +86 -86
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/removes_custom_attributes.yml +80 -80
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/removes_tags.yml +80 -80
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/returns_all_customers_through_list_all_endpoint.yml +47 -47
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/returns_customer_through_retrieve_endpoint.yml +42 -42
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/returns_right_customers_through_search_endpoint.yml +43 -43
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/updates_custom_attributes.yml +82 -82
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/updates_customer.yml +139 -139
- data/fixtures/vcr_cassettes/ChartMogul_Customer/_find_by_external_id/when_external_id_is_provided/returns_matching_user_if_exists.yml +102 -102
- data/fixtures/vcr_cassettes/ChartMogul_Customer/_find_by_external_id/when_external_id_is_provided/returns_nil_if_customer_does_not_exist.yml +101 -101
- data/fixtures/vcr_cassettes/ChartMogul_CustomerInvoices/API_Interactions/correctly_interracts_with_the_API.yml +298 -298
- data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/correctly_interracts_with_the_API.yml +189 -189
- data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/correctly_raises_errors_on_404.yml +46 -46
- data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/correctly_raises_errors_on_422.yml +48 -48
- data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/retrieves_existing_data_source_matching_uuid.yml +101 -101
- data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/deletes_an_invoice.yml +37 -0
- data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/deletes_an_invoice_with_class_method.yml +37 -0
- data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/raises_error_on_deleting_non-existing_invoice.yml +42 -0
- data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/returns_all_invoices_through_list_all_endpoint.yml +46 -46
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARPA/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +42 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARPA/behaves_like_Metrics_API_resource/should_have_entries.yml +42 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARR/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +42 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARR/behaves_like_Metrics_API_resource/should_have_entries.yml +42 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ASP/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +40 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ASP/behaves_like_Metrics_API_resource/should_have_entries.yml +40 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Activity/behaves_like_Pageable/should_be_pageable.yml +41 -41
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Activity/should_have_Activity_entries.yml +41 -41
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_AllKeyMetric/should_have_entries.yml +42 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerChurnRate/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +40 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerChurnRate/behaves_like_Metrics_API_resource/should_have_entries.yml +40 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerCount/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +42 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerCount/behaves_like_Metrics_API_resource/should_have_entries.yml +42 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_LTV/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +40 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_LTV/behaves_like_Metrics_API_resource/should_have_entries.yml +40 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRR/behaves_like_Summary/should_have_summary.yml +42 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRR/should_have_entries.yml +42 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRRChurnRate/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +40 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRRChurnRate/behaves_like_Metrics_API_resource/should_have_entries.yml +40 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Subscription/behaves_like_Pageable/should_be_pageable.yml +40 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Subscription/should_have_Subscription_entries.yml +40 -40
- data/fixtures/vcr_cassettes/ChartMogul_Ping/pings/and_fails_on_incorrect_credentials.yml +38 -38
- data/fixtures/vcr_cassettes/ChartMogul_Ping/pings/when_credentials_correct.yml +38 -38
- data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/correctly_handles_a_422_error.yml +51 -51
- data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/correctly_interacts_with_the_API.yml +152 -152
- data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/deletes_existing_plan.yml +198 -198
- data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/retrieves_existing_plan_by_uuid.yml +151 -151
- data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/updates_existing_plan.yml +198 -198
- data/fixtures/vcr_cassettes/ChartMogul_Subscription/API_Interactions/correctly_interracts_with_the_API.yml +340 -340
- data/fixtures/vcr_cassettes/ChartMogul_Subscription/API_Interactions/has_multiple_aliases.yml +101 -101
- data/fixtures/vcr_cassettes/ChartMogul_Transactions_Payment/API_Interactions/correctly_interracts_with_the_API.yml +243 -243
- data/lib/chartmogul.rb +79 -79
- data/lib/chartmogul/api/actions/all.rb +23 -23
- data/lib/chartmogul/api/actions/create.rb +39 -39
- data/lib/chartmogul/api/actions/custom.rb +37 -37
- data/lib/chartmogul/api/actions/destroy.rb +28 -14
- data/lib/chartmogul/api/actions/update.rb +19 -19
- data/lib/chartmogul/api_resource.rb +68 -68
- data/lib/chartmogul/concerns/entries.rb +39 -39
- data/lib/chartmogul/concerns/pageable.rb +13 -13
- data/lib/chartmogul/concerns/pageable2.rb +12 -12
- data/lib/chartmogul/concerns/summary.rb +20 -20
- data/lib/chartmogul/config_attributes.rb +15 -15
- data/lib/chartmogul/configuration.rb +6 -6
- data/lib/chartmogul/customer.rb +155 -155
- data/lib/chartmogul/customer_invoices.rb +44 -44
- data/lib/chartmogul/data_source.rb +38 -38
- data/lib/chartmogul/enrichment/customer.rb +141 -141
- data/lib/chartmogul/errors/chartmogul_error.rb +19 -19
- data/lib/chartmogul/errors/configuration_error.rb +4 -4
- data/lib/chartmogul/errors/forbidden_error.rb +4 -4
- data/lib/chartmogul/errors/not_found_error.rb +4 -4
- data/lib/chartmogul/errors/resource_invalid_error.rb +4 -4
- data/lib/chartmogul/errors/schema_invalid_error.rb +4 -4
- data/lib/chartmogul/errors/unauthorized_error.rb +4 -4
- data/lib/chartmogul/invoice.rb +83 -78
- data/lib/chartmogul/line_items/one_time.rb +23 -23
- data/lib/chartmogul/line_items/subscription.rb +29 -29
- data/lib/chartmogul/metrics/activity.rb +34 -34
- data/lib/chartmogul/metrics/all_key_metrics.rb +25 -25
- data/lib/chartmogul/metrics/arpa.rb +19 -19
- data/lib/chartmogul/metrics/arr.rb +19 -19
- data/lib/chartmogul/metrics/asp.rb +19 -19
- data/lib/chartmogul/metrics/base.rb +56 -56
- data/lib/chartmogul/metrics/customer_churn_rate.rb +19 -19
- data/lib/chartmogul/metrics/customer_count.rb +19 -19
- data/lib/chartmogul/metrics/ltv.rb +19 -19
- data/lib/chartmogul/metrics/mrr.rb +26 -26
- data/lib/chartmogul/metrics/mrr_churn_rate.rb +19 -19
- data/lib/chartmogul/metrics/subscription.rb +37 -37
- data/lib/chartmogul/object.rb +119 -119
- data/lib/chartmogul/ping.rb +14 -14
- data/lib/chartmogul/plan.rb +41 -41
- data/lib/chartmogul/resource_path.rb +42 -42
- data/lib/chartmogul/subscription.rb +48 -48
- data/lib/chartmogul/summary.rb +7 -7
- data/lib/chartmogul/transactions/payment.rb +24 -24
- data/lib/chartmogul/transactions/refund.rb +24 -24
- data/lib/chartmogul/utils/hash_snake_caser.rb +50 -50
- data/lib/chartmogul/utils/json_parser.rb +11 -11
- data/lib/chartmogul/version.rb +3 -3
- metadata +5 -2
@@ -1,189 +1,189 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api.chartmogul.com/v1/data_sources
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"name":"Test Data Source"}'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v0.9.1
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Authorization:
|
15
|
-
- Basic ZTk5MGJkMjNmNTQzYWNjZGY3ZDg4Yjk2OWNiMzAwOWI6NWM4YThlY2UxMTFmYmE4NTE1MGVmNzBjYmZmM2I3ZWI=
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 201
|
19
|
-
message:
|
20
|
-
headers:
|
21
|
-
server:
|
22
|
-
- nginx/1.9.10
|
23
|
-
date:
|
24
|
-
- Sun, 05 Jun 2016 17:02:43 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/"2cbdc42d67c582b8b8e9b5b649142c6d"
|
39
|
-
cache-control:
|
40
|
-
- max-age=0, private, must-revalidate
|
41
|
-
x-request-id:
|
42
|
-
- 8e251145-840a-4a38-ba7c-468416d00c7a
|
43
|
-
x-runtime:
|
44
|
-
- '0.195234'
|
45
|
-
strict-transport-security:
|
46
|
-
- max-age=15768000
|
47
|
-
body:
|
48
|
-
encoding: UTF-8
|
49
|
-
string: '{"uuid":"ds_9afd5143-3884-4977-9281-dbb5f15df461","name":"Test Data
|
50
|
-
Source","created_at":"2016-06-05T17:02:43.282Z","status":"never_imported"}'
|
51
|
-
http_version:
|
52
|
-
recorded_at: Sun, 05 Jun 2016 17:02:43 GMT
|
53
|
-
- request:
|
54
|
-
method: get
|
55
|
-
uri: https://api.chartmogul.com/v1/data_sources
|
56
|
-
body:
|
57
|
-
encoding: US-ASCII
|
58
|
-
string: ''
|
59
|
-
headers:
|
60
|
-
User-Agent:
|
61
|
-
- Faraday v0.9.1
|
62
|
-
Authorization:
|
63
|
-
- Basic ZTk5MGJkMjNmNTQzYWNjZGY3ZDg4Yjk2OWNiMzAwOWI6NWM4YThlY2UxMTFmYmE4NTE1MGVmNzBjYmZmM2I3ZWI=
|
64
|
-
response:
|
65
|
-
status:
|
66
|
-
code: 200
|
67
|
-
message:
|
68
|
-
headers:
|
69
|
-
server:
|
70
|
-
- nginx/1.9.10
|
71
|
-
date:
|
72
|
-
- Sun, 05 Jun 2016 17:02:43 GMT
|
73
|
-
content-type:
|
74
|
-
- application/json; charset=utf-8
|
75
|
-
transfer-encoding:
|
76
|
-
- chunked
|
77
|
-
connection:
|
78
|
-
- close
|
79
|
-
x-frame-options:
|
80
|
-
- SAMEORIGIN
|
81
|
-
x-xss-protection:
|
82
|
-
- 1; mode=block
|
83
|
-
x-content-type-options:
|
84
|
-
- nosniff
|
85
|
-
etag:
|
86
|
-
- W/"8d1f4cac283a3aecfeea3e952b417e64"
|
87
|
-
cache-control:
|
88
|
-
- max-age=0, private, must-revalidate
|
89
|
-
x-request-id:
|
90
|
-
- a8ee9d0b-364e-4f70-a17f-bfb4883e6ba7
|
91
|
-
x-runtime:
|
92
|
-
- '0.264734'
|
93
|
-
strict-transport-security:
|
94
|
-
- max-age=15768000
|
95
|
-
body:
|
96
|
-
encoding: UTF-8
|
97
|
-
string: '{"data_sources":[{"uuid":"ds_9afd5143-3884-4977-9281-dbb5f15df461","name":"Test
|
98
|
-
Data Source","created_at":"2016-06-05T17:02:43.282Z","status":"never_imported"}]}'
|
99
|
-
http_version:
|
100
|
-
recorded_at: Sun, 05 Jun 2016 17:02:43 GMT
|
101
|
-
- request:
|
102
|
-
method: delete
|
103
|
-
uri: https://api.chartmogul.com/v1/data_sources/ds_9afd5143-3884-4977-9281-dbb5f15df461
|
104
|
-
body:
|
105
|
-
encoding: US-ASCII
|
106
|
-
string: ''
|
107
|
-
headers:
|
108
|
-
User-Agent:
|
109
|
-
- Faraday v0.9.1
|
110
|
-
Authorization:
|
111
|
-
- Basic ZTk5MGJkMjNmNTQzYWNjZGY3ZDg4Yjk2OWNiMzAwOWI6NWM4YThlY2UxMTFmYmE4NTE1MGVmNzBjYmZmM2I3ZWI=
|
112
|
-
response:
|
113
|
-
status:
|
114
|
-
code: 204
|
115
|
-
message:
|
116
|
-
headers:
|
117
|
-
server:
|
118
|
-
- nginx/1.9.10
|
119
|
-
date:
|
120
|
-
- Sun, 05 Jun 2016 17:02:44 GMT
|
121
|
-
connection:
|
122
|
-
- close
|
123
|
-
x-frame-options:
|
124
|
-
- SAMEORIGIN
|
125
|
-
x-xss-protection:
|
126
|
-
- 1; mode=block
|
127
|
-
x-content-type-options:
|
128
|
-
- nosniff
|
129
|
-
cache-control:
|
130
|
-
- no-cache
|
131
|
-
x-request-id:
|
132
|
-
- 11210672-f1bf-4590-9db3-77894c7aa619
|
133
|
-
x-runtime:
|
134
|
-
- '0.008042'
|
135
|
-
strict-transport-security:
|
136
|
-
- max-age=15768000
|
137
|
-
body:
|
138
|
-
encoding: UTF-8
|
139
|
-
string: ''
|
140
|
-
http_version:
|
141
|
-
recorded_at: Sun, 05 Jun 2016 17:02:44 GMT
|
142
|
-
- request:
|
143
|
-
method: get
|
144
|
-
uri: https://api.chartmogul.com/v1/data_sources
|
145
|
-
body:
|
146
|
-
encoding: US-ASCII
|
147
|
-
string: ''
|
148
|
-
headers:
|
149
|
-
User-Agent:
|
150
|
-
- Faraday v0.9.1
|
151
|
-
Authorization:
|
152
|
-
- Basic ZTk5MGJkMjNmNTQzYWNjZGY3ZDg4Yjk2OWNiMzAwOWI6NWM4YThlY2UxMTFmYmE4NTE1MGVmNzBjYmZmM2I3ZWI=
|
153
|
-
response:
|
154
|
-
status:
|
155
|
-
code: 200
|
156
|
-
message:
|
157
|
-
headers:
|
158
|
-
server:
|
159
|
-
- nginx/1.9.10
|
160
|
-
date:
|
161
|
-
- Sun, 05 Jun 2016 17:02:54 GMT
|
162
|
-
content-type:
|
163
|
-
- application/json; charset=utf-8
|
164
|
-
transfer-encoding:
|
165
|
-
- chunked
|
166
|
-
connection:
|
167
|
-
- close
|
168
|
-
x-frame-options:
|
169
|
-
- SAMEORIGIN
|
170
|
-
x-xss-protection:
|
171
|
-
- 1; mode=block
|
172
|
-
x-content-type-options:
|
173
|
-
- nosniff
|
174
|
-
etag:
|
175
|
-
- W/"fff2ed4cc06b2b7851a2db975ef7e229"
|
176
|
-
cache-control:
|
177
|
-
- max-age=0, private, must-revalidate
|
178
|
-
x-request-id:
|
179
|
-
- 1340397d-947c-4483-a970-d3707ea5d8a3
|
180
|
-
x-runtime:
|
181
|
-
- '0.121280'
|
182
|
-
strict-transport-security:
|
183
|
-
- max-age=15768000
|
184
|
-
body:
|
185
|
-
encoding: UTF-8
|
186
|
-
string: '{"data_sources":[]}'
|
187
|
-
http_version:
|
188
|
-
recorded_at: Sun, 05 Jun 2016 17:02:54 GMT
|
189
|
-
recorded_with: VCR 3.0.3
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.chartmogul.com/v1/data_sources
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"name":"Test Data Source"}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Authorization:
|
15
|
+
- Basic ZTk5MGJkMjNmNTQzYWNjZGY3ZDg4Yjk2OWNiMzAwOWI6NWM4YThlY2UxMTFmYmE4NTE1MGVmNzBjYmZmM2I3ZWI=
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 201
|
19
|
+
message:
|
20
|
+
headers:
|
21
|
+
server:
|
22
|
+
- nginx/1.9.10
|
23
|
+
date:
|
24
|
+
- Sun, 05 Jun 2016 17:02:43 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/"2cbdc42d67c582b8b8e9b5b649142c6d"
|
39
|
+
cache-control:
|
40
|
+
- max-age=0, private, must-revalidate
|
41
|
+
x-request-id:
|
42
|
+
- 8e251145-840a-4a38-ba7c-468416d00c7a
|
43
|
+
x-runtime:
|
44
|
+
- '0.195234'
|
45
|
+
strict-transport-security:
|
46
|
+
- max-age=15768000
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"uuid":"ds_9afd5143-3884-4977-9281-dbb5f15df461","name":"Test Data
|
50
|
+
Source","created_at":"2016-06-05T17:02:43.282Z","status":"never_imported"}'
|
51
|
+
http_version:
|
52
|
+
recorded_at: Sun, 05 Jun 2016 17:02:43 GMT
|
53
|
+
- request:
|
54
|
+
method: get
|
55
|
+
uri: https://api.chartmogul.com/v1/data_sources
|
56
|
+
body:
|
57
|
+
encoding: US-ASCII
|
58
|
+
string: ''
|
59
|
+
headers:
|
60
|
+
User-Agent:
|
61
|
+
- Faraday v0.9.1
|
62
|
+
Authorization:
|
63
|
+
- Basic ZTk5MGJkMjNmNTQzYWNjZGY3ZDg4Yjk2OWNiMzAwOWI6NWM4YThlY2UxMTFmYmE4NTE1MGVmNzBjYmZmM2I3ZWI=
|
64
|
+
response:
|
65
|
+
status:
|
66
|
+
code: 200
|
67
|
+
message:
|
68
|
+
headers:
|
69
|
+
server:
|
70
|
+
- nginx/1.9.10
|
71
|
+
date:
|
72
|
+
- Sun, 05 Jun 2016 17:02:43 GMT
|
73
|
+
content-type:
|
74
|
+
- application/json; charset=utf-8
|
75
|
+
transfer-encoding:
|
76
|
+
- chunked
|
77
|
+
connection:
|
78
|
+
- close
|
79
|
+
x-frame-options:
|
80
|
+
- SAMEORIGIN
|
81
|
+
x-xss-protection:
|
82
|
+
- 1; mode=block
|
83
|
+
x-content-type-options:
|
84
|
+
- nosniff
|
85
|
+
etag:
|
86
|
+
- W/"8d1f4cac283a3aecfeea3e952b417e64"
|
87
|
+
cache-control:
|
88
|
+
- max-age=0, private, must-revalidate
|
89
|
+
x-request-id:
|
90
|
+
- a8ee9d0b-364e-4f70-a17f-bfb4883e6ba7
|
91
|
+
x-runtime:
|
92
|
+
- '0.264734'
|
93
|
+
strict-transport-security:
|
94
|
+
- max-age=15768000
|
95
|
+
body:
|
96
|
+
encoding: UTF-8
|
97
|
+
string: '{"data_sources":[{"uuid":"ds_9afd5143-3884-4977-9281-dbb5f15df461","name":"Test
|
98
|
+
Data Source","created_at":"2016-06-05T17:02:43.282Z","status":"never_imported"}]}'
|
99
|
+
http_version:
|
100
|
+
recorded_at: Sun, 05 Jun 2016 17:02:43 GMT
|
101
|
+
- request:
|
102
|
+
method: delete
|
103
|
+
uri: https://api.chartmogul.com/v1/data_sources/ds_9afd5143-3884-4977-9281-dbb5f15df461
|
104
|
+
body:
|
105
|
+
encoding: US-ASCII
|
106
|
+
string: ''
|
107
|
+
headers:
|
108
|
+
User-Agent:
|
109
|
+
- Faraday v0.9.1
|
110
|
+
Authorization:
|
111
|
+
- Basic ZTk5MGJkMjNmNTQzYWNjZGY3ZDg4Yjk2OWNiMzAwOWI6NWM4YThlY2UxMTFmYmE4NTE1MGVmNzBjYmZmM2I3ZWI=
|
112
|
+
response:
|
113
|
+
status:
|
114
|
+
code: 204
|
115
|
+
message:
|
116
|
+
headers:
|
117
|
+
server:
|
118
|
+
- nginx/1.9.10
|
119
|
+
date:
|
120
|
+
- Sun, 05 Jun 2016 17:02:44 GMT
|
121
|
+
connection:
|
122
|
+
- close
|
123
|
+
x-frame-options:
|
124
|
+
- SAMEORIGIN
|
125
|
+
x-xss-protection:
|
126
|
+
- 1; mode=block
|
127
|
+
x-content-type-options:
|
128
|
+
- nosniff
|
129
|
+
cache-control:
|
130
|
+
- no-cache
|
131
|
+
x-request-id:
|
132
|
+
- 11210672-f1bf-4590-9db3-77894c7aa619
|
133
|
+
x-runtime:
|
134
|
+
- '0.008042'
|
135
|
+
strict-transport-security:
|
136
|
+
- max-age=15768000
|
137
|
+
body:
|
138
|
+
encoding: UTF-8
|
139
|
+
string: ''
|
140
|
+
http_version:
|
141
|
+
recorded_at: Sun, 05 Jun 2016 17:02:44 GMT
|
142
|
+
- request:
|
143
|
+
method: get
|
144
|
+
uri: https://api.chartmogul.com/v1/data_sources
|
145
|
+
body:
|
146
|
+
encoding: US-ASCII
|
147
|
+
string: ''
|
148
|
+
headers:
|
149
|
+
User-Agent:
|
150
|
+
- Faraday v0.9.1
|
151
|
+
Authorization:
|
152
|
+
- Basic ZTk5MGJkMjNmNTQzYWNjZGY3ZDg4Yjk2OWNiMzAwOWI6NWM4YThlY2UxMTFmYmE4NTE1MGVmNzBjYmZmM2I3ZWI=
|
153
|
+
response:
|
154
|
+
status:
|
155
|
+
code: 200
|
156
|
+
message:
|
157
|
+
headers:
|
158
|
+
server:
|
159
|
+
- nginx/1.9.10
|
160
|
+
date:
|
161
|
+
- Sun, 05 Jun 2016 17:02:54 GMT
|
162
|
+
content-type:
|
163
|
+
- application/json; charset=utf-8
|
164
|
+
transfer-encoding:
|
165
|
+
- chunked
|
166
|
+
connection:
|
167
|
+
- close
|
168
|
+
x-frame-options:
|
169
|
+
- SAMEORIGIN
|
170
|
+
x-xss-protection:
|
171
|
+
- 1; mode=block
|
172
|
+
x-content-type-options:
|
173
|
+
- nosniff
|
174
|
+
etag:
|
175
|
+
- W/"fff2ed4cc06b2b7851a2db975ef7e229"
|
176
|
+
cache-control:
|
177
|
+
- max-age=0, private, must-revalidate
|
178
|
+
x-request-id:
|
179
|
+
- 1340397d-947c-4483-a970-d3707ea5d8a3
|
180
|
+
x-runtime:
|
181
|
+
- '0.121280'
|
182
|
+
strict-transport-security:
|
183
|
+
- max-age=15768000
|
184
|
+
body:
|
185
|
+
encoding: UTF-8
|
186
|
+
string: '{"data_sources":[]}'
|
187
|
+
http_version:
|
188
|
+
recorded_at: Sun, 05 Jun 2016 17:02:54 GMT
|
189
|
+
recorded_with: VCR 3.0.3
|
@@ -1,46 +1,46 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: delete
|
5
|
-
uri: https://api.chartmogul.com/v1/data_sources/1234-a-uuid-that-doesnt-exist
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v0.9.1
|
12
|
-
Authorization:
|
13
|
-
- Basic ZTk5MGJkMjNmNTQzYWNjZGY3ZDg4Yjk2OWNiMzAwOWI6NWM4YThlY2UxMTFmYmE4NTE1MGVmNzBjYmZmM2I3ZWI=
|
14
|
-
response:
|
15
|
-
status:
|
16
|
-
code: 404
|
17
|
-
message:
|
18
|
-
headers:
|
19
|
-
server:
|
20
|
-
- nginx/1.9.10
|
21
|
-
date:
|
22
|
-
- Sun, 05 Jun 2016 17:05:01 GMT
|
23
|
-
content-type:
|
24
|
-
- application/json; charset=utf-8
|
25
|
-
transfer-encoding:
|
26
|
-
- chunked
|
27
|
-
connection:
|
28
|
-
- close
|
29
|
-
x-frame-options:
|
30
|
-
- SAMEORIGIN
|
31
|
-
x-xss-protection:
|
32
|
-
- 1; mode=block
|
33
|
-
x-content-type-options:
|
34
|
-
- nosniff
|
35
|
-
cache-control:
|
36
|
-
- no-cache
|
37
|
-
x-request-id:
|
38
|
-
- f12d6c48-58f5-4ccd-b398-ff4e7acb93bc
|
39
|
-
x-runtime:
|
40
|
-
- '0.010826'
|
41
|
-
body:
|
42
|
-
encoding: UTF-8
|
43
|
-
string: '{"error":"Data source not found"}'
|
44
|
-
http_version:
|
45
|
-
recorded_at: Sun, 05 Jun 2016 17:05:01 GMT
|
46
|
-
recorded_with: VCR 3.0.3
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: delete
|
5
|
+
uri: https://api.chartmogul.com/v1/data_sources/1234-a-uuid-that-doesnt-exist
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
Authorization:
|
13
|
+
- Basic ZTk5MGJkMjNmNTQzYWNjZGY3ZDg4Yjk2OWNiMzAwOWI6NWM4YThlY2UxMTFmYmE4NTE1MGVmNzBjYmZmM2I3ZWI=
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 404
|
17
|
+
message:
|
18
|
+
headers:
|
19
|
+
server:
|
20
|
+
- nginx/1.9.10
|
21
|
+
date:
|
22
|
+
- Sun, 05 Jun 2016 17:05:01 GMT
|
23
|
+
content-type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
transfer-encoding:
|
26
|
+
- chunked
|
27
|
+
connection:
|
28
|
+
- close
|
29
|
+
x-frame-options:
|
30
|
+
- SAMEORIGIN
|
31
|
+
x-xss-protection:
|
32
|
+
- 1; mode=block
|
33
|
+
x-content-type-options:
|
34
|
+
- nosniff
|
35
|
+
cache-control:
|
36
|
+
- no-cache
|
37
|
+
x-request-id:
|
38
|
+
- f12d6c48-58f5-4ccd-b398-ff4e7acb93bc
|
39
|
+
x-runtime:
|
40
|
+
- '0.010826'
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"error":"Data source not found"}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Sun, 05 Jun 2016 17:05:01 GMT
|
46
|
+
recorded_with: VCR 3.0.3
|