klaviyo_sdk 1.0.1.20220329 → 1.0.2.20220329

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/README.md +99 -99
  4. data/docs/Campaign.md +2 -2
  5. data/docs/CampaignsApi.md +37 -37
  6. data/docs/CheckMembershipRequest.md +2 -2
  7. data/docs/DataPrivacyApi.md +5 -5
  8. data/docs/DeleteEmail.md +2 -2
  9. data/docs/DeletePerson.md +2 -2
  10. data/docs/DeletePhone.md +2 -2
  11. data/docs/DeprecatedGetListResponse.md +2 -2
  12. data/docs/DeprecatedGetListResponseData.md +2 -2
  13. data/docs/GlobalExclusionResponseData.md +2 -2
  14. data/docs/IdentifyPayload.md +2 -2
  15. data/docs/IdentifyPayloadProperties.md +2 -2
  16. data/docs/InlineObject.md +2 -2
  17. data/docs/InlineObject3.md +2 -2
  18. data/docs/InlineObject4.md +2 -2
  19. data/docs/InlineObject5.md +2 -2
  20. data/docs/ListsSegmentsApi.md +71 -71
  21. data/docs/Metric.md +2 -2
  22. data/docs/MetricExport.md +2 -2
  23. data/docs/MetricTimeline.md +2 -2
  24. data/docs/MetricTimelineData.md +2 -2
  25. data/docs/MetricsApi.md +17 -17
  26. data/docs/Person.md +2 -2
  27. data/docs/PrivacyEmail.md +2 -2
  28. data/docs/PrivacyId.md +2 -2
  29. data/docs/PrivacyPhone.md +2 -2
  30. data/docs/ProfilesApi.md +22 -22
  31. data/docs/RenderedTemplate.md +2 -2
  32. data/docs/Template.md +2 -2
  33. data/docs/TemplatesApi.md +29 -29
  34. data/docs/TrackIdentifyApi.md +13 -13
  35. data/docs/TrackPayload.md +2 -2
  36. data/docs/TrackPayloadCustomerProperties.md +2 -2
  37. data/docs/TrackPayloadProperties.md +2 -2
  38. data/klaviyo_sdk.gemspec +1 -1
  39. data/lib/klaviyo_sdk/api/campaigns_api.rb +1 -1
  40. data/lib/klaviyo_sdk/api/data_privacy_api.rb +1 -1
  41. data/lib/klaviyo_sdk/api/lists_segments_api.rb +1 -1
  42. data/lib/klaviyo_sdk/api/metrics_api.rb +1 -1
  43. data/lib/klaviyo_sdk/api/profiles_api.rb +1 -1
  44. data/lib/klaviyo_sdk/api/templates_api.rb +1 -1
  45. data/lib/klaviyo_sdk/api/track_identify_api.rb +1 -1
  46. data/lib/klaviyo_sdk/api_client.rb +2 -2
  47. data/lib/klaviyo_sdk/api_error.rb +1 -1
  48. data/lib/klaviyo_sdk/configuration.rb +1 -1
  49. data/lib/klaviyo_sdk/models/campaign.rb +4 -4
  50. data/lib/klaviyo_sdk/models/check_membership_request.rb +4 -4
  51. data/lib/klaviyo_sdk/models/delete_email.rb +4 -4
  52. data/lib/klaviyo_sdk/models/delete_person.rb +4 -4
  53. data/lib/klaviyo_sdk/models/delete_phone.rb +4 -4
  54. data/lib/klaviyo_sdk/models/deprecated_get_list_response.rb +4 -4
  55. data/lib/klaviyo_sdk/models/deprecated_get_list_response_data.rb +4 -4
  56. data/lib/klaviyo_sdk/models/global_exclusion_response_data.rb +4 -4
  57. data/lib/klaviyo_sdk/models/identify_payload.rb +4 -4
  58. data/lib/klaviyo_sdk/models/identify_payload_properties.rb +4 -4
  59. data/lib/klaviyo_sdk/models/inline_object.rb +4 -4
  60. data/lib/klaviyo_sdk/models/inline_object3.rb +4 -4
  61. data/lib/klaviyo_sdk/models/inline_object4.rb +4 -4
  62. data/lib/klaviyo_sdk/models/inline_object5.rb +4 -4
  63. data/lib/klaviyo_sdk/models/metric.rb +4 -4
  64. data/lib/klaviyo_sdk/models/metric_export.rb +4 -4
  65. data/lib/klaviyo_sdk/models/metric_timeline.rb +4 -4
  66. data/lib/klaviyo_sdk/models/metric_timeline_data.rb +4 -4
  67. data/lib/klaviyo_sdk/models/person.rb +4 -4
  68. data/lib/klaviyo_sdk/models/person.rb.bak +4 -4
  69. data/lib/klaviyo_sdk/models/privacy_email.rb +4 -4
  70. data/lib/klaviyo_sdk/models/privacy_id.rb +4 -4
  71. data/lib/klaviyo_sdk/models/privacy_phone.rb +4 -4
  72. data/lib/klaviyo_sdk/models/rendered_template.rb +4 -4
  73. data/lib/klaviyo_sdk/models/template.rb +4 -4
  74. data/lib/klaviyo_sdk/models/track_payload.rb +4 -4
  75. data/lib/klaviyo_sdk/models/track_payload_customer_properties.rb +4 -4
  76. data/lib/klaviyo_sdk/models/track_payload_properties.rb +4 -4
  77. data/lib/klaviyo_sdk/version.rb +1 -1
  78. data/lib/klaviyo_sdk.rb +7 -7
  79. data/spec/api/campaigns_api_spec.rb +3 -3
  80. data/spec/api/data_privacy_api_spec.rb +3 -3
  81. data/spec/api/lists_segments_api_spec.rb +3 -3
  82. data/spec/api/metrics_api_spec.rb +3 -3
  83. data/spec/api/profiles_api_spec.rb +3 -3
  84. data/spec/api/templates_api_spec.rb +3 -3
  85. data/spec/api/track_identify_api_spec.rb +3 -3
  86. data/spec/api_client_spec.rb +29 -29
  87. data/spec/configuration_spec.rb +3 -3
  88. data/spec/models/campaign_spec.rb +4 -4
  89. data/spec/models/check_membership_request_spec.rb +4 -4
  90. data/spec/models/delete_email_spec.rb +4 -4
  91. data/spec/models/delete_person_spec.rb +4 -4
  92. data/spec/models/delete_phone_spec.rb +4 -4
  93. data/spec/models/deprecated_get_list_response_data_spec.rb +4 -4
  94. data/spec/models/deprecated_get_list_response_spec.rb +4 -4
  95. data/spec/models/global_exclusion_response_data_spec.rb +4 -4
  96. data/spec/models/identify_payload_properties_spec.rb +4 -4
  97. data/spec/models/identify_payload_spec.rb +4 -4
  98. data/spec/models/inline_object3_spec.rb +4 -4
  99. data/spec/models/inline_object4_spec.rb +4 -4
  100. data/spec/models/inline_object5_spec.rb +4 -4
  101. data/spec/models/inline_object_spec.rb +4 -4
  102. data/spec/models/metric_export_spec.rb +4 -4
  103. data/spec/models/metric_spec.rb +4 -4
  104. data/spec/models/metric_timeline_data_spec.rb +4 -4
  105. data/spec/models/metric_timeline_spec.rb +4 -4
  106. data/spec/models/person_spec.rb +4 -4
  107. data/spec/models/privacy_email_spec.rb +4 -4
  108. data/spec/models/privacy_id_spec.rb +4 -4
  109. data/spec/models/privacy_phone_spec.rb +4 -4
  110. data/spec/models/rendered_template_spec.rb +4 -4
  111. data/spec/models/template_spec.rb +4 -4
  112. data/spec/models/track_payload_customer_properties_spec.rb +4 -4
  113. data/spec/models/track_payload_properties_spec.rb +4 -4
  114. data/spec/models/track_payload_spec.rb +4 -4
  115. metadata +2 -3
  116. data/klaviyo_sdk-1.0.0.20220329.gem +0 -0
