late-sdk 0.0.67 → 0.0.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +63 -0
  3. data/docs/AddBroadcastRecipientsRequest.md +20 -0
  4. data/docs/BroadcastsApi.md +699 -0
  5. data/docs/BulkCreateContactsRequest.md +24 -0
  6. data/docs/BulkCreateContactsRequestContactsInner.md +28 -0
  7. data/docs/CommentAutomationsApi.md +428 -0
  8. data/docs/ContactsApi.md +500 -0
  9. data/docs/CreateBroadcastRequest.md +32 -0
  10. data/docs/CreateBroadcastRequestMessage.md +20 -0
  11. data/docs/CreateBroadcastRequestMessageAttachmentsInner.md +22 -0
  12. data/docs/CreateBroadcastRequestSegmentFilters.md +20 -0
  13. data/docs/CreateBroadcastRequestTemplate.md +22 -0
  14. data/docs/CreateCommentAutomationRequest.md +36 -0
  15. data/docs/CreateContactRequest.md +38 -0
  16. data/docs/CreateCustomFieldRequest.md +26 -0
  17. data/docs/CreateSequenceRequest.md +32 -0
  18. data/docs/CreateSequenceRequestStepsInner.md +24 -0
  19. data/docs/CreateSequenceRequestStepsInnerMessage.md +18 -0
  20. data/docs/CustomFieldsApi.md +419 -0
  21. data/docs/EnrollContactsRequest.md +20 -0
  22. data/docs/ListCommentAutomations200Response.md +20 -0
  23. data/docs/ListCommentAutomations200ResponseAutomationsInner.md +42 -0
  24. data/docs/ListCommentAutomations200ResponseAutomationsInnerStats.md +24 -0
  25. data/docs/ScheduleBroadcastRequest.md +18 -0
  26. data/docs/SequencesApi.md +697 -0
  27. data/docs/SetContactFieldValueRequest.md +18 -0
  28. data/docs/TwitterPlatformData.md +3 -1
  29. data/docs/TwitterPlatformDataPoll.md +20 -0
  30. data/docs/UpdateCommentAutomationRequest.md +28 -0
  31. data/docs/UpdateContactRequest.md +32 -0
  32. data/docs/UpdateCustomFieldRequest.md +20 -0
  33. data/docs/WhatsAppApi.md +25 -25
  34. data/lib/late-sdk/api/broadcasts_api.rb +689 -0
  35. data/lib/late-sdk/api/comment_automations_api.rb +420 -0
  36. data/lib/late-sdk/api/contacts_api.rb +503 -0
  37. data/lib/late-sdk/api/custom_fields_api.rb +424 -0
  38. data/lib/late-sdk/api/sequences_api.rb +681 -0
  39. data/lib/late-sdk/api/whats_app_api.rb +50 -50
  40. data/lib/late-sdk/models/add_broadcast_recipients_request.rb +160 -0
  41. data/lib/late-sdk/models/bulk_create_contacts_request.rb +253 -0
  42. data/lib/late-sdk/models/bulk_create_contacts_request_contacts_inner.rb +228 -0
  43. data/lib/late-sdk/models/create_broadcast_request.rb +302 -0
  44. data/lib/late-sdk/models/create_broadcast_request_message.rb +158 -0
  45. data/lib/late-sdk/models/create_broadcast_request_message_attachments_inner.rb +165 -0
  46. data/lib/late-sdk/models/create_broadcast_request_segment_filters.rb +158 -0
  47. data/lib/late-sdk/models/create_broadcast_request_template.rb +168 -0
  48. data/lib/late-sdk/models/create_comment_automation_request.rb +359 -0
  49. data/lib/late-sdk/models/create_contact_request.rb +276 -0
  50. data/lib/late-sdk/models/create_custom_field_request.rb +262 -0
  51. data/lib/late-sdk/models/create_sequence_request.rb +308 -0
  52. data/lib/late-sdk/models/create_sequence_request_steps_inner.rb +208 -0
  53. data/lib/late-sdk/models/create_sequence_request_steps_inner_message.rb +147 -0
  54. data/lib/late-sdk/models/enroll_contacts_request.rb +178 -0
  55. data/lib/late-sdk/models/list_comment_automations200_response.rb +158 -0
  56. data/lib/late-sdk/models/list_comment_automations200_response_automations_inner.rb +303 -0
  57. data/lib/late-sdk/models/list_comment_automations200_response_automations_inner_stats.rb +174 -0
  58. data/lib/late-sdk/models/schedule_broadcast_request.rb +164 -0
  59. data/lib/late-sdk/models/set_contact_field_value_request.rb +150 -0
  60. data/lib/late-sdk/models/twitter_platform_data.rb +13 -4
  61. data/lib/late-sdk/models/twitter_platform_data_poll.rb +231 -0
  62. data/lib/late-sdk/models/update_comment_automation_request.rb +228 -0
  63. data/lib/late-sdk/models/update_contact_request.rb +212 -0
  64. data/lib/late-sdk/models/update_custom_field_request.rb +158 -0
  65. data/lib/late-sdk/version.rb +1 -1
  66. data/lib/late-sdk.rb +29 -0
  67. data/openapi.yaml +830 -13
  68. data/spec/api/broadcasts_api_spec.rb +154 -0
  69. data/spec/api/comment_automations_api_spec.rb +108 -0
  70. data/spec/api/contacts_api_spec.rb +122 -0
  71. data/spec/api/custom_fields_api_spec.rb +105 -0
  72. data/spec/api/sequences_api_spec.rb +153 -0
  73. data/spec/api/whats_app_api_spec.rb +25 -25
  74. data/spec/models/add_broadcast_recipients_request_spec.rb +42 -0
  75. data/spec/models/bulk_create_contacts_request_contacts_inner_spec.rb +66 -0
  76. data/spec/models/bulk_create_contacts_request_spec.rb +54 -0
  77. data/spec/models/create_broadcast_request_message_attachments_inner_spec.rb +48 -0
  78. data/spec/models/create_broadcast_request_message_spec.rb +42 -0
  79. data/spec/models/create_broadcast_request_segment_filters_spec.rb +42 -0
  80. data/spec/models/create_broadcast_request_spec.rb +82 -0
  81. data/spec/models/create_broadcast_request_template_spec.rb +48 -0
  82. data/spec/models/create_comment_automation_request_spec.rb +94 -0
  83. data/spec/models/create_contact_request_spec.rb +96 -0
  84. data/spec/models/create_custom_field_request_spec.rb +64 -0
  85. data/spec/models/create_sequence_request_spec.rb +82 -0
  86. data/spec/models/create_sequence_request_steps_inner_message_spec.rb +36 -0
  87. data/spec/models/create_sequence_request_steps_inner_spec.rb +54 -0
  88. data/spec/models/enroll_contacts_request_spec.rb +42 -0
  89. data/spec/models/list_comment_automations200_response_automations_inner_spec.rb +116 -0
  90. data/spec/models/list_comment_automations200_response_automations_inner_stats_spec.rb +54 -0
  91. data/spec/models/list_comment_automations200_response_spec.rb +42 -0
  92. data/spec/models/schedule_broadcast_request_spec.rb +36 -0
  93. data/spec/models/set_contact_field_value_request_spec.rb +36 -0
  94. data/spec/models/twitter_platform_data_poll_spec.rb +42 -0
  95. data/spec/models/twitter_platform_data_spec.rb +6 -0
  96. data/spec/models/update_comment_automation_request_spec.rb +70 -0
  97. data/spec/models/update_contact_request_spec.rb +78 -0
  98. data/spec/models/update_custom_field_request_spec.rb +42 -0
  99. data/zernio-sdk-0.0.69.gem +0 -0
  100. metadata +118 -2
  101. data/zernio-sdk-0.0.67.gem +0 -0
