--- http_interactions: - request: method: post uri: https://api.chartmogul.com/v1/import/data_sources body: encoding: UTF-8 string: '{"name":"Customer Test Data Source"}' headers: User-Agent: - Faraday v0.9.1 Content-Type: - application/json Authorization: - Basic ODE2MjZkMWFiMzU5NTIwMzY5MjhjNjJjYmJiNDMyN2M6ODY3MDRmMDdkYzQwZmYzYjYyYzRjY2E5OTYxMjk2MzY= response: status: code: 201 message: headers: server: - nginx/1.9.10 date: - Mon, 06 Jun 2016 15:26:39 GMT content-type: - application/json; charset=utf-8 transfer-encoding: - chunked connection: - close x-frame-options: - SAMEORIGIN x-xss-protection: - 1; mode=block x-content-type-options: - nosniff etag: - W/"efc297a7a44e439e9e557cdb452df1f4" cache-control: - max-age=0, private, must-revalidate x-request-id: - 2a244394-b7a8-4a47-bb66-b5122c819ab2 x-runtime: - '0.334024' strict-transport-security: - max-age=15768000 body: encoding: UTF-8 string: '{"uuid":"ds_154b9620-a22a-478a-8b44-198d11cc9a85","name":"Customer Test Data Source","created_at":"2016-06-06T15:26:39.448Z","status":"never_imported"}' http_version: recorded_at: Mon, 06 Jun 2016 15:26:39 GMT - request: method: post uri: https://api.chartmogul.com/v1/import/customers body: encoding: UTF-8 string: '{"data_source_uuid":"ds_154b9620-a22a-478a-8b44-198d11cc9a85","external_id":"X1234","name":"Test Customer","email":"test@example.com","company":null,"country":"DE","state":null,"city":"Berlin","zip":null}' headers: User-Agent: - Faraday v0.9.1 Content-Type: - application/json Authorization: - Basic ODE2MjZkMWFiMzU5NTIwMzY5MjhjNjJjYmJiNDMyN2M6ODY3MDRmMDdkYzQwZmYzYjYyYzRjY2E5OTYxMjk2MzY= response: status: code: 201 message: headers: server: - nginx/1.9.10 date: - Mon, 06 Jun 2016 15:26:39 GMT content-type: - application/json; charset=utf-8 transfer-encoding: - chunked connection: - close x-frame-options: - SAMEORIGIN x-xss-protection: - 1; mode=block x-content-type-options: - nosniff etag: - W/"2bb61213c73b74bf7e3094b3a2814b1c" cache-control: - max-age=0, private, must-revalidate x-request-id: - 7a43eb0b-0099-4cef-b620-a6ac687ace2f x-runtime: - '0.202425' strict-transport-security: - max-age=15768000 body: encoding: UTF-8 string: '{"uuid":"cus_c4babf63-3eb9-4125-8687-2a0d781b0af2","external_id":"X1234","name":"Test Customer","company":"","email":"test@example.com","city":"Berlin","state":"","country":"DE","zip":"","data_source_uuid":"ds_154b9620-a22a-478a-8b44-198d11cc9a85"}' http_version: recorded_at: Mon, 06 Jun 2016 15:26:39 GMT - request: method: get uri: https://api.chartmogul.com/v1/import/customers body: encoding: US-ASCII string: '' headers: User-Agent: - Faraday v0.9.1 Authorization: - Basic ODE2MjZkMWFiMzU5NTIwMzY5MjhjNjJjYmJiNDMyN2M6ODY3MDRmMDdkYzQwZmYzYjYyYzRjY2E5OTYxMjk2MzY= response: status: code: 200 message: headers: server: - nginx/1.9.10 date: - Mon, 06 Jun 2016 15:26:40 GMT content-type: - application/json; charset=utf-8 transfer-encoding: - chunked connection: - close x-frame-options: - SAMEORIGIN x-xss-protection: - 1; mode=block x-content-type-options: - nosniff etag: - W/"f8b194be146b71827424808d2de63994" cache-control: - max-age=0, private, must-revalidate x-request-id: - aa0a64af-9cd4-4b7d-9d43-d3b7c08ac7d1 x-runtime: - '0.020597' strict-transport-security: - max-age=15768000 body: encoding: UTF-8 string: '{"customers":[{"uuid":"cus_c4babf63-3eb9-4125-8687-2a0d781b0af2","external_id":"X1234","name":"Test Customer","company":"","email":"test@example.com","city":"Berlin","state":"","country":"DE","zip":"","data_source_uuid":"ds_154b9620-a22a-478a-8b44-198d11cc9a85"}],"current_page":1,"total_pages":1}' http_version: recorded_at: Mon, 06 Jun 2016 15:26:40 GMT - request: method: delete uri: https://api.chartmogul.com/v1/import/customers/cus_c4babf63-3eb9-4125-8687-2a0d781b0af2 body: encoding: US-ASCII string: '' headers: User-Agent: - Faraday v0.9.1 Authorization: - Basic ODE2MjZkMWFiMzU5NTIwMzY5MjhjNjJjYmJiNDMyN2M6ODY3MDRmMDdkYzQwZmYzYjYyYzRjY2E5OTYxMjk2MzY= response: status: code: 204 message: headers: server: - nginx/1.9.10 date: - Mon, 06 Jun 2016 15:26:40 GMT connection: - close x-frame-options: - SAMEORIGIN x-xss-protection: - 1; mode=block x-content-type-options: - nosniff cache-control: - no-cache x-request-id: - accd161f-de8b-426f-9a44-4b142a69ccc4 x-runtime: - '0.022023' strict-transport-security: - max-age=15768000 body: encoding: UTF-8 string: '' http_version: recorded_at: Mon, 06 Jun 2016 15:26:40 GMT - request: method: get uri: https://api.chartmogul.com/v1/import/customers body: encoding: US-ASCII string: '' headers: User-Agent: - Faraday v0.9.1 Authorization: - Basic ODE2MjZkMWFiMzU5NTIwMzY5MjhjNjJjYmJiNDMyN2M6ODY3MDRmMDdkYzQwZmYzYjYyYzRjY2E5OTYxMjk2MzY= response: status: code: 200 message: headers: server: - nginx/1.9.10 date: - Mon, 06 Jun 2016 15:26:50 GMT content-type: - application/json; charset=utf-8 transfer-encoding: - chunked connection: - close x-frame-options: - SAMEORIGIN x-xss-protection: - 1; mode=block x-content-type-options: - nosniff etag: - W/"82f80d77a5a88d6de206bb1feeb897cc" cache-control: - max-age=0, private, must-revalidate x-request-id: - 955582ac-5fe6-43c4-b0e8-f36fa27fdd57 x-runtime: - '0.011286' strict-transport-security: - max-age=15768000 body: encoding: UTF-8 string: '{"customers":[],"current_page":1,"total_pages":0}' http_version: recorded_at: Mon, 06 Jun 2016 15:26:50 GMT recorded_with: VCR 3.0.3