data/docs/Campaign.md CHANGED
@@ -1,4 +1,4 @@
1
- # Client::Campaign
1
+ # Klaviyo::Campaign
2
2
 
3
3
  ## Properties
4
4
 
@@ -21,7 +21,7 @@
21
21
  ```ruby
22
22
  require 'klaviyo_sdk'
23
23
 
24
- instance = Client::Campaign.new(
24
+ instance = Klaviyo::Campaign.new(
25
25
  object: campaign,
26
26
  id: CAMPAIGN_ID,
27
27
  name: Campaign Name,
data/docs/CampaignsApi.md CHANGED
@@ -1,4 +1,4 @@
1
- # Client::CampaignsApi
1
+ # Klaviyo::CampaignsApi
2
2
 
3
3
  All URIs are relative to *https://a.klaviyo.com/api*
4
4
 
@@ -29,21 +29,21 @@ Cancels a campaign send. Marks a campaign as cancelled regardless of it's curren
29
29
  require 'time'
30
30
  require 'klaviyo_sdk'
31
31
  # setup authorization
32
- Client.configure do |config|
32
+ Klaviyo.configure do |config|
33
33
  # Configure API key authorization: ApiKeyAuth
34
34
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
35
35
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
36
36
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
37
37
  end
38
38
 
39
- api_instance = Client::CampaignsApi.new
39
+ api_instance = Klaviyo::CampaignsApi.new
40
40
  campaign_id = 'CAMPAIGN_ID' # String |
41
41
 
42
42
  begin
43
43
  # Cancel a Campaign
44
44
  result = api_instance.cancel_campaign(campaign_id)
45
45
  p result
46
- rescue Client::ApiError => e
46
+ rescue Klaviyo::ApiError => e
47
47
  puts "Error when calling CampaignsApi->cancel_campaign: #{e}"
48
48
  end
49
49
  ```