@@ -0,0 +1,699 @@
1
+ # Late::BroadcastsApi
2
+
3
+ All URIs are relative to *https://zernio.com/api*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**add_broadcast_recipients**](BroadcastsApi.md#add_broadcast_recipients) | **POST** /v1/broadcasts/{broadcastId}/recipients | Add recipients to a broadcast |
8
+ | [**cancel_broadcast**](BroadcastsApi.md#cancel_broadcast) | **POST** /v1/broadcasts/{broadcastId}/cancel | Cancel a broadcast |
9
+ | [**create_broadcast**](BroadcastsApi.md#create_broadcast) | **POST** /v1/broadcasts | Create a broadcast draft |
10
+ | [**delete_broadcast**](BroadcastsApi.md#delete_broadcast) | **DELETE** /v1/broadcasts/{broadcastId} | Delete a broadcast (draft only) |
11
+ | [**get_broadcast**](BroadcastsApi.md#get_broadcast) | **GET** /v1/broadcasts/{broadcastId} | Get broadcast details |
12
+ | [**list_broadcast_recipients**](BroadcastsApi.md#list_broadcast_recipients) | **GET** /v1/broadcasts/{broadcastId}/recipients | List broadcast recipients |
13
+ | [**list_broadcasts**](BroadcastsApi.md#list_broadcasts) | **GET** /v1/broadcasts | List broadcasts |
14
+ | [**schedule_broadcast**](BroadcastsApi.md#schedule_broadcast) | **POST** /v1/broadcasts/{broadcastId}/schedule | Schedule broadcast for later |
15
+ | [**send_broadcast**](BroadcastsApi.md#send_broadcast) | **POST** /v1/broadcasts/{broadcastId}/send | Trigger immediate send |
16
+ | [**update_broadcast**](BroadcastsApi.md#update_broadcast) | **PATCH** /v1/broadcasts/{broadcastId} | Update a broadcast |
17
+
18
+
19
+ ## add_broadcast_recipients
20
+
21
+ > add_broadcast_recipients(broadcast_id, add_broadcast_recipients_request)
22
+
23
+ Add recipients to a broadcast
24
+
25
+ ### Examples
26
+
27
+ ```ruby
28
+ require 'time'
29
+ require 'late-sdk'
30
+ # setup authorization
31
+ Late.configure do |config|
32
+ # Configure Bearer authorization (JWT): bearerAuth
33
+ config.access_token = 'YOUR_BEARER_TOKEN'
34
+ end
35
+
36
+ api_instance = Late::BroadcastsApi.new
37
+ broadcast_id = 'broadcast_id_example' # String |
38
+ add_broadcast_recipients_request = Late::AddBroadcastRecipientsRequest.new # AddBroadcastRecipientsRequest |
39
+
40
+ begin
41
+ # Add recipients to a broadcast
42
+ api_instance.add_broadcast_recipients(broadcast_id, add_broadcast_recipients_request)
43
+ rescue Late::ApiError => e
44
+ puts "Error when calling BroadcastsApi->add_broadcast_recipients: #{e}"
45
+ end
46
+ ```
47
+
48
+ #### Using the add_broadcast_recipients_with_http_info variant
49
+
50
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
51
+
52
+ > <Array(nil, Integer, Hash)> add_broadcast_recipients_with_http_info(broadcast_id, add_broadcast_recipients_request)
53
+
54
+ ```ruby
55
+ begin
56
+ # Add recipients to a broadcast
57
+ data, status_code, headers = api_instance.add_broadcast_recipients_with_http_info(broadcast_id, add_broadcast_recipients_request)
58
+ p status_code # => 2xx
59
+ p headers # => { ... }
60
+ p data # => nil
61
+ rescue Late::ApiError => e
62
+ puts "Error when calling BroadcastsApi->add_broadcast_recipients_with_http_info: #{e}"
63
+ end
64
+ ```
65
+
66
+ ### Parameters
67
+
68
+ | Name | Type | Description | Notes |
69
+ | ---- | ---- | ----------- | ----- |
70
+ | **broadcast_id** | **String** | | |
71
+ | **add_broadcast_recipients_request** | [**AddBroadcastRecipientsRequest**](AddBroadcastRecipientsRequest.md) | | |
72
+
73
+ ### Return type
74
+
75
+ nil (empty response body)
76
+
77
+ ### Authorization
78
+
79
+ [bearerAuth](../README.md#bearerAuth)
80
+
81
+ ### HTTP request headers
82
+
83
+ - **Content-Type**: application/json
84
+ - **Accept**: application/json
85
+
86
+
87
+ ## cancel_broadcast
88
+
89
+ > cancel_broadcast(broadcast_id)
90
+
91
+ Cancel a broadcast
92
+
93
+ ### Examples
94
+
95
+ ```ruby
96
+ require 'time'
97
+ require 'late-sdk'
98
+ # setup authorization
99
+ Late.configure do |config|
100
+ # Configure Bearer authorization (JWT): bearerAuth
101
+ config.access_token = 'YOUR_BEARER_TOKEN'
102
+ end
103
+
104
+ api_instance = Late::BroadcastsApi.new
105
+ broadcast_id = 'broadcast_id_example' # String |
106
+
107
+ begin
108
+ # Cancel a broadcast
109
+ api_instance.cancel_broadcast(broadcast_id)
110
+ rescue Late::ApiError => e
111
+ puts "Error when calling BroadcastsApi->cancel_broadcast: #{e}"
112
+ end
113
+ ```
114
+
115
+ #### Using the cancel_broadcast_with_http_info variant
116
+
117
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
118
+
119
+ > <Array(nil, Integer, Hash)> cancel_broadcast_with_http_info(broadcast_id)
120
+
121
+ ```ruby
122
+ begin
123
+ # Cancel a broadcast
124
+ data, status_code, headers = api_instance.cancel_broadcast_with_http_info(broadcast_id)
125
+ p status_code # => 2xx
126
+ p headers # => { ... }
127
+ p data # => nil
128
+ rescue Late::ApiError => e
129
+ puts "Error when calling BroadcastsApi->cancel_broadcast_with_http_info: #{e}"
130
+ end
131
+ ```
132
+
133
+ ### Parameters
134
+
135
+ | Name | Type | Description | Notes |
136
+ | ---- | ---- | ----------- | ----- |
137
+ | **broadcast_id** | **String** | | |
138
+
139
+ ### Return type
140
+
141
+ nil (empty response body)
142
+
143
+ ### Authorization
144
+
145
+ [bearerAuth](../README.md#bearerAuth)
146
+
147
+ ### HTTP request headers
148
+
149
+ - **Content-Type**: Not defined
150
+ - **Accept**: application/json
151
+
152
+
153
+ ## create_broadcast
154
+
155
+ > create_broadcast(create_broadcast_request)
156
+
157
+ Create a broadcast draft
158
+
159
+ ### Examples
160
+
161
+ ```ruby
162
+ require 'time'
163
+ require 'late-sdk'
164
+ # setup authorization
165
+ Late.configure do |config|
166
+ # Configure Bearer authorization (JWT): bearerAuth
167
+ config.access_token = 'YOUR_BEARER_TOKEN'
168
+ end
169
+
170
+ api_instance = Late::BroadcastsApi.new
171
+ create_broadcast_request = Late::CreateBroadcastRequest.new({profile_id: 'profile_id_example', account_id: 'account_id_example', platform: 'instagram', name: 'name_example'}) # CreateBroadcastRequest |
172
+
173
+ begin
174
+ # Create a broadcast draft
175
+ api_instance.create_broadcast(create_broadcast_request)
176
+ rescue Late::ApiError => e
177
+ puts "Error when calling BroadcastsApi->create_broadcast: #{e}"
178
+ end
179
+ ```
180
+
181
+ #### Using the create_broadcast_with_http_info variant
182
+
183
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
184
+
185
+ > <Array(nil, Integer, Hash)> create_broadcast_with_http_info(create_broadcast_request)
186
+
187
+ ```ruby
188
+ begin
189
+ # Create a broadcast draft
190
+ data, status_code, headers = api_instance.create_broadcast_with_http_info(create_broadcast_request)
191
+ p status_code # => 2xx
192
+ p headers # => { ... }
193
+ p data # => nil
194
+ rescue Late::ApiError => e
195
+ puts "Error when calling BroadcastsApi->create_broadcast_with_http_info: #{e}"
196
+ end
197
+ ```
198
+
199
+ ### Parameters
200
+
201
+ | Name | Type | Description | Notes |
202
+ | ---- | ---- | ----------- | ----- |
203
+ | **create_broadcast_request** | [**CreateBroadcastRequest**](CreateBroadcastRequest.md) | | |
204
+
205
+ ### Return type
206
+
207
+ nil (empty response body)
208
+
209
+ ### Authorization
210
+
211
+ [bearerAuth](../README.md#bearerAuth)
212
+
213
+ ### HTTP request headers
214
+
215
+ - **Content-Type**: application/json
216
+ - **Accept**: application/json
217
+
218
+
219
+ ## delete_broadcast
220
+
221
+ > delete_broadcast(broadcast_id)
222
+
223
+ Delete a broadcast (draft only)
224
+
225
+ ### Examples
226
+
227
+ ```ruby
228
+ require 'time'
229
+ require 'late-sdk'
230
+ # setup authorization
231
+ Late.configure do |config|
232
+ # Configure Bearer authorization (JWT): bearerAuth
233
+ config.access_token = 'YOUR_BEARER_TOKEN'
234
+ end
235
+
236
+ api_instance = Late::BroadcastsApi.new
237
+ broadcast_id = 'broadcast_id_example' # String |
238
+
239
+ begin
240
+ # Delete a broadcast (draft only)
241
+ api_instance.delete_broadcast(broadcast_id)
242
+ rescue Late::ApiError => e
243
+ puts "Error when calling BroadcastsApi->delete_broadcast: #{e}"
244
+ end
245
+ ```
246
+
247
+ #### Using the delete_broadcast_with_http_info variant
248
+
249
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
250
+
251
+ > <Array(nil, Integer, Hash)> delete_broadcast_with_http_info(broadcast_id)
252
+
253
+ ```ruby
254
+ begin
255
+ # Delete a broadcast (draft only)
256
+ data, status_code, headers = api_instance.delete_broadcast_with_http_info(broadcast_id)
257
+ p status_code # => 2xx
258
+ p headers # => { ... }
259
+ p data # => nil
260
+ rescue Late::ApiError => e
261
+ puts "Error when calling BroadcastsApi->delete_broadcast_with_http_info: #{e}"
262
+ end
263
+ ```
264
+
265
+ ### Parameters
266
+
267
+ | Name | Type | Description | Notes |
268
+ | ---- | ---- | ----------- | ----- |
269
+ | **broadcast_id** | **String** | | |
270
+
271
+ ### Return type
272
+
273
+ nil (empty response body)
274
+
275
+ ### Authorization
276
+
277
+ [bearerAuth](../README.md#bearerAuth)
278
+
279
+ ### HTTP request headers
280
+
281
+ - **Content-Type**: Not defined
282
+ - **Accept**: application/json
283
+
284
+
285
+ ## get_broadcast
286
+
287
+ > get_broadcast(broadcast_id)
288
+
289
+ Get broadcast details
290
+
291
+ ### Examples
292
+
293
+ ```ruby
294
+ require 'time'
295
+ require 'late-sdk'
296
+ # setup authorization
297
+ Late.configure do |config|
298
+ # Configure Bearer authorization (JWT): bearerAuth
299
+ config.access_token = 'YOUR_BEARER_TOKEN'
300
+ end
301
+
302
+ api_instance = Late::BroadcastsApi.new
303
+ broadcast_id = 'broadcast_id_example' # String |
304
+
305
+ begin
306
+ # Get broadcast details
307
+ api_instance.get_broadcast(broadcast_id)
308
+ rescue Late::ApiError => e
309
+ puts "Error when calling BroadcastsApi->get_broadcast: #{e}"
310
+ end
311
+ ```
312
+
313
+ #### Using the get_broadcast_with_http_info variant
314
+
315
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
316
+
317
+ > <Array(nil, Integer, Hash)> get_broadcast_with_http_info(broadcast_id)
318
+
319
+ ```ruby
320
+ begin
321
+ # Get broadcast details
322
+ data, status_code, headers = api_instance.get_broadcast_with_http_info(broadcast_id)
323
+ p status_code # => 2xx
324
+ p headers # => { ... }
325
+ p data # => nil
326
+ rescue Late::ApiError => e
327
+ puts "Error when calling BroadcastsApi->get_broadcast_with_http_info: #{e}"
328
+ end
329
+ ```
330
+
331
+ ### Parameters
332
+
333
+ | Name | Type | Description | Notes |
334
+ | ---- | ---- | ----------- | ----- |
335
+ | **broadcast_id** | **String** | | |
336
+
337
+ ### Return type
338
+
339
+ nil (empty response body)
340
+
341
+ ### Authorization
342
+
343
+ [bearerAuth](../README.md#bearerAuth)
344
+
345
+ ### HTTP request headers
346
+
347
+ - **Content-Type**: Not defined
348
+ - **Accept**: application/json
349
+
350
+
351
+ ## list_broadcast_recipients
352
+
353
+ > list_broadcast_recipients(broadcast_id, opts)
354
+
355
+ List broadcast recipients
356
+
357
+ ### Examples
358
+
359
+ ```ruby
360
+ require 'time'
361
+ require 'late-sdk'
362
+ # setup authorization
363
+ Late.configure do |config|
364
+ # Configure Bearer authorization (JWT): bearerAuth
365
+ config.access_token = 'YOUR_BEARER_TOKEN'
366
+ end
367
+
368
+ api_instance = Late::BroadcastsApi.new
369
+ broadcast_id = 'broadcast_id_example' # String |
370
+ opts = {
371
+ status: 'pending', # String |
372
+ limit: 56, # Integer |
373
+ skip: 56 # Integer |
374
+ }
375
+
376
+ begin
377
+ # List broadcast recipients
378
+ api_instance.list_broadcast_recipients(broadcast_id, opts)
379
+ rescue Late::ApiError => e
380
+ puts "Error when calling BroadcastsApi->list_broadcast_recipients: #{e}"
381
+ end
382
+ ```
383
+
384
+ #### Using the list_broadcast_recipients_with_http_info variant
385
+
386
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
387
+
388
+ > <Array(nil, Integer, Hash)> list_broadcast_recipients_with_http_info(broadcast_id, opts)
389
+
390
+ ```ruby
391
+ begin
392
+ # List broadcast recipients
393
+ data, status_code, headers = api_instance.list_broadcast_recipients_with_http_info(broadcast_id, opts)
394
+ p status_code # => 2xx
395
+ p headers # => { ... }
396
+ p data # => nil
397
+ rescue Late::ApiError => e
398
+ puts "Error when calling BroadcastsApi->list_broadcast_recipients_with_http_info: #{e}"
399
+ end
400
+ ```
401
+
402
+ ### Parameters
403
+
404
+ | Name | Type | Description | Notes |
405
+ | ---- | ---- | ----------- | ----- |
406
+ | **broadcast_id** | **String** | | |
407
+ | **status** | **String** | | [optional] |
408
+ | **limit** | **Integer** | | [optional][default to 50] |
409
+ | **skip** | **Integer** | | [optional][default to 0] |
410
+
411
+ ### Return type
412
+
413
+ nil (empty response body)
414
+
415
+ ### Authorization
416
+
417
+ [bearerAuth](../README.md#bearerAuth)
418
+
419
+ ### HTTP request headers
420
+
421
+ - **Content-Type**: Not defined
422
+ - **Accept**: application/json
423
+
424
+
425
+ ## list_broadcasts
426
+
427
+ > list_broadcasts(profile_id, opts)
428
+
429
+ List broadcasts
430
+
431
+ ### Examples
432
+
433
+ ```ruby
434
+ require 'time'
435
+ require 'late-sdk'
436
+ # setup authorization
437
+ Late.configure do |config|
438
+ # Configure Bearer authorization (JWT): bearerAuth
439
+ config.access_token = 'YOUR_BEARER_TOKEN'
440
+ end
441
+
442
+ api_instance = Late::BroadcastsApi.new
443
+ profile_id = 'profile_id_example' # String |
444
+ opts = {
445
+ status: 'draft', # String |
446
+ platform: 'platform_example', # String |
447
+ limit: 56, # Integer |
448
+ skip: 56 # Integer |
449
+ }
450
+
451
+ begin
452
+ # List broadcasts
453
+ api_instance.list_broadcasts(profile_id, opts)
454
+ rescue Late::ApiError => e
455
+ puts "Error when calling BroadcastsApi->list_broadcasts: #{e}"
456
+ end
457
+ ```
458
+
459
+ #### Using the list_broadcasts_with_http_info variant
460
+
461
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
462
+
463
+ > <Array(nil, Integer, Hash)> list_broadcasts_with_http_info(profile_id, opts)
464
+
465
+ ```ruby
466
+ begin
467
+ # List broadcasts
468
+ data, status_code, headers = api_instance.list_broadcasts_with_http_info(profile_id, opts)
469
+ p status_code # => 2xx
470
+ p headers # => { ... }
471
+ p data # => nil
472
+ rescue Late::ApiError => e
473
+ puts "Error when calling BroadcastsApi->list_broadcasts_with_http_info: #{e}"
474
+ end
475
+ ```
476
+
477
+ ### Parameters
478
+
479
+ | Name | Type | Description | Notes |
480
+ | ---- | ---- | ----------- | ----- |
481
+ | **profile_id** | **String** | | |
482
+ | **status** | **String** | | [optional] |
483
+ | **platform** | **String** | | [optional] |
484
+ | **limit** | **Integer** | | [optional][default to 50] |
485
+ | **skip** | **Integer** | | [optional][default to 0] |
486
+
487
+ ### Return type
488
+
489
+ nil (empty response body)
490
+
491
+ ### Authorization
492
+
493
+ [bearerAuth](../README.md#bearerAuth)
494
+
495
+ ### HTTP request headers
496
+
497
+ - **Content-Type**: Not defined
498
+ - **Accept**: application/json
499
+
500
+
501
+ ## schedule_broadcast
502
+
503
+ > schedule_broadcast(broadcast_id, schedule_broadcast_request)
504
+
505
+ Schedule broadcast for later
506
+
507
+ ### Examples
508
+
509
+ ```ruby
510
+ require 'time'
511
+ require 'late-sdk'
512
+ # setup authorization
513
+ Late.configure do |config|
514
+ # Configure Bearer authorization (JWT): bearerAuth
515
+ config.access_token = 'YOUR_BEARER_TOKEN'
516
+ end
517
+
518
+ api_instance = Late::BroadcastsApi.new
519
+ broadcast_id = 'broadcast_id_example' # String |
520
+ schedule_broadcast_request = Late::ScheduleBroadcastRequest.new({scheduled_at: Time.now}) # ScheduleBroadcastRequest |
521
+
522
+ begin
523
+ # Schedule broadcast for later
524
+ api_instance.schedule_broadcast(broadcast_id, schedule_broadcast_request)
525
+ rescue Late::ApiError => e
526
+ puts "Error when calling BroadcastsApi->schedule_broadcast: #{e}"
527
+ end
528
+ ```
529
+
530
+ #### Using the schedule_broadcast_with_http_info variant
531
+
532
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
533
+
534
+ > <Array(nil, Integer, Hash)> schedule_broadcast_with_http_info(broadcast_id, schedule_broadcast_request)
535
+
536
+ ```ruby
537
+ begin
538
+ # Schedule broadcast for later
539
+ data, status_code, headers = api_instance.schedule_broadcast_with_http_info(broadcast_id, schedule_broadcast_request)
540
+ p status_code # => 2xx
541
+ p headers # => { ... }
542
+ p data # => nil
543
+ rescue Late::ApiError => e
544
+ puts "Error when calling BroadcastsApi->schedule_broadcast_with_http_info: #{e}"
545
+ end
546
+ ```
547
+
548
+ ### Parameters
549
+
550
+ | Name | Type | Description | Notes |
551
+ | ---- | ---- | ----------- | ----- |
552
+ | **broadcast_id** | **String** | | |
553
+ | **schedule_broadcast_request** | [**ScheduleBroadcastRequest**](ScheduleBroadcastRequest.md) | | |
554
+
555
+ ### Return type
556
+
557
+ nil (empty response body)
558
+
559
+ ### Authorization
560
+
561
+ [bearerAuth](../README.md#bearerAuth)
562
+
563
+ ### HTTP request headers
564
+
565
+ - **Content-Type**: application/json
566
+ - **Accept**: application/json
567
+
568
+
569
+ ## send_broadcast
570
+
571
+ > send_broadcast(broadcast_id)
572
+
573
+ Trigger immediate send
574
+
575
+ ### Examples
576
+
577
+ ```ruby
578
+ require 'time'
579
+ require 'late-sdk'
580
+ # setup authorization
581
+ Late.configure do |config|
582
+ # Configure Bearer authorization (JWT): bearerAuth
583
+ config.access_token = 'YOUR_BEARER_TOKEN'
584
+ end
585
+
586
+ api_instance = Late::BroadcastsApi.new
587
+ broadcast_id = 'broadcast_id_example' # String |
588
+
589
+ begin
590
+ # Trigger immediate send
591
+ api_instance.send_broadcast(broadcast_id)
592
+ rescue Late::ApiError => e
593
+ puts "Error when calling BroadcastsApi->send_broadcast: #{e}"
594
+ end
595
+ ```
596
+
597
+ #### Using the send_broadcast_with_http_info variant
598
+
599
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
600
+
601
+ > <Array(nil, Integer, Hash)> send_broadcast_with_http_info(broadcast_id)
602
+
603
+ ```ruby
604
+ begin
605
+ # Trigger immediate send
606
+ data, status_code, headers = api_instance.send_broadcast_with_http_info(broadcast_id)
607
+ p status_code # => 2xx
608
+ p headers # => { ... }
609
+ p data # => nil
610
+ rescue Late::ApiError => e
611
+ puts "Error when calling BroadcastsApi->send_broadcast_with_http_info: #{e}"
612
+ end
613
+ ```
614
+
615
+ ### Parameters
616
+
617
+ | Name | Type | Description | Notes |
618
+ | ---- | ---- | ----------- | ----- |
619
+ | **broadcast_id** | **String** | | |
620
+
621
+ ### Return type
622
+
623
+ nil (empty response body)
624
+
625
+ ### Authorization
626
+
627
+ [bearerAuth](../README.md#bearerAuth)
628
+
629
+ ### HTTP request headers
630
+
631
+ - **Content-Type**: Not defined
632
+ - **Accept**: application/json
633
+
634
+
635
+ ## update_broadcast
636
+
637
+ > update_broadcast(broadcast_id)
638
+
639
+ Update a broadcast
640
+
641
+ ### Examples
642
+
643
+ ```ruby
644
+ require 'time'
645
+ require 'late-sdk'
646
+ # setup authorization
647
+ Late.configure do |config|
648
+ # Configure Bearer authorization (JWT): bearerAuth
649
+ config.access_token = 'YOUR_BEARER_TOKEN'
650
+ end
651
+
652
+ api_instance = Late::BroadcastsApi.new
653
+ broadcast_id = 'broadcast_id_example' # String |
654
+
655
+ begin
656
+ # Update a broadcast
657
+ api_instance.update_broadcast(broadcast_id)
658
+ rescue Late::ApiError => e
659
+ puts "Error when calling BroadcastsApi->update_broadcast: #{e}"
660
+ end
661
+ ```
662
+
663
+ #### Using the update_broadcast_with_http_info variant
664
+
665
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
666
+
667
+ > <Array(nil, Integer, Hash)> update_broadcast_with_http_info(broadcast_id)
668
+
669
+ ```ruby
670
+ begin
671
+ # Update a broadcast
672
+ data, status_code, headers = api_instance.update_broadcast_with_http_info(broadcast_id)
673
+ p status_code # => 2xx
674
+ p headers # => { ... }
675
+ p data # => nil
676
+ rescue Late::ApiError => e
677
+ puts "Error when calling BroadcastsApi->update_broadcast_with_http_info: #{e}"
678
+ end
679
+ ```
680
+
681
+ ### Parameters
682
+
683
+ | Name | Type | Description | Notes |
684
+ | ---- | ---- | ----------- | ----- |
685
+ | **broadcast_id** | **String** | | |
686
+
687
+ ### Return type
688
+
689
+ nil (empty response body)
690
+
691
+ ### Authorization
692
+
693
+ [bearerAuth](../README.md#bearerAuth)
694
+
695
+ ### HTTP request headers
696
+
697
+ - **Content-Type**: Not defined
698
+ - **Accept**: application/json
699
+
@@ -0,0 +1,24 @@
1
+ # Late::BulkCreateContactsRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **profile_id** | **String** | | |
8
+ | **account_id** | **String** | | |
9
+ | **platform** | **String** | | |
10
+ | **contacts** | [**Array&lt;BulkCreateContactsRequestContactsInner&gt;**](BulkCreateContactsRequestContactsInner.md) | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'late-sdk'
16
+
17
+ instance = Late::BulkCreateContactsRequest.new(
18
+ profile_id: null,
19
+ account_id: null,
20
+ platform: null,
21
+ contacts: null
22
+ )
23
+ ```
24
+