--- http_interactions: - request: method: post uri: https://api.chartmogul.com/v1/data_sources body: encoding: UTF-8 string: '{"name":"Customer Test Data Source"}' headers: User-Agent: - Faraday v0.9.2 Content-Type: - application/json Authorization: - Basic ODE2MjZkMWFiMzU5NTIwMzY5MjhjNjJjYmJiNDMyN2M6ODY3MDRmMDdkYzQwZmYzYjYyYzRjY2E5OTYxMjk2MzY= response: status: code: 201 message: headers: server: - nginx/1.10.1 date: - Tue, 08 Nov 2016 08:57:33 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/"bcfee5f9180970835929930b05411ff4" cache-control: - max-age=0, private, must-revalidate x-request-id: - 9505cefe-9a7a-46af-a173-7a686cf46800 x-runtime: - '0.461858' strict-transport-security: - max-age=15768000 body: encoding: UTF-8 string: '{"uuid":"ds_632433ee-a591-11e6-aa29-ff9ccc9a74aa","name":"Customer Test Data Source","created_at":"2016-11-08T08:57:33.304Z","status":"never_imported"}' http_version: recorded_at: Tue, 08 Nov 2016 08:57:33 GMT - request: method: post uri: https://api.chartmogul.com/v1/customers body: encoding: UTF-8 string: '{"external_id":"X1234","name":"Test Customer","email":"test@example.com","country":"DE","city":"Berlin","data_source_uuid":"ds_632433ee-a591-11e6-aa29-ff9ccc9a74aa","lead_created_at":"2016-10-01 23:55:00 UTC","free_trial_started_at":"2016-10-12 11:12:00 UTC"}' headers: User-Agent: - Faraday v0.9.2 Content-Type: - application/json Authorization: - Basic ODE2MjZkMWFiMzU5NTIwMzY5MjhjNjJjYmJiNDMyN2M6ODY3MDRmMDdkYzQwZmYzYjYyYzRjY2E5OTYxMjk2MzY= response: status: code: 201 message: headers: server: - nginx/1.10.1 date: - Tue, 08 Nov 2016 08:57:33 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/"edb1e5e3324d47803eccb229a21363df" cache-control: - max-age=0, private, must-revalidate x-request-id: - bf049e2c-b057-4d90-85bf-f90c9ca98b31 x-runtime: - '0.158973' strict-transport-security: - max-age=15768000 body: encoding: UTF-8 string: '{"uuid":"cus_709bf73d-dc7c-4fb3-825d-a32c7fe5be16","external_id":"X1234","name":"Test Customer","company":"","email":"test@example.com","city":"Berlin","state":"","country":"DE","zip":"","lead_created_at":"2016-10-01T23:55:00.000Z","free_trial_started_at":"2016-10-12T11:12:00.000Z","data_source_uuid":"ds_632433ee-a591-11e6-aa29-ff9ccc9a74aa"}' http_version: recorded_at: Tue, 08 Nov 2016 08:57:33 GMT - request: method: get uri: https://api.chartmogul.com/v1/customers body: encoding: US-ASCII string: '' headers: User-Agent: - Faraday v0.9.2 Content-Type: - application/json Authorization: - Basic ODE2MjZkMWFiMzU5NTIwMzY5MjhjNjJjYmJiNDMyN2M6ODY3MDRmMDdkYzQwZmYzYjYyYzRjY2E5OTYxMjk2MzY= response: status: code: 200 message: headers: server: - nginx/1.10.1 date: - Tue, 08 Nov 2016 08:57:34 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/"eb861872d3bd01a055485e96ccf38898" cache-control: - max-age=0, private, must-revalidate x-request-id: - 32f87d7c-f944-405d-a87c-2195f175940a x-runtime: - '0.022802' strict-transport-security: - max-age=15768000 body: encoding: UTF-8 string: '{"entries":[{"uuid":"cus_709bf73d-dc7c-4fb3-825d-a32c7fe5be16","external_id":"X1234","name":"Test Customer","company":"","email":"test@example.com","city":"Berlin","state":"","country":"DE","zip":"","lead_created_at":"2016-10-01T23:55:00.000Z","free_trial_started_at":"2016-10-12T11:12:00.000Z","data_source_uuid":"ds_632433ee-a591-11e6-aa29-ff9ccc9a74aa"}],"current_page":1,"total_pages":1,"has_more":false,"per_page":50,"page":1}' http_version: recorded_at: Tue, 08 Nov 2016 08:57:34 GMT - request: method: delete uri: https://api.chartmogul.com/v1/customers/cus_709bf73d-dc7c-4fb3-825d-a32c7fe5be16 body: encoding: US-ASCII string: '' headers: User-Agent: - Faraday v0.9.2 Authorization: - Basic ODE2MjZkMWFiMzU5NTIwMzY5MjhjNjJjYmJiNDMyN2M6ODY3MDRmMDdkYzQwZmYzYjYyYzRjY2E5OTYxMjk2MzY= response: status: code: 204 message: headers: server: - nginx/1.10.1 date: - Tue, 08 Nov 2016 08:57:34 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: - f163488f-bbea-4937-897b-ee08b69a4560 x-runtime: - '0.015696' strict-transport-security: - max-age=15768000 body: encoding: UTF-8 string: '' http_version: recorded_at: Tue, 08 Nov 2016 08:57:34 GMT - request: method: get uri: https://api.chartmogul.com/v1/customers body: encoding: US-ASCII string: '' headers: User-Agent: - Faraday v0.9.2 Content-Type: - application/json Authorization: - Basic ODE2MjZkMWFiMzU5NTIwMzY5MjhjNjJjYmJiNDMyN2M6ODY3MDRmMDdkYzQwZmYzYjYyYzRjY2E5OTYxMjk2MzY= response: status: code: 200 message: headers: server: - nginx/1.10.1 date: - Tue, 08 Nov 2016 08:57:34 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: - 770d6629-03d8-4f55-8bec-dde047828e7e x-runtime: - '0.019712' strict-transport-security: - max-age=15768000 body: encoding: UTF-8 string: '{"customers":[],"current_page":1,"total_pages":0,"has_more":false,"per_page":50,"page":1}' http_version: recorded_at: Tue, 08 Nov 2016 08:57:34 GMT recorded_with: VCR 3.0.3