@@ -61,7 +61,7 @@ begin
61
61
  p status_code # => 2xx
62
62
  p headers # => { ... }
63
63
  p data # => <Campaign>
64
- rescue Client::ApiError => e
64
+ rescue Klaviyo::ApiError => e
65
65
  puts "Error when calling CampaignsApi->cancel_campaign_with_http_info: #{e}"
66
66
  end
67
67
  ```
@@ -100,14 +100,14 @@ Creates a copy of a campaign. The new campaign starts as a draft.
100
100
  require 'time'
101
101
  require 'klaviyo_sdk'
102
102
  # setup authorization
103
- Client.configure do |config|
103
+ Klaviyo.configure do |config|
104
104
  # Configure API key authorization: ApiKeyAuth
105
105
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
106
106
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
107
107
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
108
108
  end
109
109
 
110
- api_instance = Client::CampaignsApi.new
110
+ api_instance = Klaviyo::CampaignsApi.new
111
111
  campaign_id = 'CAMPAIGN_ID' # String |
112
112
  name = 'name_example' # String | The name for the new campaign. All other properties of the campaign will remain the same. Note, the template for the new campaign will be cloned from the existing template so changes to the existing campaign's content will not alter the content of the new campaign.
113
113
  list_id = 'list_id_example' # String | The list you will send the campaign to.
@@ -116,7 +116,7 @@ begin
116
116
  # Clone a Campaign
117
117
  result = api_instance.clone_campaign(campaign_id, name, list_id)
118
118
  p result
119
- rescue Client::ApiError => e
119
+ rescue Klaviyo::ApiError => e
120
120
  puts "Error when calling CampaignsApi->clone_campaign: #{e}"
121
121
  end
122
122
  ```
@@ -134,7 +134,7 @@ begin
134
134
  p status_code # => 2xx
135
135
  p headers # => { ... }
136
136
  p data # => <Campaign>
137
- rescue Client::ApiError => e
137
+ rescue Klaviyo::ApiError => e
138
138
  puts "Error when calling CampaignsApi->clone_campaign_with_http_info: #{e}"
139
139
  end
