chartmogul-ruby 1.4.1 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/changelog.md +3 -0
- data/chartmogul-ruby.gemspec +1 -1
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/correctly_handles_a_422_error.yml +50 -0
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/deletes_a_plan_group.yml +293 -0
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/retrieves_existing_plan_group_by_uuid.yml +251 -0
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/returns_an_array_of_plan_groups.yml +357 -0
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/updates_existing_plan_group_name.yml +304 -0
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/updates_existing_plan_group_plans.yml +411 -0
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroups_Plans/API_interactions/given_a_plan_group_uuid_returns_an_array_of_plans_in_the_plan_group.yml +252 -0
- data/lib/chartmogul.rb +2 -0
- data/lib/chartmogul/plan_group.rb +37 -0
- data/lib/chartmogul/plan_groups/plans.rb +15 -0
- data/lib/chartmogul/version.rb +1 -1
- metadata +13 -4
@@ -0,0 +1,411 @@
|
|
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":"Data Source #1"}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.15.4
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Authorization:
|
15
|
+
- Basic secret
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 201
|
19
|
+
message:
|
20
|
+
headers:
|
21
|
+
server:
|
22
|
+
- nginx/1.10.1
|
23
|
+
date:
|
24
|
+
- Thu, 20 Feb 2020 10:57:21 GMT
|
25
|
+
content-type:
|
26
|
+
- application/json
|
27
|
+
content-length:
|
28
|
+
- '152'
|
29
|
+
connection:
|
30
|
+
- close
|
31
|
+
status:
|
32
|
+
- 201 Created
|
33
|
+
access-control-allow-credentials:
|
34
|
+
- 'true'
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: '{"uuid":"ds_c4fdc7a2-53cf-11ea-aae9-cba10afd2cab","name":"Data Source
|
38
|
+
#1","system":"Import API","created_at":"2020-02-20T10:57:21.537Z","status":"idle"}'
|
39
|
+
http_version:
|
40
|
+
recorded_at: Thu, 20 Feb 2020 10:57:22 GMT
|
41
|
+
- request:
|
42
|
+
method: post
|
43
|
+
uri: https://api.chartmogul.com/v1/plans
|
44
|
+
body:
|
45
|
+
encoding: UTF-8
|
46
|
+
string: '{"name":"A another Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_c4fdc7a2-53cf-11ea-aae9-cba10afd2cab"}'
|
47
|
+
headers:
|
48
|
+
User-Agent:
|
49
|
+
- Faraday v0.15.4
|
50
|
+
Content-Type:
|
51
|
+
- application/json
|
52
|
+
Authorization:
|
53
|
+
- Basic secret
|
54
|
+
response:
|
55
|
+
status:
|
56
|
+
code: 201
|
57
|
+
message:
|
58
|
+
headers:
|
59
|
+
server:
|
60
|
+
- nginx/1.10.1
|
61
|
+
date:
|
62
|
+
- Thu, 20 Feb 2020 10:57:22 GMT
|
63
|
+
content-type:
|
64
|
+
- application/json; charset=utf-8
|
65
|
+
transfer-encoding:
|
66
|
+
- chunked
|
67
|
+
connection:
|
68
|
+
- close
|
69
|
+
status:
|
70
|
+
- 201 Created
|
71
|
+
x-frame-options:
|
72
|
+
- SAMEORIGIN
|
73
|
+
x-xss-protection:
|
74
|
+
- 1; mode=block
|
75
|
+
x-content-type-options:
|
76
|
+
- nosniff
|
77
|
+
etag:
|
78
|
+
- W/"680bf36b1c4f2dff6428304f51e2c5d1"
|
79
|
+
cache-control:
|
80
|
+
- max-age=0, private, must-revalidate
|
81
|
+
x-request-id:
|
82
|
+
- 98cf8d71-2a0a-464f-8580-4d7584f05c28
|
83
|
+
x-runtime:
|
84
|
+
- '0.093243'
|
85
|
+
strict-transport-security:
|
86
|
+
- max-age=15768000
|
87
|
+
body:
|
88
|
+
encoding: UTF-8
|
89
|
+
string: '{"external_id":"b1d2e190-35fd-0138-b593-4e501129bd4a","name":"A another
|
90
|
+
Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_c4fdc7a2-53cf-11ea-aae9-cba10afd2cab","uuid":"pl_b1d2e190-35fd-0138-b593-4e501129bd4a"}'
|
91
|
+
http_version:
|
92
|
+
recorded_at: Thu, 20 Feb 2020 10:57:22 GMT
|
93
|
+
- request:
|
94
|
+
method: post
|
95
|
+
uri: https://api.chartmogul.com/v1/plans
|
96
|
+
body:
|
97
|
+
encoding: UTF-8
|
98
|
+
string: '{"name":"A Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_c4fdc7a2-53cf-11ea-aae9-cba10afd2cab"}'
|
99
|
+
headers:
|
100
|
+
User-Agent:
|
101
|
+
- Faraday v0.15.4
|
102
|
+
Content-Type:
|
103
|
+
- application/json
|
104
|
+
Authorization:
|
105
|
+
- Basic secret
|
106
|
+
response:
|
107
|
+
status:
|
108
|
+
code: 201
|
109
|
+
message:
|
110
|
+
headers:
|
111
|
+
server:
|
112
|
+
- nginx/1.10.1
|
113
|
+
date:
|
114
|
+
- Thu, 20 Feb 2020 10:57:22 GMT
|
115
|
+
content-type:
|
116
|
+
- application/json; charset=utf-8
|
117
|
+
transfer-encoding:
|
118
|
+
- chunked
|
119
|
+
connection:
|
120
|
+
- close
|
121
|
+
status:
|
122
|
+
- 201 Created
|
123
|
+
x-frame-options:
|
124
|
+
- SAMEORIGIN
|
125
|
+
x-xss-protection:
|
126
|
+
- 1; mode=block
|
127
|
+
x-content-type-options:
|
128
|
+
- nosniff
|
129
|
+
etag:
|
130
|
+
- W/"b8310c5c76d0a1261ae0e170774c8317"
|
131
|
+
cache-control:
|
132
|
+
- max-age=0, private, must-revalidate
|
133
|
+
x-request-id:
|
134
|
+
- a350a73c-a056-4f06-9f9c-809439bf6019
|
135
|
+
x-runtime:
|
136
|
+
- '0.147289'
|
137
|
+
strict-transport-security:
|
138
|
+
- max-age=15768000
|
139
|
+
body:
|
140
|
+
encoding: UTF-8
|
141
|
+
string: '{"external_id":"b1fa8e50-35fd-0138-b594-4e501129bd4a","name":"A Test
|
142
|
+
Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_c4fdc7a2-53cf-11ea-aae9-cba10afd2cab","uuid":"pl_b1fa8e50-35fd-0138-b594-4e501129bd4a"}'
|
143
|
+
http_version:
|
144
|
+
recorded_at: Thu, 20 Feb 2020 10:57:22 GMT
|
145
|
+
- request:
|
146
|
+
method: post
|
147
|
+
uri: https://api.chartmogul.com/v1/plans
|
148
|
+
body:
|
149
|
+
encoding: UTF-8
|
150
|
+
string: '{"name":"A another Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_c4fdc7a2-53cf-11ea-aae9-cba10afd2cab"}'
|
151
|
+
headers:
|
152
|
+
User-Agent:
|
153
|
+
- Faraday v0.15.4
|
154
|
+
Content-Type:
|
155
|
+
- application/json
|
156
|
+
Authorization:
|
157
|
+
- Basic secret
|
158
|
+
response:
|
159
|
+
status:
|
160
|
+
code: 201
|
161
|
+
message:
|
162
|
+
headers:
|
163
|
+
server:
|
164
|
+
- nginx/1.10.1
|
165
|
+
date:
|
166
|
+
- Thu, 20 Feb 2020 10:57:22 GMT
|
167
|
+
content-type:
|
168
|
+
- application/json; charset=utf-8
|
169
|
+
transfer-encoding:
|
170
|
+
- chunked
|
171
|
+
connection:
|
172
|
+
- close
|
173
|
+
status:
|
174
|
+
- 201 Created
|
175
|
+
x-frame-options:
|
176
|
+
- SAMEORIGIN
|
177
|
+
x-xss-protection:
|
178
|
+
- 1; mode=block
|
179
|
+
x-content-type-options:
|
180
|
+
- nosniff
|
181
|
+
etag:
|
182
|
+
- W/"f7b6f9160ce0ef3a1548ce6ce684d83e"
|
183
|
+
cache-control:
|
184
|
+
- max-age=0, private, must-revalidate
|
185
|
+
x-request-id:
|
186
|
+
- 251b2e7c-bbe3-4259-859d-39cbd6e29aa0
|
187
|
+
x-runtime:
|
188
|
+
- '0.133838'
|
189
|
+
strict-transport-security:
|
190
|
+
- max-age=15768000
|
191
|
+
body:
|
192
|
+
encoding: UTF-8
|
193
|
+
string: '{"external_id":"b225c9f0-35fd-0138-b595-4e501129bd4a","name":"A another
|
194
|
+
Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_c4fdc7a2-53cf-11ea-aae9-cba10afd2cab","uuid":"pl_b225c9f0-35fd-0138-b595-4e501129bd4a"}'
|
195
|
+
http_version:
|
196
|
+
recorded_at: Thu, 20 Feb 2020 10:57:22 GMT
|
197
|
+
- request:
|
198
|
+
method: post
|
199
|
+
uri: https://api.chartmogul.com/v1/plan_groups
|
200
|
+
body:
|
201
|
+
encoding: UTF-8
|
202
|
+
string: '{"name":"My plan group","plans":["pl_b1fa8e50-35fd-0138-b594-4e501129bd4a","pl_b225c9f0-35fd-0138-b595-4e501129bd4a"]}'
|
203
|
+
headers:
|
204
|
+
User-Agent:
|
205
|
+
- Faraday v0.15.4
|
206
|
+
Content-Type:
|
207
|
+
- application/json
|
208
|
+
Authorization:
|
209
|
+
- Basic secret
|
210
|
+
response:
|
211
|
+
status:
|
212
|
+
code: 200
|
213
|
+
message:
|
214
|
+
headers:
|
215
|
+
server:
|
216
|
+
- nginx/1.10.1
|
217
|
+
date:
|
218
|
+
- Thu, 20 Feb 2020 10:57:23 GMT
|
219
|
+
content-type:
|
220
|
+
- application/json; charset=utf-8
|
221
|
+
transfer-encoding:
|
222
|
+
- chunked
|
223
|
+
connection:
|
224
|
+
- close
|
225
|
+
vary:
|
226
|
+
- Accept-Encoding, Accept-Encoding
|
227
|
+
status:
|
228
|
+
- 200 OK
|
229
|
+
x-frame-options:
|
230
|
+
- SAMEORIGIN
|
231
|
+
x-xss-protection:
|
232
|
+
- 1; mode=block
|
233
|
+
x-content-type-options:
|
234
|
+
- nosniff
|
235
|
+
etag:
|
236
|
+
- W/"7c591e7d5ee581e4ae49ffccb4165863"
|
237
|
+
cache-control:
|
238
|
+
- max-age=0, private, must-revalidate
|
239
|
+
x-request-id:
|
240
|
+
- aaf768b5-e7b3-4e8a-892b-4c4e313cc409
|
241
|
+
x-runtime:
|
242
|
+
- '0.077071'
|
243
|
+
strict-transport-security:
|
244
|
+
- max-age=15768000
|
245
|
+
body:
|
246
|
+
encoding: ASCII-8BIT
|
247
|
+
string: '{"name":"My plan group","uuid":"plg_de7adee5-7a1e-4e3f-ac11-978c9294427a","plans_count":2}'
|
248
|
+
http_version:
|
249
|
+
recorded_at: Thu, 20 Feb 2020 10:57:23 GMT
|
250
|
+
- request:
|
251
|
+
method: patch
|
252
|
+
uri: https://api.chartmogul.com/v1/plan_groups/plg_de7adee5-7a1e-4e3f-ac11-978c9294427a
|
253
|
+
body:
|
254
|
+
encoding: UTF-8
|
255
|
+
string: '{"name":"My plan group","plans_count":2,"plans":["pl_b1fa8e50-35fd-0138-b594-4e501129bd4a","pl_b225c9f0-35fd-0138-b595-4e501129bd4a","pl_b1d2e190-35fd-0138-b593-4e501129bd4a"]}'
|
256
|
+
headers:
|
257
|
+
User-Agent:
|
258
|
+
- Faraday v0.15.4
|
259
|
+
Content-Type:
|
260
|
+
- application/json
|
261
|
+
Authorization:
|
262
|
+
- Basic secret
|
263
|
+
response:
|
264
|
+
status:
|
265
|
+
code: 200
|
266
|
+
message:
|
267
|
+
headers:
|
268
|
+
server:
|
269
|
+
- nginx/1.10.1
|
270
|
+
date:
|
271
|
+
- Thu, 20 Feb 2020 10:57:23 GMT
|
272
|
+
content-type:
|
273
|
+
- application/json; charset=utf-8
|
274
|
+
transfer-encoding:
|
275
|
+
- chunked
|
276
|
+
connection:
|
277
|
+
- close
|
278
|
+
vary:
|
279
|
+
- Accept-Encoding, Accept-Encoding
|
280
|
+
status:
|
281
|
+
- 200 OK
|
282
|
+
x-frame-options:
|
283
|
+
- SAMEORIGIN
|
284
|
+
x-xss-protection:
|
285
|
+
- 1; mode=block
|
286
|
+
x-content-type-options:
|
287
|
+
- nosniff
|
288
|
+
etag:
|
289
|
+
- W/"5cd2492b2cccc2503702e906a10a0dab"
|
290
|
+
cache-control:
|
291
|
+
- max-age=0, private, must-revalidate
|
292
|
+
x-request-id:
|
293
|
+
- 7efb2bc8-85e8-45c9-aa26-0df590228126
|
294
|
+
x-runtime:
|
295
|
+
- '0.131806'
|
296
|
+
strict-transport-security:
|
297
|
+
- max-age=15768000
|
298
|
+
body:
|
299
|
+
encoding: ASCII-8BIT
|
300
|
+
string: '{"name":"My plan group","uuid":"plg_de7adee5-7a1e-4e3f-ac11-978c9294427a","plans_count":3}'
|
301
|
+
http_version:
|
302
|
+
recorded_at: Thu, 20 Feb 2020 10:57:23 GMT
|
303
|
+
- request:
|
304
|
+
method: get
|
305
|
+
uri: https://api.chartmogul.com/v1/plan_groups/plg_de7adee5-7a1e-4e3f-ac11-978c9294427a
|
306
|
+
body:
|
307
|
+
encoding: US-ASCII
|
308
|
+
string: ''
|
309
|
+
headers:
|
310
|
+
User-Agent:
|
311
|
+
- Faraday v0.15.4
|
312
|
+
Content-Type:
|
313
|
+
- application/json
|
314
|
+
Authorization:
|
315
|
+
- Basic secret
|
316
|
+
response:
|
317
|
+
status:
|
318
|
+
code: 200
|
319
|
+
message:
|
320
|
+
headers:
|
321
|
+
server:
|
322
|
+
- nginx/1.10.1
|
323
|
+
date:
|
324
|
+
- Thu, 20 Feb 2020 10:57:23 GMT
|
325
|
+
content-type:
|
326
|
+
- application/json; charset=utf-8
|
327
|
+
transfer-encoding:
|
328
|
+
- chunked
|
329
|
+
connection:
|
330
|
+
- close
|
331
|
+
vary:
|
332
|
+
- Accept-Encoding, Accept-Encoding
|
333
|
+
status:
|
334
|
+
- 200 OK
|
335
|
+
x-frame-options:
|
336
|
+
- SAMEORIGIN
|
337
|
+
x-xss-protection:
|
338
|
+
- 1; mode=block
|
339
|
+
x-content-type-options:
|
340
|
+
- nosniff
|
341
|
+
etag:
|
342
|
+
- W/"5cd2492b2cccc2503702e906a10a0dab"
|
343
|
+
cache-control:
|
344
|
+
- max-age=0, private, must-revalidate
|
345
|
+
x-request-id:
|
346
|
+
- fe9819d4-9413-4430-8648-298c8c24ab95
|
347
|
+
x-runtime:
|
348
|
+
- '0.043397'
|
349
|
+
strict-transport-security:
|
350
|
+
- max-age=15768000
|
351
|
+
body:
|
352
|
+
encoding: ASCII-8BIT
|
353
|
+
string: '{"name":"My plan group","uuid":"plg_de7adee5-7a1e-4e3f-ac11-978c9294427a","plans_count":3}'
|
354
|
+
http_version:
|
355
|
+
recorded_at: Thu, 20 Feb 2020 10:57:23 GMT
|
356
|
+
- request:
|
357
|
+
method: get
|
358
|
+
uri: https://api.chartmogul.com/v1/plan_groups/plg_de7adee5-7a1e-4e3f-ac11-978c9294427a/plans
|
359
|
+
body:
|
360
|
+
encoding: US-ASCII
|
361
|
+
string: ''
|
362
|
+
headers:
|
363
|
+
User-Agent:
|
364
|
+
- Faraday v0.15.4
|
365
|
+
Content-Type:
|
366
|
+
- application/json
|
367
|
+
Authorization:
|
368
|
+
- Basic secret
|
369
|
+
response:
|
370
|
+
status:
|
371
|
+
code: 200
|
372
|
+
message:
|
373
|
+
headers:
|
374
|
+
server:
|
375
|
+
- nginx/1.10.1
|
376
|
+
date:
|
377
|
+
- Thu, 20 Feb 2020 10:57:23 GMT
|
378
|
+
content-type:
|
379
|
+
- application/json; charset=utf-8
|
380
|
+
transfer-encoding:
|
381
|
+
- chunked
|
382
|
+
connection:
|
383
|
+
- close
|
384
|
+
vary:
|
385
|
+
- Accept-Encoding, Accept-Encoding
|
386
|
+
status:
|
387
|
+
- 200 OK
|
388
|
+
x-frame-options:
|
389
|
+
- SAMEORIGIN
|
390
|
+
x-xss-protection:
|
391
|
+
- 1; mode=block
|
392
|
+
x-content-type-options:
|
393
|
+
- nosniff
|
394
|
+
etag:
|
395
|
+
- W/"9d72543d2f2e6ffba5e5b8db51920b40"
|
396
|
+
cache-control:
|
397
|
+
- max-age=0, private, must-revalidate
|
398
|
+
x-request-id:
|
399
|
+
- f876000c-f4b2-4e85-b033-76bd3a44a4fb
|
400
|
+
x-runtime:
|
401
|
+
- '0.108157'
|
402
|
+
strict-transport-security:
|
403
|
+
- max-age=15768000
|
404
|
+
body:
|
405
|
+
encoding: ASCII-8BIT
|
406
|
+
string: '{"plans":[{"name":"A another Test Plan","uuid":"pl_b1d2e190-35fd-0138-b593-4e501129bd4a","data_source_uuid":"ds_c4fdc7a2-53cf-11ea-aae9-cba10afd2cab","interval_count":1,"interval_unit":"month","external_id":"b1d2e190-35fd-0138-b593-4e501129bd4a"},{"name":"A
|
407
|
+
Test Plan","uuid":"pl_b1fa8e50-35fd-0138-b594-4e501129bd4a","data_source_uuid":"ds_c4fdc7a2-53cf-11ea-aae9-cba10afd2cab","interval_count":1,"interval_unit":"month","external_id":"b1fa8e50-35fd-0138-b594-4e501129bd4a"},{"name":"A
|
408
|
+
another Test Plan","uuid":"pl_b225c9f0-35fd-0138-b595-4e501129bd4a","data_source_uuid":"ds_c4fdc7a2-53cf-11ea-aae9-cba10afd2cab","interval_count":1,"interval_unit":"month","external_id":"b225c9f0-35fd-0138-b595-4e501129bd4a"}],"current_page":1,"total_pages":1}'
|
409
|
+
http_version:
|
410
|
+
recorded_at: Thu, 20 Feb 2020 10:57:23 GMT
|
411
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,252 @@
|
|
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":"Data Source #1"}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.15.4
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Authorization:
|
15
|
+
- Basic OGIzNjcyOWUzMmU1OWJiMTBlNjEwZWZiOWFhNjExZTA6Nzg0MWEyNWU4Y2VkMmZjOGRmYzFhZGU3YWM0ZmFjZTQ=
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 201
|
19
|
+
message:
|
20
|
+
headers:
|
21
|
+
server:
|
22
|
+
- nginx/1.10.1
|
23
|
+
date:
|
24
|
+
- Thu, 20 Feb 2020 17:20:15 GMT
|
25
|
+
content-type:
|
26
|
+
- application/json
|
27
|
+
content-length:
|
28
|
+
- '152'
|
29
|
+
connection:
|
30
|
+
- close
|
31
|
+
status:
|
32
|
+
- 201 Created
|
33
|
+
access-control-allow-credentials:
|
34
|
+
- 'true'
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: '{"uuid":"ds_424b9628-5405-11ea-ab18-e3a0f4f45097","name":"Data Source
|
38
|
+
#1","system":"Import API","created_at":"2020-02-20T17:20:15.102Z","status":"idle"}'
|
39
|
+
http_version:
|
40
|
+
recorded_at: Thu, 20 Feb 2020 17:20:15 GMT
|
41
|
+
- request:
|
42
|
+
method: post
|
43
|
+
uri: https://api.chartmogul.com/v1/plans
|
44
|
+
body:
|
45
|
+
encoding: UTF-8
|
46
|
+
string: '{"name":"A Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_424b9628-5405-11ea-ab18-e3a0f4f45097"}'
|
47
|
+
headers:
|
48
|
+
User-Agent:
|
49
|
+
- Faraday v0.15.4
|
50
|
+
Content-Type:
|
51
|
+
- application/json
|
52
|
+
Authorization:
|
53
|
+
- Basic OGIzNjcyOWUzMmU1OWJiMTBlNjEwZWZiOWFhNjExZTA6Nzg0MWEyNWU4Y2VkMmZjOGRmYzFhZGU3YWM0ZmFjZTQ=
|
54
|
+
response:
|
55
|
+
status:
|
56
|
+
code: 201
|
57
|
+
message:
|
58
|
+
headers:
|
59
|
+
server:
|
60
|
+
- nginx/1.10.1
|
61
|
+
date:
|
62
|
+
- Thu, 20 Feb 2020 17:20:16 GMT
|
63
|
+
content-type:
|
64
|
+
- application/json; charset=utf-8
|
65
|
+
transfer-encoding:
|
66
|
+
- chunked
|
67
|
+
connection:
|
68
|
+
- close
|
69
|
+
status:
|
70
|
+
- 201 Created
|
71
|
+
x-frame-options:
|
72
|
+
- SAMEORIGIN
|
73
|
+
x-xss-protection:
|
74
|
+
- 1; mode=block
|
75
|
+
x-content-type-options:
|
76
|
+
- nosniff
|
77
|
+
etag:
|
78
|
+
- W/"de6a4357349f1e696cf670b8cb1d3a91"
|
79
|
+
cache-control:
|
80
|
+
- max-age=0, private, must-revalidate
|
81
|
+
x-request-id:
|
82
|
+
- 1d0fbf42-e22c-42ac-b068-3fc78e615d0b
|
83
|
+
x-runtime:
|
84
|
+
- '0.613620'
|
85
|
+
strict-transport-security:
|
86
|
+
- max-age=15768000
|
87
|
+
body:
|
88
|
+
encoding: UTF-8
|
89
|
+
string: '{"external_id":"2f7f4360-3633-0138-f01f-62b37fb4c770","name":"A Test
|
90
|
+
Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_424b9628-5405-11ea-ab18-e3a0f4f45097","uuid":"pl_2f7f4360-3633-0138-f01f-62b37fb4c770"}'
|
91
|
+
http_version:
|
92
|
+
recorded_at: Thu, 20 Feb 2020 17:20:16 GMT
|
93
|
+
- request:
|
94
|
+
method: post
|
95
|
+
uri: https://api.chartmogul.com/v1/plans
|
96
|
+
body:
|
97
|
+
encoding: UTF-8
|
98
|
+
string: '{"name":"A another Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_424b9628-5405-11ea-ab18-e3a0f4f45097"}'
|
99
|
+
headers:
|
100
|
+
User-Agent:
|
101
|
+
- Faraday v0.15.4
|
102
|
+
Content-Type:
|
103
|
+
- application/json
|
104
|
+
Authorization:
|
105
|
+
- Basic OGIzNjcyOWUzMmU1OWJiMTBlNjEwZWZiOWFhNjExZTA6Nzg0MWEyNWU4Y2VkMmZjOGRmYzFhZGU3YWM0ZmFjZTQ=
|
106
|
+
response:
|
107
|
+
status:
|
108
|
+
code: 201
|
109
|
+
message:
|
110
|
+
headers:
|
111
|
+
server:
|
112
|
+
- nginx/1.10.1
|
113
|
+
date:
|
114
|
+
- Thu, 20 Feb 2020 17:20:17 GMT
|
115
|
+
content-type:
|
116
|
+
- application/json; charset=utf-8
|
117
|
+
transfer-encoding:
|
118
|
+
- chunked
|
119
|
+
connection:
|
120
|
+
- close
|
121
|
+
status:
|
122
|
+
- 201 Created
|
123
|
+
x-frame-options:
|
124
|
+
- SAMEORIGIN
|
125
|
+
x-xss-protection:
|
126
|
+
- 1; mode=block
|
127
|
+
x-content-type-options:
|
128
|
+
- nosniff
|
129
|
+
etag:
|
130
|
+
- W/"3928a3336f01663683f92bdda358c877"
|
131
|
+
cache-control:
|
132
|
+
- max-age=0, private, must-revalidate
|
133
|
+
x-request-id:
|
134
|
+
- 8f90c8e4-8902-4c82-9ac2-b9e466d35b85
|
135
|
+
x-runtime:
|
136
|
+
- '0.492792'
|
137
|
+
strict-transport-security:
|
138
|
+
- max-age=15768000
|
139
|
+
body:
|
140
|
+
encoding: UTF-8
|
141
|
+
string: '{"external_id":"3011ead0-3633-0138-f020-62b37fb4c770","name":"A another
|
142
|
+
Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_424b9628-5405-11ea-ab18-e3a0f4f45097","uuid":"pl_3011ead0-3633-0138-f020-62b37fb4c770"}'
|
143
|
+
http_version:
|
144
|
+
recorded_at: Thu, 20 Feb 2020 17:20:17 GMT
|
145
|
+
- request:
|
146
|
+
method: post
|
147
|
+
uri: https://api.chartmogul.com/v1/plan_groups
|
148
|
+
body:
|
149
|
+
encoding: UTF-8
|
150
|
+
string: '{"name":"My plan group","plans":["pl_2f7f4360-3633-0138-f01f-62b37fb4c770","pl_3011ead0-3633-0138-f020-62b37fb4c770"]}'
|
151
|
+
headers:
|
152
|
+
User-Agent:
|
153
|
+
- Faraday v0.15.4
|
154
|
+
Content-Type:
|
155
|
+
- application/json
|
156
|
+
Authorization:
|
157
|
+
- Basic OGIzNjcyOWUzMmU1OWJiMTBlNjEwZWZiOWFhNjExZTA6Nzg0MWEyNWU4Y2VkMmZjOGRmYzFhZGU3YWM0ZmFjZTQ=
|
158
|
+
response:
|
159
|
+
status:
|
160
|
+
code: 200
|
161
|
+
message:
|
162
|
+
headers:
|
163
|
+
server:
|
164
|
+
- nginx/1.10.1
|
165
|
+
date:
|
166
|
+
- Thu, 20 Feb 2020 17:20:17 GMT
|
167
|
+
content-type:
|
168
|
+
- application/json; charset=utf-8
|
169
|
+
transfer-encoding:
|
170
|
+
- chunked
|
171
|
+
connection:
|
172
|
+
- close
|
173
|
+
vary:
|
174
|
+
- Accept-Encoding, Accept-Encoding
|
175
|
+
status:
|
176
|
+
- 200 OK
|
177
|
+
x-frame-options:
|
178
|
+
- SAMEORIGIN
|
179
|
+
x-xss-protection:
|
180
|
+
- 1; mode=block
|
181
|
+
x-content-type-options:
|
182
|
+
- nosniff
|
183
|
+
etag:
|
184
|
+
- W/"b36573ce415d939f61a58648b6d930cf"
|
185
|
+
cache-control:
|
186
|
+
- max-age=0, private, must-revalidate
|
187
|
+
x-request-id:
|
188
|
+
- a48672ef-8c37-459e-ac45-189f0e79c575
|
189
|
+
x-runtime:
|
190
|
+
- '0.079833'
|
191
|
+
strict-transport-security:
|
192
|
+
- max-age=15768000
|
193
|
+
body:
|
194
|
+
encoding: ASCII-8BIT
|
195
|
+
string: '{"name":"My plan group","uuid":"plg_f7e7ee61-4cff-47a5-ab45-3127cbfdde0b","plans_count":2}'
|
196
|
+
http_version:
|
197
|
+
recorded_at: Thu, 20 Feb 2020 17:20:17 GMT
|
198
|
+
- request:
|
199
|
+
method: get
|
200
|
+
uri: https://api.chartmogul.com/v1/plan_groups/plg_f7e7ee61-4cff-47a5-ab45-3127cbfdde0b/plans
|
201
|
+
body:
|
202
|
+
encoding: US-ASCII
|
203
|
+
string: ''
|
204
|
+
headers:
|
205
|
+
User-Agent:
|
206
|
+
- Faraday v0.15.4
|
207
|
+
Content-Type:
|
208
|
+
- application/json
|
209
|
+
Authorization:
|
210
|
+
- Basic OGIzNjcyOWUzMmU1OWJiMTBlNjEwZWZiOWFhNjExZTA6Nzg0MWEyNWU4Y2VkMmZjOGRmYzFhZGU3YWM0ZmFjZTQ=
|
211
|
+
response:
|
212
|
+
status:
|
213
|
+
code: 200
|
214
|
+
message:
|
215
|
+
headers:
|
216
|
+
server:
|
217
|
+
- nginx/1.10.1
|
218
|
+
date:
|
219
|
+
- Thu, 20 Feb 2020 17:20:18 GMT
|
220
|
+
content-type:
|
221
|
+
- application/json; charset=utf-8
|
222
|
+
transfer-encoding:
|
223
|
+
- chunked
|
224
|
+
connection:
|
225
|
+
- close
|
226
|
+
vary:
|
227
|
+
- Accept-Encoding, Accept-Encoding
|
228
|
+
status:
|
229
|
+
- 200 OK
|
230
|
+
x-frame-options:
|
231
|
+
- SAMEORIGIN
|
232
|
+
x-xss-protection:
|
233
|
+
- 1; mode=block
|
234
|
+
x-content-type-options:
|
235
|
+
- nosniff
|
236
|
+
etag:
|
237
|
+
- W/"5e8f9b0b2fde5db47f62e9150c0bcdad"
|
238
|
+
cache-control:
|
239
|
+
- max-age=0, private, must-revalidate
|
240
|
+
x-request-id:
|
241
|
+
- 58983eb3-fc9a-4d32-8a9f-10e6a0d82a9f
|
242
|
+
x-runtime:
|
243
|
+
- '0.366925'
|
244
|
+
strict-transport-security:
|
245
|
+
- max-age=15768000
|
246
|
+
body:
|
247
|
+
encoding: ASCII-8BIT
|
248
|
+
string: '{"plans":[{"name":"A Test Plan","uuid":"pl_2f7f4360-3633-0138-f01f-62b37fb4c770","data_source_uuid":"ds_424b9628-5405-11ea-ab18-e3a0f4f45097","interval_count":1,"interval_unit":"month","external_id":"2f7f4360-3633-0138-f01f-62b37fb4c770"},{"name":"A
|
249
|
+
another Test Plan","uuid":"pl_3011ead0-3633-0138-f020-62b37fb4c770","data_source_uuid":"ds_424b9628-5405-11ea-ab18-e3a0f4f45097","interval_count":1,"interval_unit":"month","external_id":"3011ead0-3633-0138-f020-62b37fb4c770"}],"current_page":1,"total_pages":1}'
|
250
|
+
http_version:
|
251
|
+
recorded_at: Thu, 20 Feb 2020 17:20:18 GMT
|
252
|
+
recorded_with: VCR 3.0.3
|