chartmogul-ruby 3.3.0 → 3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/changelog.md +11 -0
- data/chartmogul-ruby.gemspec +1 -1
- data/lib/chartmogul/api/actions/custom.rb +2 -1
- data/lib/chartmogul/concerns/pageable_with_cursor.rb +4 -0
- data/lib/chartmogul/contact.rb +1 -4
- data/lib/chartmogul/customer.rb +13 -1
- data/lib/chartmogul/customer_invoices.rb +5 -1
- data/lib/chartmogul/enrichment/customer.rb +1 -0
- data/lib/chartmogul/invoice.rb +1 -0
- data/lib/chartmogul/metrics/activity.rb +1 -4
- data/lib/chartmogul/metrics/customers/activity.rb +5 -0
- data/lib/chartmogul/metrics/customers/subscription.rb +5 -0
- data/lib/chartmogul/plan.rb +1 -0
- data/lib/chartmogul/plan_group.rb +1 -0
- data/lib/chartmogul/plan_groups/plans.rb +11 -0
- data/lib/chartmogul/subscription.rb +5 -0
- data/lib/chartmogul/subscription_event.rb +1 -0
- data/lib/chartmogul/version.rb +1 -1
- metadata +4 -102
- data/fixtures/vcr_cassettes/ChartMogul_APIResource/connection/works_in_a_threaded_environment.yml +0 -112
- data/fixtures/vcr_cassettes/ChartMogul_APIResource/connection/works_when_credentials_are_updated.yml +0 -77
- data/fixtures/vcr_cassettes/ChartMogul_Account/returns_details_of_current_account.yml +0 -64
- data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/creates_contact_correctly.yml +0 -134
- data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/destroys_contact_correctly.yml +0 -99
- data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/merges_contact_correctly.yml +0 -105
- data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/paginates_correctly.yml +0 -133
- data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/updates_contact_correctly.yml +0 -102
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/adds_custom_attributes.yml +0 -80
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/adds_required_tags.yml +0 -79
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/can_page_through_search_endpoint.yml +0 -43
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/correctly_handles_a_422_response.yml +0 -50
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/correctly_interracts_with_the_API.yml +0 -192
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/creates_a_contact_belonging_to_the_customer_correctly.yml +0 -72
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/lists_the_contacts_belonging_to_the_customer_correctly.yml +0 -72
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/merges_customers.yml +0 -185
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/raises_401_if_invalid_credentials.yml +0 -38
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/raises_404_if_no_customers_found.yml +0 -38
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/raises_422_for_update_with_invalid_data.yml +0 -86
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/removes_custom_attributes.yml +0 -80
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/removes_tags.yml +0 -80
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/respects_camel_case_for_all_customers_endpoint.yml +0 -45
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/returns_all_customers_through_list_all_endpoint.yml +0 -47
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/returns_customer_through_retrieve_endpoint.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/returns_right_customers_through_search_endpoint.yml +0 -43
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/updates_custom_attributes.yml +0 -81
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/updates_customer.yml +0 -139
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/updates_customer_using_class_method.yml +0 -53
- data/fixtures/vcr_cassettes/ChartMogul_Customer/_find_by_external_id/when_external_id_is_provided/returns_matching_user_if_exists.yml +0 -102
- data/fixtures/vcr_cassettes/ChartMogul_Customer/_find_by_external_id/when_external_id_is_provided/returns_nil_if_customer_does_not_exist.yml +0 -101
- data/fixtures/vcr_cassettes/ChartMogul_CustomerInvoices/API_Interactions/correctly_interracts_with_the_API.yml +0 -337
- data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/correctly_interracts_with_the_API.yml +0 -189
- data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/correctly_raises_errors_on_404.yml +0 -46
- data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/correctly_raises_errors_on_422.yml +0 -48
- data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/retrieves_existing_data_source_matching_uuid.yml +0 -101
- data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/deletes_an_invoice.yml +0 -37
- data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/deletes_an_invoice_with_class_method.yml +0 -37
- data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/raises_error_on_deleting_non-existing_invoice.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/retrieves_existing_invoice_by_uuid.yml +0 -50
- data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/returns_all_invoices_through_list_all_endpoint.yml +0 -46
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARPA/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARPA/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARR/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARR/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ASP/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ASP/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ActivitiesExport/get_activities_export.yml +0 -43
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ActivitiesExport/post_activities_export.yml +0 -83
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Activity/behaves_like_PageableWithAnchor/should_be_pageable.yml +0 -44
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Activity/should_have_Activity_entries.yml +0 -44
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Activity.yml +0 -37
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_AllKeyMetric/should_have_entries.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_AllKeyMetric/should_have_summary.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerChurnRate/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerChurnRate/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerCount/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerCount/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Customers_Activity/behaves_like_Pageable/should_be_pageable.yml +0 -41
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Customers_Activity/should_have_Activity_entries.yml +0 -41
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Customers_Subscription/behaves_like_Pageable/should_be_pageable.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Customers_Subscription/should_have_Subscription_entries.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_LTV/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_LTV/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRR/behaves_like_Summary/should_have_summary.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRR/should_have_entries.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRRChurnRate/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRRChurnRate/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Ping/pings/and_fails_on_incorrect_credentials.yml +0 -38
- data/fixtures/vcr_cassettes/ChartMogul_Ping/pings/and_fails_with_500_internal_server_error.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Ping/pings/and_fails_with_504_gateway_timeout_error.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Ping/pings/when_credentials_correct.yml +0 -38
- data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/correctly_handles_a_422_error.yml +0 -51
- data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/correctly_interacts_with_the_API.yml +0 -152
- data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/deletes_existing_plan.yml +0 -198
- data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/retrieves_existing_plan_by_uuid.yml +0 -151
- data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/updates_existing_plan.yml +0 -198
- data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/updates_existing_plan_using_class_method.yml +0 -164
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/correctly_handles_a_422_error.yml +0 -50
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/deletes_a_plan_group.yml +0 -293
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/retrieves_existing_plan_group_by_uuid.yml +0 -251
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/returns_an_array_of_plan_groups.yml +0 -357
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/updates_existing_plan_group_name.yml +0 -304
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/updates_existing_plan_group_name_via_class_method.yml +0 -297
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/updates_existing_plan_group_plans.yml +0 -411
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroups_Plans/API_interactions/given_a_plan_group_uuid_returns_an_array_of_plans_in_the_plan_group.yml +0 -252
- data/fixtures/vcr_cassettes/ChartMogul_Subscription/API_Interactions/connects_subscriptions.yml +0 -436
- data/fixtures/vcr_cassettes/ChartMogul_Subscription/API_Interactions/correctly_interracts_with_the_API.yml +0 -340
- data/fixtures/vcr_cassettes/ChartMogul_Subscription/API_Interactions/has_multiple_aliases.yml +0 -101
- data/fixtures/vcr_cassettes/ChartMogul_Subscription/_update_cancellation_dates/when_array_has_time_objects/is_setting_the_cancellation_dates_of_the_subscription.yml +0 -138
- data/fixtures/vcr_cassettes/ChartMogul_Subscription/_update_cancellation_dates/when_array_includes_invalid_entries/raises_an_exception.yml +0 -93
- data/fixtures/vcr_cassettes/ChartMogul_Subscription/_update_cancellation_dates/when_array_includes_valid_entries/is_setting_the_cancellation_dates_of_the_subscription.yml +0 -138
- data/fixtures/vcr_cassettes/ChartMogul_Subscription/_update_cancellation_dates/when_array_is_empty/makes_an_API_call_and_removes_the_cancellation_dates.yml +0 -138
- data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/creates_a_new_subscription_event.yml +0 -320
- data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/creates_a_new_subscription_event_through_initialization.yml +0 -320
- data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/deletes_the_subscription_event.yml +0 -377
- data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/lists_all_subscription_events.yml +0 -320
- data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/updates_the_subscription_event.yml +0 -377
- data/fixtures/vcr_cassettes/ChartMogul_Transactions_Payment/API_Interactions/correctly_interracts_with_the_API.yml +0 -243
@@ -1,64 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.chartmogul.com/v1/account
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: "{}"
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v1.0.1
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Authorization:
|
15
|
-
- Basic hidden
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message: OK
|
20
|
-
headers:
|
21
|
-
server:
|
22
|
-
- nginx/1.10.1
|
23
|
-
date:
|
24
|
-
- Wed, 03 Mar 2021 14:09:59 GMT
|
25
|
-
content-type:
|
26
|
-
- application/json; charset=utf-8
|
27
|
-
transfer-encoding:
|
28
|
-
- chunked
|
29
|
-
connection:
|
30
|
-
- keep-alive
|
31
|
-
vary:
|
32
|
-
- Accept-Encoding, Accept-Encoding
|
33
|
-
status:
|
34
|
-
- 200 OK
|
35
|
-
x-frame-options:
|
36
|
-
- SAMEORIGIN
|
37
|
-
x-xss-protection:
|
38
|
-
- 1; mode=block
|
39
|
-
x-content-type-options:
|
40
|
-
- nosniff
|
41
|
-
x-download-options:
|
42
|
-
- noopen
|
43
|
-
x-permitted-cross-domain-policies:
|
44
|
-
- none
|
45
|
-
referrer-policy:
|
46
|
-
- strict-origin-when-cross-origin
|
47
|
-
etag:
|
48
|
-
- W/"40c9400b568f357a5ea27c39820ee12c"
|
49
|
-
cache-control:
|
50
|
-
- max-age=0, private, must-revalidate
|
51
|
-
x-request-id:
|
52
|
-
- 40488095-438b-443f-bbce-a5f2c9dc3a07
|
53
|
-
x-protected-by:
|
54
|
-
- Sqreen
|
55
|
-
x-runtime:
|
56
|
-
- '0.047066'
|
57
|
-
strict-transport-security:
|
58
|
-
- max-age=15768000
|
59
|
-
body:
|
60
|
-
encoding: ASCII-8BIT
|
61
|
-
string: '{"name":"Example Test Company","currency":"EUR","time_zone":"Europe/Berlin","week_start_on":"sunday"}'
|
62
|
-
http_version:
|
63
|
-
recorded_at: Wed, 03 Mar 2021 14:09:59 GMT
|
64
|
-
recorded_with: VCR 5.1.0
|
data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/creates_contact_correctly.yml
DELETED
@@ -1,134 +0,0 @@
|
|
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":"Customer Test Data Source"}'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- chartmogul-ruby/3.0.2
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Authorization:
|
15
|
-
- Basic hidden
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 201
|
19
|
-
message: Created
|
20
|
-
headers:
|
21
|
-
access-control-allow-credentials:
|
22
|
-
- 'true'
|
23
|
-
content-type:
|
24
|
-
- application/json
|
25
|
-
date:
|
26
|
-
- Fri, 10 Mar 2023 03:41:54 GMT
|
27
|
-
content-length:
|
28
|
-
- '163'
|
29
|
-
connection:
|
30
|
-
- keep-alive
|
31
|
-
body:
|
32
|
-
encoding: UTF-8
|
33
|
-
string: '{"uuid":"ds_80251880-bef5-11ed-a88b-db28feaa7eba","name":"Customer
|
34
|
-
Test Data Source","system":"Import API","created_at":"2023-03-10T03:41:54.419Z","status":"idle"}'
|
35
|
-
http_version:
|
36
|
-
recorded_at: Fri, 10 Mar 2023 03:41:54 GMT
|
37
|
-
- request:
|
38
|
-
method: post
|
39
|
-
uri: https://api.chartmogul.com/v1/customers
|
40
|
-
body:
|
41
|
-
encoding: UTF-8
|
42
|
-
string: '{"external_id":"X1234","name":"Test Customer","email":"test@example.com","data_source_uuid":"ds_80251880-bef5-11ed-a88b-db28feaa7eba"}'
|
43
|
-
headers:
|
44
|
-
User-Agent:
|
45
|
-
- chartmogul-ruby/3.0.2
|
46
|
-
Content-Type:
|
47
|
-
- application/json
|
48
|
-
Authorization:
|
49
|
-
- Basic hidden
|
50
|
-
response:
|
51
|
-
status:
|
52
|
-
code: 201
|
53
|
-
message: Created
|
54
|
-
headers:
|
55
|
-
access-control-allow-credentials:
|
56
|
-
- 'true'
|
57
|
-
content-type:
|
58
|
-
- application/json
|
59
|
-
date:
|
60
|
-
- Fri, 10 Mar 2023 03:41:55 GMT
|
61
|
-
content-length:
|
62
|
-
- '785'
|
63
|
-
connection:
|
64
|
-
- keep-alive
|
65
|
-
body:
|
66
|
-
encoding: UTF-8
|
67
|
-
string: '{"id":102680322,"uuid":"cus_80ec0c06-bef5-11ed-a88c-974c518fc467","external_id":"X1234","name":"Test
|
68
|
-
Customer","email":"test@example.com","status":"New Lead","customer-since":null,"attributes":{"custom":{},"clearbit":{},"stripe":{},"tags":[]},"data_source_uuid":"ds_80251880-bef5-11ed-a88b-db28feaa7eba","data_source_uuids":["ds_80251880-bef5-11ed-a88b-db28feaa7eba"],"external_ids":["X1234"],"company":"","country":null,"state":null,"city":"","zip":null,"lead_created_at":null,"free_trial_started_at":null,"address":{"country":null,"state":null,"city":"","address_zip":null},"mrr":0,"arr":0,"billing-system-url":null,"chartmogul-url":"https://app.chartmogul.com/#/customers/102680322-Test_Customer","billing-system-type":"Import
|
69
|
-
API","currency":"USD","currency-sign":"$","owner":null}'
|
70
|
-
http_version:
|
71
|
-
recorded_at: Fri, 10 Mar 2023 03:41:56 GMT
|
72
|
-
- request:
|
73
|
-
method: post
|
74
|
-
uri: https://api.chartmogul.com/v1/contacts
|
75
|
-
body:
|
76
|
-
encoding: UTF-8
|
77
|
-
string: '{"email":"test@example.com"}'
|
78
|
-
headers:
|
79
|
-
User-Agent:
|
80
|
-
- chartmogul-ruby/3.0.2
|
81
|
-
Content-Type:
|
82
|
-
- application/json
|
83
|
-
Authorization:
|
84
|
-
- Basic hidden
|
85
|
-
response:
|
86
|
-
status:
|
87
|
-
code: 201
|
88
|
-
message: Created
|
89
|
-
headers:
|
90
|
-
content-type:
|
91
|
-
- application/json
|
92
|
-
date:
|
93
|
-
- Fri, 10 Mar 2023 03:41:57 GMT
|
94
|
-
content-length:
|
95
|
-
- '393'
|
96
|
-
connection:
|
97
|
-
- keep-alive
|
98
|
-
body:
|
99
|
-
encoding: UTF-8
|
100
|
-
string: '{"uuid":"con_2f7b28ba-bef6-11ed-941f-075fbe6af258","customer_uuid":"cus_00b714f0-9e33-11ed-a815-77795aac7785","customer_external_id":"scus_b9373adf50d6ab86e96653b4443efb78","data_source_uuid":"ds_87832fac-ab61-11ec-a8d8-6fb18044a151","position":23,"first_name":null,"last_name":null,"title":null,"email":"test@example.com","phone":null,"linked_in":null,"twitter":null,"notes":null,"custom":{}}'
|
101
|
-
http_version:
|
102
|
-
recorded_at: Fri, 10 Mar 2023 03:41:57 GMT
|
103
|
-
- request:
|
104
|
-
method: get
|
105
|
-
uri: https://api.chartmogul.com/v1/contacts/con_2f7b28ba-bef6-11ed-941f-075fbe6af258
|
106
|
-
body:
|
107
|
-
encoding: UTF-8
|
108
|
-
string: ''
|
109
|
-
headers:
|
110
|
-
User-Agent:
|
111
|
-
- chartmogul-ruby/3.0.2
|
112
|
-
Content-Type:
|
113
|
-
- application/json
|
114
|
-
Authorization:
|
115
|
-
- Basic hidden
|
116
|
-
response:
|
117
|
-
status:
|
118
|
-
code: 201
|
119
|
-
message: Created
|
120
|
-
headers:
|
121
|
-
content-type:
|
122
|
-
- application/json
|
123
|
-
date:
|
124
|
-
- Fri, 10 Mar 2023 03:41:57 GMT
|
125
|
-
content-length:
|
126
|
-
- '505'
|
127
|
-
connection:
|
128
|
-
- keep-alive
|
129
|
-
body:
|
130
|
-
encoding: UTF-8
|
131
|
-
string: '{"uuid":"con_16470f98-bef7-11ed-9208-7b08a40f3049","customer_uuid":"cus_80ec0c06-bef5-11ed-a88c-974c518fc467","customer_external_id":"123","data_source_uuid":"ds_80251880-bef5-11ed-a88b-db28feaa7eba","position":1,"first_name":null,"last_name":null,"title":null,"email":"test@example.com","phone":null,"linked_in":null,"twitter":null,"notes":null,"custom":{}}'
|
132
|
-
http_version:
|
133
|
-
recorded_at: Fri, 10 Mar 2023 03:41:57 GMT
|
134
|
-
recorded_with: VCR 5.1.0
|
data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/destroys_contact_correctly.yml
DELETED
@@ -1,99 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.chartmogul.com/v1/contacts/con_e2894d28-9189-11ed-8100-ffadd676801d
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- chartmogul-ruby/3.0.2
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Authorization:
|
15
|
-
- Basic hidden
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message: OK
|
20
|
-
headers:
|
21
|
-
access-control-allow-credentials:
|
22
|
-
- 'true'
|
23
|
-
content-type:
|
24
|
-
- application/json
|
25
|
-
date:
|
26
|
-
- Fri, 10 Mar 2023 09:30:33 GMT
|
27
|
-
content-length:
|
28
|
-
- '436'
|
29
|
-
connection:
|
30
|
-
- keep-alive
|
31
|
-
body:
|
32
|
-
encoding: UTF-8
|
33
|
-
string: '{"uuid":"con_e2894d28-9189-11ed-8100-ffadd676801d","customer_uuid":"cus_19580b15-1ab7-40ec-bdb9-638b81354b9e","customer_external_id":"scus_021","data_source_uuid":"ds_2b98cb2c-5bf0-11ec-a5d0-07b36dac065d","position":9,"first_name":"Foo","last_name":"Bar","title":"CTO","email":"test2@example.com","phone":"+9876543210","linked_in":"https://linkedin.com/about","twitter":"https://twitter.com/about","notes":null,"custom":{"Toggle":true}}'
|
34
|
-
http_version:
|
35
|
-
recorded_at: Fri, 10 Mar 2023 09:30:33 GMT
|
36
|
-
- request:
|
37
|
-
method: delete
|
38
|
-
uri: https://api.chartmogul.com/v1/contacts/con_e2894d28-9189-11ed-8100-ffadd676801d
|
39
|
-
body:
|
40
|
-
encoding: US-ASCII
|
41
|
-
string: ''
|
42
|
-
headers:
|
43
|
-
User-Agent:
|
44
|
-
- chartmogul-ruby/3.0.2
|
45
|
-
Authorization:
|
46
|
-
- Basic hidden
|
47
|
-
response:
|
48
|
-
status:
|
49
|
-
code: 200
|
50
|
-
message: OK
|
51
|
-
headers:
|
52
|
-
access-control-allow-credentials:
|
53
|
-
- 'true'
|
54
|
-
content-type:
|
55
|
-
- application/json
|
56
|
-
date:
|
57
|
-
- Fri, 10 Mar 2023 09:30:34 GMT
|
58
|
-
content-length:
|
59
|
-
- '2'
|
60
|
-
connection:
|
61
|
-
- keep-alive
|
62
|
-
body:
|
63
|
-
encoding: UTF-8
|
64
|
-
string: "{}"
|
65
|
-
http_version:
|
66
|
-
recorded_at: Fri, 10 Mar 2023 09:30:34 GMT
|
67
|
-
- request:
|
68
|
-
method: get
|
69
|
-
uri: https://api.chartmogul.com/v1/contacts/con_e2894d28-9189-11ed-8100-ffadd676801d
|
70
|
-
body:
|
71
|
-
encoding: US-ASCII
|
72
|
-
string: ''
|
73
|
-
headers:
|
74
|
-
User-Agent:
|
75
|
-
- chartmogul-ruby/3.0.2
|
76
|
-
Content-Type:
|
77
|
-
- application/json
|
78
|
-
Authorization:
|
79
|
-
- Basic hidden
|
80
|
-
response:
|
81
|
-
status:
|
82
|
-
code: 404
|
83
|
-
message: Not Found
|
84
|
-
headers:
|
85
|
-
content-type:
|
86
|
-
- application/json
|
87
|
-
date:
|
88
|
-
- Fri, 10 Mar 2023 09:30:35 GMT
|
89
|
-
content-length:
|
90
|
-
- '111'
|
91
|
-
connection:
|
92
|
-
- keep-alive
|
93
|
-
body:
|
94
|
-
encoding: UTF-8
|
95
|
-
string: '{"code":404,"message":"Contact \"7c4c3152-9192-11ed-b18e-efa6b954f7e6\"
|
96
|
-
does not exist","param":"contact_uuid"}'
|
97
|
-
http_version:
|
98
|
-
recorded_at: Fri, 10 Mar 2023 09:30:35 GMT
|
99
|
-
recorded_with: VCR 5.1.0
|
data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/merges_contact_correctly.yml
DELETED
@@ -1,105 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.chartmogul.com/v1/contacts/con_f4ef7c64-bf27-11ed-92ad-a7d034bf3085
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- chartmogul-ruby/3.0.2
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Authorization:
|
15
|
-
- Basic hidden
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message: OK
|
20
|
-
headers:
|
21
|
-
access-control-allow-credentials:
|
22
|
-
- 'true'
|
23
|
-
content-type:
|
24
|
-
- application/json
|
25
|
-
date:
|
26
|
-
- Fri, 10 Mar 2023 10:03:12 GMT
|
27
|
-
content-length:
|
28
|
-
- '390'
|
29
|
-
connection:
|
30
|
-
- keep-alive
|
31
|
-
body:
|
32
|
-
encoding: UTF-8
|
33
|
-
string: '{"uuid":"con_f4ef7c64-bf27-11ed-92ad-a7d034bf3085","customer_uuid":"cus_80ec0c06-bef5-11ed-a88c-974c518fc467","customer_external_id":"X1234","data_source_uuid":"ds_80251880-bef5-11ed-a88b-db28feaa7eba","position":1,"first_name":"Merged
|
34
|
-
1 First","last_name":"Merged 1 Last","title":"","email":"","phone":"","linked_in":"https://linkedin.com/merged1","twitter":"","notes":"Hello","custom":{}}'
|
35
|
-
http_version:
|
36
|
-
recorded_at: Fri, 10 Mar 2023 10:03:12 GMT
|
37
|
-
- request:
|
38
|
-
method: get
|
39
|
-
uri: https://api.chartmogul.com/v1/contacts/con_33dd5606-bf2a-11ed-a7d0-17036209bd22
|
40
|
-
body:
|
41
|
-
encoding: US-ASCII
|
42
|
-
string: ''
|
43
|
-
headers:
|
44
|
-
User-Agent:
|
45
|
-
- chartmogul-ruby/3.0.2
|
46
|
-
Content-Type:
|
47
|
-
- application/json
|
48
|
-
Authorization:
|
49
|
-
- Basic hidden
|
50
|
-
response:
|
51
|
-
status:
|
52
|
-
code: 200
|
53
|
-
message: OK
|
54
|
-
headers:
|
55
|
-
access-control-allow-credentials:
|
56
|
-
- 'true'
|
57
|
-
content-type:
|
58
|
-
- application/json
|
59
|
-
date:
|
60
|
-
- Fri, 10 Mar 2023 10:03:14 GMT
|
61
|
-
content-length:
|
62
|
-
- '420'
|
63
|
-
connection:
|
64
|
-
- keep-alive
|
65
|
-
body:
|
66
|
-
encoding: UTF-8
|
67
|
-
string: '{"uuid":"con_33dd5606-bf2a-11ed-a7d0-17036209bd22","customer_uuid":"cus_80ec0c06-bef5-11ed-a88c-974c518fc467","customer_external_id":"X1234","data_source_uuid":"ds_80251880-bef5-11ed-a88b-db28feaa7eba","position":4,"first_name":"Merged
|
68
|
-
2 First","last_name":"Merged 2 Last","title":"CTO","email":"test6@example.com","phone":"123435412","linked_in":null,"twitter":"https://twitter.com/merged2","notes":"World","custom":{}}'
|
69
|
-
http_version:
|
70
|
-
recorded_at: Fri, 10 Mar 2023 10:03:14 GMT
|
71
|
-
- request:
|
72
|
-
method: post
|
73
|
-
uri: https://api.chartmogul.com/v1/contacts/con_f4ef7c64-bf27-11ed-92ad-a7d034bf3085/merge/con_33dd5606-bf2a-11ed-a7d0-17036209bd22
|
74
|
-
body:
|
75
|
-
encoding: UTF-8
|
76
|
-
string: "{}"
|
77
|
-
headers:
|
78
|
-
User-Agent:
|
79
|
-
- chartmogul-ruby/3.0.2
|
80
|
-
Content-Type:
|
81
|
-
- application/json
|
82
|
-
Authorization:
|
83
|
-
- Basic hidden
|
84
|
-
response:
|
85
|
-
status:
|
86
|
-
code: 200
|
87
|
-
message: OK
|
88
|
-
headers:
|
89
|
-
access-control-allow-credentials:
|
90
|
-
- 'true'
|
91
|
-
content-type:
|
92
|
-
- application/json
|
93
|
-
date:
|
94
|
-
- Fri, 10 Mar 2023 10:03:15 GMT
|
95
|
-
content-length:
|
96
|
-
- '414'
|
97
|
-
connection:
|
98
|
-
- keep-alive
|
99
|
-
body:
|
100
|
-
encoding: UTF-8
|
101
|
-
string: '{"uuid":"con_f4ef7c64-bf27-11ed-92ad-a7d034bf3085","customer_uuid":null,"customer_external_id":"X1234","data_source_uuid":"ds_80251880-bef5-11ed-a88b-db28feaa7eba","position":1,"first_name":"Merged
|
102
|
-
1 First","last_name":"Merged 1 Last","title":"CTO","email":"test6@example.com","phone":"123435412","linked_in":"https://linkedin.com/merged1","twitter":"https://twitter.com/merged2","notes":"Hello World","custom":{}}'
|
103
|
-
http_version:
|
104
|
-
recorded_at: Fri, 10 Mar 2023 10:03:15 GMT
|
105
|
-
recorded_with: VCR 5.1.0
|
@@ -1,133 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.chartmogul.com/v1/contacts
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- chartmogul-ruby/3.0.2
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Authorization:
|
15
|
-
- Basic hidden
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message: OK
|
20
|
-
headers:
|
21
|
-
access-control-allow-credentials:
|
22
|
-
- 'true'
|
23
|
-
content-type:
|
24
|
-
- application/json
|
25
|
-
date:
|
26
|
-
- Fri, 10 Mar 2023 08:51:16 GMT
|
27
|
-
vary:
|
28
|
-
- Accept-Encoding
|
29
|
-
transfer-encoding:
|
30
|
-
- chunked
|
31
|
-
connection:
|
32
|
-
- keep-alive
|
33
|
-
body:
|
34
|
-
encoding: ASCII-8BIT
|
35
|
-
string: '{
|
36
|
-
"entries":[
|
37
|
-
{"uuid":"con_1922c172-9174-11ed-b655-47c5fb422d6c","customer_uuid":"cus_19580b15-1ab7-40ec-bdb9-638b81354b9e","customer_external_id":"scus_021","data_source_uuid":"ds_2b98cb2c-5bf0-11ec-a5d0-07b36dac065d","position":1,"first_name":"contact1","last_name":"contact","title":null,"email":"test@example.com","phone":null,"linked_in":null,"twitter":null,"notes":null,"custom":{}},
|
38
|
-
{"uuid":"con_c12a64ea-9180-11ed-b6ec-9752d090f315","customer_uuid":"cus_19580b15-1ab7-40ec-bdb9-638b81354b9e","customer_external_id":"scus_021","data_source_uuid":"ds_2b98cb2c-5bf0-11ec-a5d0-07b36dac065d","position":2,"first_name":"contact2","last_name":"contact","title":null,"email":"test@example.com","phone":null,"linked_in":null,"twitter":null,"notes":null,"custom":{}},
|
39
|
-
{"uuid":"con_1fe21a32-9181-11ed-b536-7f856d6a5b2d","customer_uuid":"cus_19580b15-1ab7-40ec-bdb9-638b81354b9e","customer_external_id":"scus_021","data_source_uuid":"ds_2b98cb2c-5bf0-11ec-a5d0-07b36dac065d","position":3,"first_name":"contact3","last_name":"contact","title":null,"email":"test@example.com","phone":null,"linked_in":null,"twitter":null,"notes":null,"custom":{}},
|
40
|
-
{"uuid":"con_e2894d28-9189-11ed-8100-ffadd676801d","customer_uuid":"cus_19580b15-1ab7-40ec-bdb9-638b81354b9e","customer_external_id":"scus_021","data_source_uuid":"ds_2b98cb2c-5bf0-11ec-a5d0-07b36dac065d","position":4,"first_name":"contact4","last_name":"contact","title":null,"email":"test@example.com","phone":null,"linked_in":null,"twitter":null,"notes":null,"custom":{}},
|
41
|
-
{"uuid":"con_2019ea66-9190-11ed-bb5a-779d25c759d0","customer_uuid":"cus_189e19d1-9893-4afe-b035-42e23c4799a6","customer_external_id":"scus_021","data_source_uuid":"ds_2b98cb2c-5bf0-11ec-a5d0-07b36dac065d","position":5,"first_name":"contact5","last_name":"contact","title":null,"email":"test@example.com","phone":null,"linked_in":null,"twitter":null,"notes":null,"custom":{}}
|
42
|
-
],
|
43
|
-
"cursor":"MjAyMy0wMS0xMVQwNzoyNToyOS4wMDI5MzIwMDBaJmNvbl8xZmUyMWEzMi05MTgxLTExZWQtYjUzNi03Zjg1NmQ2YTViMmQ=",
|
44
|
-
"has_more":false
|
45
|
-
}'
|
46
|
-
http_version:
|
47
|
-
recorded_at: Fri, 10 Mar 2023 08:51:16 GMT
|
48
|
-
- request:
|
49
|
-
method: get
|
50
|
-
uri: https://api.chartmogul.com/v1/contacts?per_page=3
|
51
|
-
body:
|
52
|
-
encoding: US-ASCII
|
53
|
-
string: ''
|
54
|
-
headers:
|
55
|
-
User-Agent:
|
56
|
-
- chartmogul-ruby/3.0.2
|
57
|
-
Content-Type:
|
58
|
-
- application/json
|
59
|
-
Authorization:
|
60
|
-
- Basic hidden
|
61
|
-
response:
|
62
|
-
status:
|
63
|
-
code: 200
|
64
|
-
message: OK
|
65
|
-
headers:
|
66
|
-
access-control-allow-credentials:
|
67
|
-
- 'true'
|
68
|
-
content-type:
|
69
|
-
- application/json
|
70
|
-
date:
|
71
|
-
- Fri, 10 Mar 2023 08:51:17 GMT
|
72
|
-
vary:
|
73
|
-
- Accept-Encoding
|
74
|
-
content-length:
|
75
|
-
- '570'
|
76
|
-
connection:
|
77
|
-
- keep-alive
|
78
|
-
body:
|
79
|
-
encoding: ASCII-8BIT
|
80
|
-
string: '{
|
81
|
-
"entries":[
|
82
|
-
{"uuid":"con_1922c172-9174-11ed-b655-47c5fb422d6c","customer_uuid":"cus_19580b15-1ab7-40ec-bdb9-638b81354b9e","customer_external_id":"scus_021","data_source_uuid":"ds_2b98cb2c-5bf0-11ec-a5d0-07b36dac065d","position":1,"first_name":"contact1","last_name":"contact","title":null,"email":"test@example.com","phone":null,"linked_in":null,"twitter":null,"notes":null,"custom":{}},
|
83
|
-
{"uuid":"con_c12a64ea-9180-11ed-b6ec-9752d090f315","customer_uuid":"cus_19580b15-1ab7-40ec-bdb9-638b81354b9e","customer_external_id":"scus_021","data_source_uuid":"ds_2b98cb2c-5bf0-11ec-a5d0-07b36dac065d","position":2,"first_name":"contact2","last_name":"contact","title":null,"email":"test@example.com","phone":null,"linked_in":null,"twitter":null,"notes":null,"custom":{}},
|
84
|
-
{"uuid":"con_1fe21a32-9181-11ed-b536-7f856d6a5b2d","customer_uuid":"cus_19580b15-1ab7-40ec-bdb9-638b81354b9e","customer_external_id":"scus_021","data_source_uuid":"ds_2b98cb2c-5bf0-11ec-a5d0-07b36dac065d","position":3,"first_name":"contact3","last_name":"contact","title":null,"email":"test@example.com","phone":null,"linked_in":null,"twitter":null,"notes":null,"custom":{}}
|
85
|
-
],
|
86
|
-
"cursor":"MjAyMy0wMS0xMVQwNzoyNToyOS4wMDI5MzIwMDBaJmNvbl8xZmUyMWEzMi05MTgxLTExZWQtYjUzNi03Zjg1NmQ2YTViMmQ=",
|
87
|
-
"has_more":true
|
88
|
-
}'
|
89
|
-
http_version:
|
90
|
-
recorded_at: Fri, 10 Mar 2023 08:51:18 GMT
|
91
|
-
- request:
|
92
|
-
method: get
|
93
|
-
uri: https://api.chartmogul.com/v1/contacts?cursor=MjAyMy0wMS0xMVQwNzoyNToyOS4wMDI5MzIwMDBaJmNvbl8xZmUyMWEzMi05MTgxLTExZWQtYjUzNi03Zjg1NmQ2YTViMmQ%3D&per_page=3
|
94
|
-
body:
|
95
|
-
encoding: US-ASCII
|
96
|
-
string: ''
|
97
|
-
headers:
|
98
|
-
User-Agent:
|
99
|
-
- chartmogul-ruby/3.0.2
|
100
|
-
Content-Type:
|
101
|
-
- application/json
|
102
|
-
Authorization:
|
103
|
-
- Basic hidden
|
104
|
-
response:
|
105
|
-
status:
|
106
|
-
code: 200
|
107
|
-
message: OK
|
108
|
-
headers:
|
109
|
-
access-control-allow-credentials:
|
110
|
-
- 'true'
|
111
|
-
content-type:
|
112
|
-
- application/json
|
113
|
-
date:
|
114
|
-
- Fri, 10 Mar 2023 08:51:19 GMT
|
115
|
-
vary:
|
116
|
-
- Accept-Encoding
|
117
|
-
content-length:
|
118
|
-
- '532'
|
119
|
-
connection:
|
120
|
-
- keep-alive
|
121
|
-
body:
|
122
|
-
encoding: ASCII-8BIT
|
123
|
-
string: '{
|
124
|
-
"entries":[
|
125
|
-
{"uuid":"con_e2894d28-9189-11ed-8100-ffadd676801d","customer_uuid":"cus_19580b15-1ab7-40ec-bdb9-638b81354b9e","customer_external_id":"scus_021","data_source_uuid":"ds_2b98cb2c-5bf0-11ec-a5d0-07b36dac065d","position":4,"first_name":"contact4","last_name":"contact","title":null,"email":"test@example.com","phone":null,"linked_in":null,"twitter":null,"notes":null,"custom":{}},
|
126
|
-
{"uuid":"con_2019ea66-9190-11ed-bb5a-779d25c759d0","customer_uuid":"cus_189e19d1-9893-4afe-b035-42e23c4799a6","customer_external_id":"scus_021","data_source_uuid":"ds_2b98cb2c-5bf0-11ec-a5d0-07b36dac065d","position":5,"first_name":"contact5","last_name":"contact","title":null,"email":"test@example.com","phone":null,"linked_in":null,"twitter":null,"notes":null,"custom":{}}
|
127
|
-
],
|
128
|
-
"cursor":"MjAyMy0wMS0xMVQwOToyOTo0NS40ODYzNTkwMDBaJmNvbl83YzRjMzE1Mi05MTkyLTExZWQtYjE4ZS1lZmE2Yjk1NGY3ZTY=",
|
129
|
-
"has_more":false
|
130
|
-
}'
|
131
|
-
http_version:
|
132
|
-
recorded_at: Fri, 10 Mar 2023 08:51:19 GMT
|
133
|
-
recorded_with: VCR 5.1.0
|
data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/updates_contact_correctly.yml
DELETED
@@ -1,102 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.chartmogul.com/v1/contacts/con_8305e66c-bf2f-11ed-a4cb-db537410c51b
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- chartmogul-ruby/3.0.2
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Authorization:
|
15
|
-
- Basic hidden
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message: OK
|
20
|
-
headers:
|
21
|
-
access-control-allow-credentials:
|
22
|
-
- 'true'
|
23
|
-
content-type:
|
24
|
-
- application/json
|
25
|
-
date:
|
26
|
-
- Fri, 10 Mar 2023 10:38:00 GMT
|
27
|
-
content-length:
|
28
|
-
- '346'
|
29
|
-
connection:
|
30
|
-
- keep-alive
|
31
|
-
body:
|
32
|
-
encoding: UTF-8
|
33
|
-
string: '{"uuid":"con_8305e66c-bf2f-11ed-a4cb-db537410c51b","customer_uuid":"cus_80ec0c06-bef5-11ed-a88c-974c518fc467","customer_external_id":"X1234","data_source_uuid":"ds_80251880-bef5-11ed-a88b-db28feaa7eba","position":6,"first_name":null,"last_name":null,"title":null,"email":null,"phone":null,"linked_in":null,"twitter":null,"notes":null,"custom":{}}'
|
34
|
-
http_version:
|
35
|
-
recorded_at: Fri, 10 Mar 2023 10:38:00 GMT
|
36
|
-
- request:
|
37
|
-
method: patch
|
38
|
-
uri: https://api.chartmogul.com/v1/contacts/con_8305e66c-bf2f-11ed-a4cb-db537410c51b
|
39
|
-
body:
|
40
|
-
encoding: UTF-8
|
41
|
-
string: '{"customer_external_id":"X1234","position":9,"first_name":"Foo","last_name":"Bar","title":"CTO","email":"test2@example.com","phone":"+9876543210","linked_in":"https://linkedin.com/about","twitter":"https://twitter.com/about","custom":[{"key":"Toggle","value":false}]}'
|
42
|
-
headers:
|
43
|
-
User-Agent:
|
44
|
-
- chartmogul-ruby/3.0.2
|
45
|
-
Content-Type:
|
46
|
-
- application/json
|
47
|
-
Authorization:
|
48
|
-
- Basic hidden
|
49
|
-
response:
|
50
|
-
status:
|
51
|
-
code: 200
|
52
|
-
message: OK
|
53
|
-
headers:
|
54
|
-
access-control-allow-credentials:
|
55
|
-
- 'true'
|
56
|
-
content-type:
|
57
|
-
- application/json
|
58
|
-
date:
|
59
|
-
- Fri, 10 Mar 2023 10:38:01 GMT
|
60
|
-
content-length:
|
61
|
-
- '434'
|
62
|
-
connection:
|
63
|
-
- keep-alive
|
64
|
-
body:
|
65
|
-
encoding: UTF-8
|
66
|
-
string: '{"uuid":"con_8305e66c-bf2f-11ed-a4cb-db537410c51b","customer_uuid":"cus_80ec0c06-bef5-11ed-a88c-974c518fc467","customer_external_id":"X1234","data_source_uuid":"ds_80251880-bef5-11ed-a88b-db28feaa7eba","position":9,"first_name":"Foo","last_name":"Bar","title":"CTO","email":"test2@example.com","phone":"+9876543210","linked_in":"https://linkedin.com/about","twitter":"https://twitter.com/about","notes":null,"custom":{"Toggle":false}}'
|
67
|
-
http_version:
|
68
|
-
recorded_at: Fri, 10 Mar 2023 10:38:01 GMT
|
69
|
-
- request:
|
70
|
-
method: get
|
71
|
-
uri: https://api.chartmogul.com/v1/contacts/con_8305e66c-bf2f-11ed-a4cb-db537410c51b
|
72
|
-
body:
|
73
|
-
encoding: US-ASCII
|
74
|
-
string: ''
|
75
|
-
headers:
|
76
|
-
User-Agent:
|
77
|
-
- chartmogul-ruby/3.0.2
|
78
|
-
Content-Type:
|
79
|
-
- application/json
|
80
|
-
Authorization:
|
81
|
-
- Basic hidden
|
82
|
-
response:
|
83
|
-
status:
|
84
|
-
code: 200
|
85
|
-
message: OK
|
86
|
-
headers:
|
87
|
-
access-control-allow-credentials:
|
88
|
-
- 'true'
|
89
|
-
content-type:
|
90
|
-
- application/json
|
91
|
-
date:
|
92
|
-
- Fri, 10 Mar 2023 10:38:03 GMT
|
93
|
-
content-length:
|
94
|
-
- '434'
|
95
|
-
connection:
|
96
|
-
- keep-alive
|
97
|
-
body:
|
98
|
-
encoding: UTF-8
|
99
|
-
string: '{"uuid":"con_8305e66c-bf2f-11ed-a4cb-db537410c51b","customer_uuid":"cus_80ec0c06-bef5-11ed-a88c-974c518fc467","customer_external_id":"X1234","data_source_uuid":"ds_80251880-bef5-11ed-a88b-db28feaa7eba","position":9,"first_name":"Foo","last_name":"Bar","title":"CTO","email":"test2@example.com","phone":"+9876543210","linked_in":"https://linkedin.com/about","twitter":"https://twitter.com/about","notes":null,"custom":{"Toggle":false}}'
|
100
|
-
http_version:
|
101
|
-
recorded_at: Fri, 10 Mar 2023 10:38:03 GMT
|
102
|
-
recorded_with: VCR 5.1.0
|