140
140
  ```
@@ -175,14 +175,14 @@ Creates a new campaign. The created campaign is a draft and is not automatically
175
175
  require 'time'
176
176
  require 'klaviyo_sdk'
177
177
  # setup authorization
178
- Client.configure do |config|
178
+ Klaviyo.configure do |config|
179
179
  # Configure API key authorization: ApiKeyAuth
180
180
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
181
181
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
182
182
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
183
183
  end
184
184
 
185
- api_instance = Client::CampaignsApi.new
185
+ api_instance = Klaviyo::CampaignsApi.new
186
186
  list_id = 'list_id_example' # String | The list you will send the campaign to.
187
187
  template_id = 'template_id_example' # String | The template that will define the content of the page. Note: the Email Template is copied when creating this campaign, so future changes to that Email Template will not alter the content of this campaign.
188
188
  from_email = 'from_email_example' # String | The email address your email will be sent from and will be used in the `reply-to` header.
@@ -198,7 +198,7 @@ begin
198
198
  # Create New Campaign
199
199
  result = api_instance.create_campaign(list_id, template_id, from_email, from_name, subject, opts)
200
200
  p result
201
- rescue Client::ApiError => e
201
+ rescue Klaviyo::ApiError => e
202
202
  puts "Error when calling CampaignsApi->create_campaign: #{e}"
203
203
  end
204
204
  ```
@@ -216,7 +216,7 @@ begin
216
216
  p status_code # => 2xx
217
217
  p headers # => { ... }
218
218
  p data # => <Campaign>
219
- rescue Client::ApiError => e
219
+ rescue Klaviyo::ApiError => e
220
220
  puts "Error when calling CampaignsApi->create_campaign_with_http_info: #{e}"
221
221
  end
222
222
  ```
@@ -262,21 +262,21 @@ Returns summary information for the campaign specified.
262
262
  require 'time'
263
263
  require 'klaviyo_sdk'
264
264
  # setup authorization
265
- Client.configure do |config|
265
+ Klaviyo.configure do |config|
266
266
  # Configure API key authorization: ApiKeyAuth
267
267
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
268
268
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
269
269
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
270
270
  end
271
271
 
272
- api_instance = Client::CampaignsApi.new
272
+ api_instance = Klaviyo::CampaignsApi.new
273
273
  campaign_id = 'CAMPAIGN_ID' # String |
274
274
 
275
275
  begin
276
276
  # Get Campaign Info
277
277
  result = api_instance.get_campaign_info(campaign_id)
278
278
  p result
279
- rescue Client::ApiError => e
279
+ rescue Klaviyo::ApiError => e
280
280
  puts "Error when calling CampaignsApi->get_campaign_info: #{e}"
281
281
  end
282
282
  ```
@@ -294,7 +294,7 @@ begin
294
294
  p status_code # => 2xx
295
295
  p headers # => { ... }
296
296
  p data # => <Campaign>
297
- rescue Client::ApiError => e
297
+ rescue Klaviyo::ApiError => e
298
298
  puts "Error when calling CampaignsApi->get_campaign_info_with_http_info: #{e}"
299
299
  end
300
300
  ```
@@ -333,14 +333,14 @@ Returns summary information about email recipients for the campaign specified th
333
333
  require 'time'
334
334
  require 'klaviyo_sdk'
335
335
  # setup authorization
336
- Client.configure do |config|
336
+ Klaviyo.configure do |config|
337
337
  # Configure API key authorization: ApiKeyAuth
338
338
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
339
339
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
340
340
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
341
341
  end
342
342
 
343
- api_instance = Client::CampaignsApi.new
343
+ api_instance = Klaviyo::CampaignsApi.new
344
344
  campaign_id = 'CAMPAIGN_ID' # String |
345
345
  opts = {
346
346
  count: 25000, # Integer | For pagination, the number of results to return. Max = 25,000
@@ -352,7 +352,7 @@ begin
352
352
  # Get Campaign Recipients
353
353
  result = api_instance.get_campaign_recipients(campaign_id, opts)
354
354
  p result
355
- rescue Client::ApiError => e
355
+ rescue Klaviyo::ApiError => e
356
356
  puts "Error when calling CampaignsApi->get_campaign_recipients: #{e}"
357
357
  end
358
358
  ```
@@ -370,7 +370,7 @@ begin
370
370
  p status_code # => 2xx
371
371
  p headers # => { ... }
372
372
  p data # => Hash&lt;String, Object&gt;
373
- rescue Client::ApiError => e
373
+ rescue Klaviyo::ApiError => e
374
374
  puts "Error when calling CampaignsApi->get_campaign_recipients_with_http_info: #{e}"
375
375
  end
376
376
  ```
@@ -412,14 +412,14 @@ Returns a list of all the campaigns you've created. The campaigns are returned i
412
412
  require 'time'
413
413
  require 'klaviyo_sdk'
414
414
  # setup authorization
415
- Client.configure do |config|
415
+ Klaviyo.configure do |config|
416
416
  # Configure API key authorization: ApiKeyAuth
417
417
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
418
418
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
419
419
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
420
420
  end
421
421
 
422
- api_instance = Client::CampaignsApi.new
422
+ api_instance = Klaviyo::CampaignsApi.new
423
423
  opts = {
424
424
  page: 0, # Integer | For pagination, which page of results to return. Default = 0
425
425
  count: 100 # Integer | For pagination, the number of results to return. Max = 100
@@ -429,7 +429,7 @@ begin
429
429
  # Get Campaigns
430
430
  result = api_instance.get_campaigns(opts)
431
431
  p result
432
- rescue Client::ApiError => e
432
+ rescue Klaviyo::ApiError => e
433
433
  puts "Error when calling CampaignsApi->get_campaigns: #{e}"
434
434
  end
435
435
  ```
@@ -447,7 +447,7 @@ begin
447
447
  p status_code # => 2xx
448
448
  p headers # => { ... }
449
449
  p data # => Hash&lt;String, Object&gt;
450
- rescue Client::ApiError => e
450
+ rescue Klaviyo::ApiError => e
451
451
  puts "Error when calling CampaignsApi->get_campaigns_with_http_info: #{e}"
452
452
  end
453
453
  ```
@@ -487,14 +487,14 @@ Schedules a campaign for a time in the future
487
487
  require 'time'
488
488
  require 'klaviyo_sdk'
489
489
  # setup authorization
490
- Client.configure do |config|
490
+ Klaviyo.configure do |config|
491
491
  # Configure API key authorization: ApiKeyAuth
492
492
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
493
493
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
494
494
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
495
495
  end
496
496
 
497
- api_instance = Client::CampaignsApi.new
497
+ api_instance = Klaviyo::CampaignsApi.new
498
498
  campaign_id = 'CAMPAIGN_ID' # String |
499
499
  send_time = 'send_time_example' # String | A timestamp of the format `%Y-%m-%d %H:%M:%S` in the UTC timezone. Ex: `2022-01-13 00:00:00`
500
500
 
@@ -502,7 +502,7 @@ begin
502
502
  # Schedule a Campaign
503
503
  result = api_instance.schedule_campaign(campaign_id, send_time)
504
504
  p result
505
- rescue Client::ApiError => e
505
+ rescue Klaviyo::ApiError => e
506
506
  puts "Error when calling CampaignsApi->schedule_campaign: #{e}"
507
507
  end
508
508
  ```
@@ -520,7 +520,7 @@ begin
520
520
  p status_code # => 2xx
521
521
  p headers # => { ... }
522
522
  p data # => Hash&lt;String, Object&gt;
523
- rescue Client::ApiError => e
523
+ rescue Klaviyo::ApiError => e
524
524
  puts "Error when calling CampaignsApi->schedule_campaign_with_http_info: #{e}"
525
525
  end
526
526
  ```
@@ -560,21 +560,21 @@ Queues a campaign for immediate delivery
560
560
  require 'time'
561
561
  require 'klaviyo_sdk'
562
562
  # setup authorization
563
- Client.configure do |config|
563
+ Klaviyo.configure do |config|
564
564
  # Configure API key authorization: ApiKeyAuth
565
565
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
566
566
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
567
567
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
568
568
  end
569
569
 
570
- api_instance = Client::CampaignsApi.new
570
+ api_instance = Klaviyo::CampaignsApi.new
571
571
  campaign_id = 'CAMPAIGN_ID' # String |
572
572
 
573
573
  begin
574
574
  # Send a Campaign Immediately
575
575
  result = api_instance.send_campaign(campaign_id)
576
576
  p result
577
- rescue Client::ApiError => e
577
+ rescue Klaviyo::ApiError => e
578
578
  puts "Error when calling CampaignsApi->send_campaign: #{e}"
579
579
  end
580
580
  ```
@@ -592,7 +592,7 @@ begin
592
592
  p status_code # => 2xx
593
593
  p headers # => { ... }
594
594
  p data # => Hash&lt;String, Object&gt;
595
- rescue Client::ApiError => e
595
+ rescue Klaviyo::ApiError => e
596
596
  puts "Error when calling CampaignsApi->send_campaign_with_http_info: #{e}"
597
597
  end
598
598
  ```
@@ -631,14 +631,14 @@ Updates details of a campaign. You can update a campaign's name, subject, from e
631
631
  require 'time'
632
632
  require 'klaviyo_sdk'
633
633
  # setup authorization
634
- Client.configure do |config|
634
+ Klaviyo.configure do |config|
635
635
  # Configure API key authorization: ApiKeyAuth
636
636
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
637
637
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
638
638
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
639
639
  end
640
640
 
641
- api_instance = Client::CampaignsApi.new
641
+ api_instance = Klaviyo::CampaignsApi.new
642
642
  campaign_id = 'CAMPAIGN_ID' # String |
643
643
  opts = {
644
644
  list_id: 'list_id_example', # String | The list you will send the campaign to.
@@ -655,7 +655,7 @@ begin
655
655
  # Update Campaign
656
656
  result = api_instance.update_campaign(campaign_id, opts)
657
657
  p result
658
- rescue Client::ApiError => e
658
+ rescue Klaviyo::ApiError => e
659
659
  puts "Error when calling CampaignsApi->update_campaign: #{e}"
660
660
  end
661
661
  ```
@@ -673,7 +673,7 @@ begin
673
673
  p status_code # => 2xx
674
674
  p headers # => { ... }
675
675
  p data # => <Campaign>
676
- rescue Client::ApiError => e
676
+ rescue Klaviyo::ApiError => e
677
677
  puts "Error when calling CampaignsApi->update_campaign_with_http_info: #{e}"
678
678
  end
679
679
  ```
@@ -1,4 +1,4 @@
1
- # Client::CheckMembershipRequest
1
+ # Klaviyo::CheckMembershipRequest
2
2
 
3
3
  ## Properties
4
4
 
@@ -13,7 +13,7 @@
13
13
  ```ruby
14
14
  require 'klaviyo_sdk'
15
15
 
16
- instance = Client::CheckMembershipRequest.new(
16
+ instance = Klaviyo::CheckMembershipRequest.new(
17
17
  emails: [&quot;george.washington@klaviyo.com&quot;,&quot;abraham.lincoln@klaviyo.com&quot;],
18
18
  phone_numbers: [&quot;+13239169023&quot;,&quot;+12028837032&quot;],
19
19
  push_tokens: [&quot;PUSH_TOKEN_1&quot;,&quot;PUSH_TOKEN_2&quot;]
@@ -1,4 +1,4 @@
1
- # Client::DataPrivacyApi
1
+ # Klaviyo::DataPrivacyApi
2
2
 
3
3
  All URIs are relative to *https://a.klaviyo.com/api*
4
4
 
@@ -21,14 +21,14 @@ Request a data privacy-compliant deletion for the person record corresponding to
21
21
  require 'time'
22
22
  require 'klaviyo_sdk'
23
23
  # setup authorization
24
- Client.configure do |config|
24
+ Klaviyo.configure do |config|
25
25
  # Configure API key authorization: ApiKeyAuth
26
26
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
27
27
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
28
28
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
29
29
  end
30
30
 
31
- api_instance = Client::DataPrivacyApi.new
31
+ api_instance = Klaviyo::DataPrivacyApi.new
32
32
  opts = {
33
33
  body: '{"email":"abraham.lincoln@klaviyo.com"}' # String |
34
34
  }
@@ -37,7 +37,7 @@ begin
37
37
  # Request a Deletion
38
38
  result = api_instance.request_deletion(opts)
39
39
  p result
40
- rescue Client::ApiError => e
40
+ rescue Klaviyo::ApiError => e
41
41
  puts "Error when calling DataPrivacyApi->request_deletion: #{e}"
42
42
  end
43
43
  ```
@@ -55,7 +55,7 @@ begin
55
55
  p status_code # => 2xx
56
56
  p headers # => { ... }
57
57
  p data # => String
58
- rescue Client::ApiError => e
58
+ rescue Klaviyo::ApiError => e
59
59
  puts "Error when calling DataPrivacyApi->request_deletion_with_http_info: #{e}"
60
60
  end
61
61
  ```
data/docs/DeleteEmail.md CHANGED
@@ -1,4 +1,4 @@
1
- # Client::DeleteEmail
1
+ # Klaviyo::DeleteEmail
2
2
 
3
3
  ## Properties
4
4
 
@@ -11,7 +11,7 @@
11
11
  ```ruby
12
12
  require 'klaviyo_sdk'
13
13
 
14
- instance = Client::DeleteEmail.new(
14
+ instance = Klaviyo::DeleteEmail.new(
15
15
  email: example@klaviyo.com
16
16
  )
17
17
  ```
data/docs/DeletePerson.md CHANGED
@@ -1,4 +1,4 @@
1
- # Client::DeletePerson
1
+ # Klaviyo::DeletePerson
2
2
 
3
3
  ## Properties
4
4
 
@@ -11,7 +11,7 @@
11
11
  ```ruby
12
12
  require 'klaviyo_sdk'
13
13
 
14
- instance = Client::DeletePerson.new(
14
+ instance = Klaviyo::DeletePerson.new(
15
15
  person_id: PERSON_ID
16
16
  )
17
17
  ```
data/docs/DeletePhone.md CHANGED
@@ -1,4 +1,4 @@
1
- # Client::DeletePhone
1
+ # Klaviyo::DeletePhone
2
2
 
3
3
  ## Properties
4
4
 
@@ -11,7 +11,7 @@
11
11
  ```ruby
12
12
  require 'klaviyo_sdk'
13
13
 
14
- instance = Client::DeletePhone.new(
14
+ instance = Klaviyo::DeletePhone.new(
15
15
  phone_number: +13239169023
16
16
  )
17
17
  ```
@@ -1,4 +1,4 @@
1
- # Client::DeprecatedGetListResponse
1
+ # Klaviyo::DeprecatedGetListResponse
2
2
 
3
3
  ## Properties
4
4
 
@@ -17,7 +17,7 @@
17
17
  ```ruby
18
18
  require 'klaviyo_sdk'
19
19
 
20
- instance = Client::DeprecatedGetListResponse.new(
20
+ instance = Klaviyo::DeprecatedGetListResponse.new(
21
21
  object: null,
22
22
  start: null,
23
23
  _end: null,
@@ -1,4 +1,4 @@
1
- # Client::DeprecatedGetListResponseData
1
+ # Klaviyo::DeprecatedGetListResponseData
2
2
 
3
3
  ## Properties
4
4
 
@@ -16,7 +16,7 @@
16
16
  ```ruby
17
17
  require 'klaviyo_sdk'
18
18
 
19
- instance = Client::DeprecatedGetListResponseData.new(
19
+ instance = Klaviyo::DeprecatedGetListResponseData.new(
20
20
  object: null,
21
21
  id: null,
22
22
  type: null,
@@ -1,4 +1,4 @@
1
- # Client::GlobalExclusionResponseData
1
+ # Klaviyo::GlobalExclusionResponseData
2
2
 
3
3
  ## Properties
4
4
 
@@ -17,7 +17,7 @@
17
17
  ```ruby
18
18
  require 'klaviyo_sdk'
19
19
 
20
- instance = Client::GlobalExclusionResponseData.new(
20
+ instance = Klaviyo::GlobalExclusionResponseData.new(
21
21
  object: $list,
22
22
  data: null,
23
23
  page: 0,
@@ -1,4 +1,4 @@
1
- # Client::IdentifyPayload
1
+ # Klaviyo::IdentifyPayload
2
2
 
3
3
  ## Properties
4
4
 
@@ -12,7 +12,7 @@
12
12
  ```ruby
13
13
  require 'klaviyo_sdk'
14
14
 
15
- instance = Client::IdentifyPayload.new(
15
+ instance = Klaviyo::IdentifyPayload.new(
16
16
  token: null,
17
17
  properties: null
18
18
  )
@@ -1,4 +1,4 @@
1
- # Client::IdentifyPayloadProperties
1
+ # Klaviyo::IdentifyPayloadProperties
2
2
 
3
3
  ## Properties
4
4
 
@@ -23,7 +23,7 @@
23
23
  ```ruby
24
24
  require 'klaviyo_sdk'
25
25
 
26
- instance = Client::IdentifyPayloadProperties.new(
26
+ instance = Klaviyo::IdentifyPayloadProperties.new(
27
27
  _email: null,
28
28
  _first_name: null,
29
29
  _last_name: null,
data/docs/InlineObject.md CHANGED
@@ -1,4 +1,4 @@
1
- # Client::InlineObject
1
+ # Klaviyo::InlineObject
2
2
 
3
3
  ## Properties
4
4
 
@@ -11,7 +11,7 @@
11
11
  ```ruby
12
12
  require 'klaviyo_sdk'
13
13
 
14
- instance = Client::InlineObject.new(
14
+ instance = Klaviyo::InlineObject.new(
15
15
  exchange_id: EXCHANGE_ID
16
16
  )
17
17
  ```
@@ -1,4 +1,4 @@
1
- # Client::InlineObject3
1
+ # Klaviyo::InlineObject3
2
2
 
3
3
  ## Properties
4
4
 
@@ -11,7 +11,7 @@
11
11
  ```ruby
12
12
  require 'klaviyo_sdk'
13
13
 
14
- instance = Client::InlineObject3.new(
14
+ instance = Klaviyo::InlineObject3.new(
15
15
  profiles: [{&quot;email&quot;:&quot;george.washington@klaviyo.com&quot;},{&quot;phone_number&quot;:&quot;+13239169023&quot;,&quot;sms_consent&quot;:true}]
16
16
  )
17
17
  ```
@@ -1,4 +1,4 @@
1
- # Client::InlineObject4
1
+ # Klaviyo::InlineObject4
2
2
 
3
3
  ## Properties
4
4
 
@@ -11,7 +11,7 @@
11
11
  ```ruby
12
12
  require 'klaviyo_sdk'
13
13
 
14
- instance = Client::InlineObject4.new(
14
+ instance = Klaviyo::InlineObject4.new(
15
15
  profiles: [{&quot;email&quot;:&quot;george.washington@klaviyo.com&quot;},{&quot;phone_number&quot;:&quot;+13239169023&quot;}]
16
16
  )
17
17
  ```
@@ -1,4 +1,4 @@
1
- # Client::InlineObject5
1
+ # Klaviyo::InlineObject5
2
2
 
3
3
  ## Properties
4
4
 
@@ -13,7 +13,7 @@
13
13
  ```ruby
14
14
  require 'klaviyo_sdk'
15
15
 
16
- instance = Client::InlineObject5.new(
16
+ instance = Klaviyo::InlineObject5.new(
17
17
  emails: [&quot;george.washington@klaviyo.com&quot;,&quot;abraham.lincoln@klaviyo.com&quot;],
18
18
  phone_numbers: [&quot;+13239169023&quot;],
19
19
  push_tokens: [&quot;PUSH_TOKEN&quot;]