zernio-sdk 0.0.69 → 0.0.70
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.
- checksums.yaml +4 -4
- data/docs/BroadcastsApi.md +6 -6
- data/docs/CommentAutomationsApi.md +8 -6
- data/docs/ContactsApi.md +6 -6
- data/docs/CustomFieldsApi.md +8 -6
- data/docs/SequencesApi.md +6 -6
- data/lib/late-sdk/api/broadcasts_api.rb +6 -10
- data/lib/late-sdk/api/comment_automations_api.rb +6 -10
- data/lib/late-sdk/api/contacts_api.rb +6 -10
- data/lib/late-sdk/api/custom_fields_api.rb +6 -10
- data/lib/late-sdk/api/sequences_api.rb +6 -10
- data/lib/late-sdk/version.rb +1 -1
- data/openapi.yaml +5 -5
- data/spec/api/broadcasts_api_spec.rb +1 -1
- data/spec/api/comment_automations_api_spec.rb +1 -1
- data/spec/api/contacts_api_spec.rb +1 -1
- data/spec/api/custom_fields_api_spec.rb +1 -1
- data/spec/api/sequences_api_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6fdb63feb621742679478b89bd0eedf5fda325c98694ff106c6f322ef794f72e
|
|
4
|
+
data.tar.gz: df857c6553b5a30b8720e73c9a98f6f6def37c95e752e4bd5e7e2d157f81bfa8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ab30aa7aa629f1daac01205e267340ab1158b1795a1af86bc784c108a7548616cc2c6a635224db8f67d2368c7df4a636af6df481d0ff54646bc6f7055cd4491
|
|
7
|
+
data.tar.gz: 7cba8f4ca6588b732070c894d33c77126eebac5f10a0e6abdffe8c1301d48379140fd1788f70ef3557d31288699fadd655c65c5bd7dfeb5c11aff3cd0518a338
|
data/docs/BroadcastsApi.md
CHANGED
|
@@ -424,7 +424,7 @@ nil (empty response body)
|
|
|
424
424
|
|
|
425
425
|
## list_broadcasts
|
|
426
426
|
|
|
427
|
-
> list_broadcasts(
|
|
427
|
+
> list_broadcasts(opts)
|
|
428
428
|
|
|
429
429
|
List broadcasts
|
|
430
430
|
|
|
@@ -440,8 +440,8 @@ Late.configure do |config|
|
|
|
440
440
|
end
|
|
441
441
|
|
|
442
442
|
api_instance = Late::BroadcastsApi.new
|
|
443
|
-
profile_id = 'profile_id_example' # String |
|
|
444
443
|
opts = {
|
|
444
|
+
profile_id: 'profile_id_example', # String | Filter by profile. Omit to list across all profiles
|
|
445
445
|
status: 'draft', # String |
|
|
446
446
|
platform: 'platform_example', # String |
|
|
447
447
|
limit: 56, # Integer |
|
|
@@ -450,7 +450,7 @@ opts = {
|
|
|
450
450
|
|
|
451
451
|
begin
|
|
452
452
|
# List broadcasts
|
|
453
|
-
api_instance.list_broadcasts(
|
|
453
|
+
api_instance.list_broadcasts(opts)
|
|
454
454
|
rescue Late::ApiError => e
|
|
455
455
|
puts "Error when calling BroadcastsApi->list_broadcasts: #{e}"
|
|
456
456
|
end
|
|
@@ -460,12 +460,12 @@ end
|
|
|
460
460
|
|
|
461
461
|
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
462
462
|
|
|
463
|
-
> <Array(nil, Integer, Hash)> list_broadcasts_with_http_info(
|
|
463
|
+
> <Array(nil, Integer, Hash)> list_broadcasts_with_http_info(opts)
|
|
464
464
|
|
|
465
465
|
```ruby
|
|
466
466
|
begin
|
|
467
467
|
# List broadcasts
|
|
468
|
-
data, status_code, headers = api_instance.list_broadcasts_with_http_info(
|
|
468
|
+
data, status_code, headers = api_instance.list_broadcasts_with_http_info(opts)
|
|
469
469
|
p status_code # => 2xx
|
|
470
470
|
p headers # => { ... }
|
|
471
471
|
p data # => nil
|
|
@@ -478,7 +478,7 @@ end
|
|
|
478
478
|
|
|
479
479
|
| Name | Type | Description | Notes |
|
|
480
480
|
| ---- | ---- | ----------- | ----- |
|
|
481
|
-
| **profile_id** | **String** |
|
|
481
|
+
| **profile_id** | **String** | Filter by profile. Omit to list across all profiles | [optional] |
|
|
482
482
|
| **status** | **String** | | [optional] |
|
|
483
483
|
| **platform** | **String** | | [optional] |
|
|
484
484
|
| **limit** | **Integer** | | [optional][default to 50] |
|
|
@@ -290,7 +290,7 @@ nil (empty response body)
|
|
|
290
290
|
|
|
291
291
|
## list_comment_automations
|
|
292
292
|
|
|
293
|
-
> <ListCommentAutomations200Response> list_comment_automations(
|
|
293
|
+
> <ListCommentAutomations200Response> list_comment_automations(opts)
|
|
294
294
|
|
|
295
295
|
List comment-to-DM automations
|
|
296
296
|
|
|
@@ -308,11 +308,13 @@ Late.configure do |config|
|
|
|
308
308
|
end
|
|
309
309
|
|
|
310
310
|
api_instance = Late::CommentAutomationsApi.new
|
|
311
|
-
|
|
311
|
+
opts = {
|
|
312
|
+
profile_id: 'profile_id_example' # String | Filter by profile. Omit to list across all profiles
|
|
313
|
+
}
|
|
312
314
|
|
|
313
315
|
begin
|
|
314
316
|
# List comment-to-DM automations
|
|
315
|
-
result = api_instance.list_comment_automations(
|
|
317
|
+
result = api_instance.list_comment_automations(opts)
|
|
316
318
|
p result
|
|
317
319
|
rescue Late::ApiError => e
|
|
318
320
|
puts "Error when calling CommentAutomationsApi->list_comment_automations: #{e}"
|
|
@@ -323,12 +325,12 @@ end
|
|
|
323
325
|
|
|
324
326
|
This returns an Array which contains the response data, status code and headers.
|
|
325
327
|
|
|
326
|
-
> <Array(<ListCommentAutomations200Response>, Integer, Hash)> list_comment_automations_with_http_info(
|
|
328
|
+
> <Array(<ListCommentAutomations200Response>, Integer, Hash)> list_comment_automations_with_http_info(opts)
|
|
327
329
|
|
|
328
330
|
```ruby
|
|
329
331
|
begin
|
|
330
332
|
# List comment-to-DM automations
|
|
331
|
-
data, status_code, headers = api_instance.list_comment_automations_with_http_info(
|
|
333
|
+
data, status_code, headers = api_instance.list_comment_automations_with_http_info(opts)
|
|
332
334
|
p status_code # => 2xx
|
|
333
335
|
p headers # => { ... }
|
|
334
336
|
p data # => <ListCommentAutomations200Response>
|
|
@@ -341,7 +343,7 @@ end
|
|
|
341
343
|
|
|
342
344
|
| Name | Type | Description | Notes |
|
|
343
345
|
| ---- | ---- | ----------- | ----- |
|
|
344
|
-
| **profile_id** | **String** |
|
|
346
|
+
| **profile_id** | **String** | Filter by profile. Omit to list across all profiles | [optional] |
|
|
345
347
|
|
|
346
348
|
### Return type
|
|
347
349
|
|
data/docs/ContactsApi.md
CHANGED
|
@@ -349,7 +349,7 @@ nil (empty response body)
|
|
|
349
349
|
|
|
350
350
|
## list_contacts
|
|
351
351
|
|
|
352
|
-
> list_contacts(
|
|
352
|
+
> list_contacts(opts)
|
|
353
353
|
|
|
354
354
|
List contacts
|
|
355
355
|
|
|
@@ -367,8 +367,8 @@ Late.configure do |config|
|
|
|
367
367
|
end
|
|
368
368
|
|
|
369
369
|
api_instance = Late::ContactsApi.new
|
|
370
|
-
profile_id = 'profile_id_example' # String |
|
|
371
370
|
opts = {
|
|
371
|
+
profile_id: 'profile_id_example', # String | Filter by profile. Omit to list across all profiles
|
|
372
372
|
search: 'search_example', # String |
|
|
373
373
|
tag: 'tag_example', # String |
|
|
374
374
|
platform: 'instagram', # String |
|
|
@@ -379,7 +379,7 @@ opts = {
|
|
|
379
379
|
|
|
380
380
|
begin
|
|
381
381
|
# List contacts
|
|
382
|
-
api_instance.list_contacts(
|
|
382
|
+
api_instance.list_contacts(opts)
|
|
383
383
|
rescue Late::ApiError => e
|
|
384
384
|
puts "Error when calling ContactsApi->list_contacts: #{e}"
|
|
385
385
|
end
|
|
@@ -389,12 +389,12 @@ end
|
|
|
389
389
|
|
|
390
390
|
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
391
391
|
|
|
392
|
-
> <Array(nil, Integer, Hash)> list_contacts_with_http_info(
|
|
392
|
+
> <Array(nil, Integer, Hash)> list_contacts_with_http_info(opts)
|
|
393
393
|
|
|
394
394
|
```ruby
|
|
395
395
|
begin
|
|
396
396
|
# List contacts
|
|
397
|
-
data, status_code, headers = api_instance.list_contacts_with_http_info(
|
|
397
|
+
data, status_code, headers = api_instance.list_contacts_with_http_info(opts)
|
|
398
398
|
p status_code # => 2xx
|
|
399
399
|
p headers # => { ... }
|
|
400
400
|
p data # => nil
|
|
@@ -407,7 +407,7 @@ end
|
|
|
407
407
|
|
|
408
408
|
| Name | Type | Description | Notes |
|
|
409
409
|
| ---- | ---- | ----------- | ----- |
|
|
410
|
-
| **profile_id** | **String** |
|
|
410
|
+
| **profile_id** | **String** | Filter by profile. Omit to list across all profiles | [optional] |
|
|
411
411
|
| **search** | **String** | | [optional] |
|
|
412
412
|
| **tag** | **String** | | [optional] |
|
|
413
413
|
| **platform** | **String** | | [optional] |
|
data/docs/CustomFieldsApi.md
CHANGED
|
@@ -214,7 +214,7 @@ nil (empty response body)
|
|
|
214
214
|
|
|
215
215
|
## list_custom_fields
|
|
216
216
|
|
|
217
|
-
> list_custom_fields(
|
|
217
|
+
> list_custom_fields(opts)
|
|
218
218
|
|
|
219
219
|
List custom field definitions
|
|
220
220
|
|
|
@@ -230,11 +230,13 @@ Late.configure do |config|
|
|
|
230
230
|
end
|
|
231
231
|
|
|
232
232
|
api_instance = Late::CustomFieldsApi.new
|
|
233
|
-
|
|
233
|
+
opts = {
|
|
234
|
+
profile_id: 'profile_id_example' # String | Filter by profile. Omit to list across all profiles
|
|
235
|
+
}
|
|
234
236
|
|
|
235
237
|
begin
|
|
236
238
|
# List custom field definitions
|
|
237
|
-
api_instance.list_custom_fields(
|
|
239
|
+
api_instance.list_custom_fields(opts)
|
|
238
240
|
rescue Late::ApiError => e
|
|
239
241
|
puts "Error when calling CustomFieldsApi->list_custom_fields: #{e}"
|
|
240
242
|
end
|
|
@@ -244,12 +246,12 @@ end
|
|
|
244
246
|
|
|
245
247
|
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
246
248
|
|
|
247
|
-
> <Array(nil, Integer, Hash)> list_custom_fields_with_http_info(
|
|
249
|
+
> <Array(nil, Integer, Hash)> list_custom_fields_with_http_info(opts)
|
|
248
250
|
|
|
249
251
|
```ruby
|
|
250
252
|
begin
|
|
251
253
|
# List custom field definitions
|
|
252
|
-
data, status_code, headers = api_instance.list_custom_fields_with_http_info(
|
|
254
|
+
data, status_code, headers = api_instance.list_custom_fields_with_http_info(opts)
|
|
253
255
|
p status_code # => 2xx
|
|
254
256
|
p headers # => { ... }
|
|
255
257
|
p data # => nil
|
|
@@ -262,7 +264,7 @@ end
|
|
|
262
264
|
|
|
263
265
|
| Name | Type | Description | Notes |
|
|
264
266
|
| ---- | ---- | ----------- | ----- |
|
|
265
|
-
| **profile_id** | **String** |
|
|
267
|
+
| **profile_id** | **String** | Filter by profile. Omit to list across all profiles | [optional] |
|
|
266
268
|
|
|
267
269
|
### Return type
|
|
268
270
|
|
data/docs/SequencesApi.md
CHANGED
|
@@ -424,7 +424,7 @@ nil (empty response body)
|
|
|
424
424
|
|
|
425
425
|
## list_sequences
|
|
426
426
|
|
|
427
|
-
> list_sequences(
|
|
427
|
+
> list_sequences(opts)
|
|
428
428
|
|
|
429
429
|
List sequences
|
|
430
430
|
|
|
@@ -440,8 +440,8 @@ Late.configure do |config|
|
|
|
440
440
|
end
|
|
441
441
|
|
|
442
442
|
api_instance = Late::SequencesApi.new
|
|
443
|
-
profile_id = 'profile_id_example' # String |
|
|
444
443
|
opts = {
|
|
444
|
+
profile_id: 'profile_id_example', # String | Filter by profile. Omit to list across all profiles
|
|
445
445
|
status: 'draft', # String |
|
|
446
446
|
limit: 56, # Integer |
|
|
447
447
|
skip: 56 # Integer |
|
|
@@ -449,7 +449,7 @@ opts = {
|
|
|
449
449
|
|
|
450
450
|
begin
|
|
451
451
|
# List sequences
|
|
452
|
-
api_instance.list_sequences(
|
|
452
|
+
api_instance.list_sequences(opts)
|
|
453
453
|
rescue Late::ApiError => e
|
|
454
454
|
puts "Error when calling SequencesApi->list_sequences: #{e}"
|
|
455
455
|
end
|
|
@@ -459,12 +459,12 @@ end
|
|
|
459
459
|
|
|
460
460
|
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
461
461
|
|
|
462
|
-
> <Array(nil, Integer, Hash)> list_sequences_with_http_info(
|
|
462
|
+
> <Array(nil, Integer, Hash)> list_sequences_with_http_info(opts)
|
|
463
463
|
|
|
464
464
|
```ruby
|
|
465
465
|
begin
|
|
466
466
|
# List sequences
|
|
467
|
-
data, status_code, headers = api_instance.list_sequences_with_http_info(
|
|
467
|
+
data, status_code, headers = api_instance.list_sequences_with_http_info(opts)
|
|
468
468
|
p status_code # => 2xx
|
|
469
469
|
p headers # => { ... }
|
|
470
470
|
p data # => nil
|
|
@@ -477,7 +477,7 @@ end
|
|
|
477
477
|
|
|
478
478
|
| Name | Type | Description | Notes |
|
|
479
479
|
| ---- | ---- | ----------- | ----- |
|
|
480
|
-
| **profile_id** | **String** |
|
|
480
|
+
| **profile_id** | **String** | Filter by profile. Omit to list across all profiles | [optional] |
|
|
481
481
|
| **status** | **String** | | [optional] |
|
|
482
482
|
| **limit** | **Integer** | | [optional][default to 50] |
|
|
483
483
|
| **skip** | **Integer** | | [optional][default to 0] |
|
|
@@ -415,34 +415,30 @@ module Late
|
|
|
415
415
|
end
|
|
416
416
|
|
|
417
417
|
# List broadcasts
|
|
418
|
-
# @param profile_id [String]
|
|
419
418
|
# @param [Hash] opts the optional parameters
|
|
419
|
+
# @option opts [String] :profile_id Filter by profile. Omit to list across all profiles
|
|
420
420
|
# @option opts [String] :status
|
|
421
421
|
# @option opts [String] :platform
|
|
422
422
|
# @option opts [Integer] :limit (default to 50)
|
|
423
423
|
# @option opts [Integer] :skip (default to 0)
|
|
424
424
|
# @return [nil]
|
|
425
|
-
def list_broadcasts(
|
|
426
|
-
list_broadcasts_with_http_info(
|
|
425
|
+
def list_broadcasts(opts = {})
|
|
426
|
+
list_broadcasts_with_http_info(opts)
|
|
427
427
|
nil
|
|
428
428
|
end
|
|
429
429
|
|
|
430
430
|
# List broadcasts
|
|
431
|
-
# @param profile_id [String]
|
|
432
431
|
# @param [Hash] opts the optional parameters
|
|
432
|
+
# @option opts [String] :profile_id Filter by profile. Omit to list across all profiles
|
|
433
433
|
# @option opts [String] :status
|
|
434
434
|
# @option opts [String] :platform
|
|
435
435
|
# @option opts [Integer] :limit (default to 50)
|
|
436
436
|
# @option opts [Integer] :skip (default to 0)
|
|
437
437
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
438
|
-
def list_broadcasts_with_http_info(
|
|
438
|
+
def list_broadcasts_with_http_info(opts = {})
|
|
439
439
|
if @api_client.config.debugging
|
|
440
440
|
@api_client.config.logger.debug 'Calling API: BroadcastsApi.list_broadcasts ...'
|
|
441
441
|
end
|
|
442
|
-
# verify the required parameter 'profile_id' is set
|
|
443
|
-
if @api_client.config.client_side_validation && profile_id.nil?
|
|
444
|
-
fail ArgumentError, "Missing the required parameter 'profile_id' when calling BroadcastsApi.list_broadcasts"
|
|
445
|
-
end
|
|
446
442
|
allowable_values = ["draft", "scheduled", "sending", "completed", "failed", "cancelled"]
|
|
447
443
|
if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
|
|
448
444
|
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
|
@@ -452,7 +448,7 @@ module Late
|
|
|
452
448
|
|
|
453
449
|
# query parameters
|
|
454
450
|
query_params = opts[:query_params] || {}
|
|
455
|
-
query_params[:'profileId'] = profile_id
|
|
451
|
+
query_params[:'profileId'] = opts[:'profile_id'] if !opts[:'profile_id'].nil?
|
|
456
452
|
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
|
457
453
|
query_params[:'platform'] = opts[:'platform'] if !opts[:'platform'].nil?
|
|
458
454
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
@@ -287,33 +287,29 @@ module Late
|
|
|
287
287
|
|
|
288
288
|
# List comment-to-DM automations
|
|
289
289
|
# List all comment-to-DM automations for a profile. Returns automations with their stats.
|
|
290
|
-
# @param profile_id [String] Profile ID
|
|
291
290
|
# @param [Hash] opts the optional parameters
|
|
291
|
+
# @option opts [String] :profile_id Filter by profile. Omit to list across all profiles
|
|
292
292
|
# @return [ListCommentAutomations200Response]
|
|
293
|
-
def list_comment_automations(
|
|
294
|
-
data, _status_code, _headers = list_comment_automations_with_http_info(
|
|
293
|
+
def list_comment_automations(opts = {})
|
|
294
|
+
data, _status_code, _headers = list_comment_automations_with_http_info(opts)
|
|
295
295
|
data
|
|
296
296
|
end
|
|
297
297
|
|
|
298
298
|
# List comment-to-DM automations
|
|
299
299
|
# List all comment-to-DM automations for a profile. Returns automations with their stats.
|
|
300
|
-
# @param profile_id [String] Profile ID
|
|
301
300
|
# @param [Hash] opts the optional parameters
|
|
301
|
+
# @option opts [String] :profile_id Filter by profile. Omit to list across all profiles
|
|
302
302
|
# @return [Array<(ListCommentAutomations200Response, Integer, Hash)>] ListCommentAutomations200Response data, response status code and response headers
|
|
303
|
-
def list_comment_automations_with_http_info(
|
|
303
|
+
def list_comment_automations_with_http_info(opts = {})
|
|
304
304
|
if @api_client.config.debugging
|
|
305
305
|
@api_client.config.logger.debug 'Calling API: CommentAutomationsApi.list_comment_automations ...'
|
|
306
306
|
end
|
|
307
|
-
# verify the required parameter 'profile_id' is set
|
|
308
|
-
if @api_client.config.client_side_validation && profile_id.nil?
|
|
309
|
-
fail ArgumentError, "Missing the required parameter 'profile_id' when calling CommentAutomationsApi.list_comment_automations"
|
|
310
|
-
end
|
|
311
307
|
# resource path
|
|
312
308
|
local_var_path = '/v1/comment-automations'
|
|
313
309
|
|
|
314
310
|
# query parameters
|
|
315
311
|
query_params = opts[:query_params] || {}
|
|
316
|
-
query_params[:'profileId'] = profile_id
|
|
312
|
+
query_params[:'profileId'] = opts[:'profile_id'] if !opts[:'profile_id'].nil?
|
|
317
313
|
|
|
318
314
|
# header parameters
|
|
319
315
|
header_params = opts[:header_params] || {}
|
|
@@ -340,8 +340,8 @@ module Late
|
|
|
340
340
|
|
|
341
341
|
# List contacts
|
|
342
342
|
# List and search contacts for a profile. Supports filtering by tags, platform, subscription status, and full-text search.
|
|
343
|
-
# @param profile_id [String]
|
|
344
343
|
# @param [Hash] opts the optional parameters
|
|
344
|
+
# @option opts [String] :profile_id Filter by profile. Omit to list across all profiles
|
|
345
345
|
# @option opts [String] :search
|
|
346
346
|
# @option opts [String] :tag
|
|
347
347
|
# @option opts [String] :platform
|
|
@@ -349,15 +349,15 @@ module Late
|
|
|
349
349
|
# @option opts [Integer] :limit (default to 50)
|
|
350
350
|
# @option opts [Integer] :skip (default to 0)
|
|
351
351
|
# @return [nil]
|
|
352
|
-
def list_contacts(
|
|
353
|
-
list_contacts_with_http_info(
|
|
352
|
+
def list_contacts(opts = {})
|
|
353
|
+
list_contacts_with_http_info(opts)
|
|
354
354
|
nil
|
|
355
355
|
end
|
|
356
356
|
|
|
357
357
|
# List contacts
|
|
358
358
|
# List and search contacts for a profile. Supports filtering by tags, platform, subscription status, and full-text search.
|
|
359
|
-
# @param profile_id [String]
|
|
360
359
|
# @param [Hash] opts the optional parameters
|
|
360
|
+
# @option opts [String] :profile_id Filter by profile. Omit to list across all profiles
|
|
361
361
|
# @option opts [String] :search
|
|
362
362
|
# @option opts [String] :tag
|
|
363
363
|
# @option opts [String] :platform
|
|
@@ -365,14 +365,10 @@ module Late
|
|
|
365
365
|
# @option opts [Integer] :limit (default to 50)
|
|
366
366
|
# @option opts [Integer] :skip (default to 0)
|
|
367
367
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
368
|
-
def list_contacts_with_http_info(
|
|
368
|
+
def list_contacts_with_http_info(opts = {})
|
|
369
369
|
if @api_client.config.debugging
|
|
370
370
|
@api_client.config.logger.debug 'Calling API: ContactsApi.list_contacts ...'
|
|
371
371
|
end
|
|
372
|
-
# verify the required parameter 'profile_id' is set
|
|
373
|
-
if @api_client.config.client_side_validation && profile_id.nil?
|
|
374
|
-
fail ArgumentError, "Missing the required parameter 'profile_id' when calling ContactsApi.list_contacts"
|
|
375
|
-
end
|
|
376
372
|
allowable_values = ["instagram", "facebook", "telegram", "twitter", "bluesky", "reddit", "whatsapp"]
|
|
377
373
|
if @api_client.config.client_side_validation && opts[:'platform'] && !allowable_values.include?(opts[:'platform'])
|
|
378
374
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{allowable_values}"
|
|
@@ -390,7 +386,7 @@ module Late
|
|
|
390
386
|
|
|
391
387
|
# query parameters
|
|
392
388
|
query_params = opts[:query_params] || {}
|
|
393
|
-
query_params[:'profileId'] = profile_id
|
|
389
|
+
query_params[:'profileId'] = opts[:'profile_id'] if !opts[:'profile_id'].nil?
|
|
394
390
|
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
395
391
|
query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
|
|
396
392
|
query_params[:'platform'] = opts[:'platform'] if !opts[:'platform'].nil?
|
|
@@ -214,32 +214,28 @@ module Late
|
|
|
214
214
|
end
|
|
215
215
|
|
|
216
216
|
# List custom field definitions
|
|
217
|
-
# @param profile_id [String]
|
|
218
217
|
# @param [Hash] opts the optional parameters
|
|
218
|
+
# @option opts [String] :profile_id Filter by profile. Omit to list across all profiles
|
|
219
219
|
# @return [nil]
|
|
220
|
-
def list_custom_fields(
|
|
221
|
-
list_custom_fields_with_http_info(
|
|
220
|
+
def list_custom_fields(opts = {})
|
|
221
|
+
list_custom_fields_with_http_info(opts)
|
|
222
222
|
nil
|
|
223
223
|
end
|
|
224
224
|
|
|
225
225
|
# List custom field definitions
|
|
226
|
-
# @param profile_id [String]
|
|
227
226
|
# @param [Hash] opts the optional parameters
|
|
227
|
+
# @option opts [String] :profile_id Filter by profile. Omit to list across all profiles
|
|
228
228
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
229
|
-
def list_custom_fields_with_http_info(
|
|
229
|
+
def list_custom_fields_with_http_info(opts = {})
|
|
230
230
|
if @api_client.config.debugging
|
|
231
231
|
@api_client.config.logger.debug 'Calling API: CustomFieldsApi.list_custom_fields ...'
|
|
232
232
|
end
|
|
233
|
-
# verify the required parameter 'profile_id' is set
|
|
234
|
-
if @api_client.config.client_side_validation && profile_id.nil?
|
|
235
|
-
fail ArgumentError, "Missing the required parameter 'profile_id' when calling CustomFieldsApi.list_custom_fields"
|
|
236
|
-
end
|
|
237
233
|
# resource path
|
|
238
234
|
local_var_path = '/v1/custom-fields'
|
|
239
235
|
|
|
240
236
|
# query parameters
|
|
241
237
|
query_params = opts[:query_params] || {}
|
|
242
|
-
query_params[:'profileId'] = profile_id
|
|
238
|
+
query_params[:'profileId'] = opts[:'profile_id'] if !opts[:'profile_id'].nil?
|
|
243
239
|
|
|
244
240
|
# header parameters
|
|
245
241
|
header_params = opts[:header_params] || {}
|
|
@@ -415,32 +415,28 @@ module Late
|
|
|
415
415
|
end
|
|
416
416
|
|
|
417
417
|
# List sequences
|
|
418
|
-
# @param profile_id [String]
|
|
419
418
|
# @param [Hash] opts the optional parameters
|
|
419
|
+
# @option opts [String] :profile_id Filter by profile. Omit to list across all profiles
|
|
420
420
|
# @option opts [String] :status
|
|
421
421
|
# @option opts [Integer] :limit (default to 50)
|
|
422
422
|
# @option opts [Integer] :skip (default to 0)
|
|
423
423
|
# @return [nil]
|
|
424
|
-
def list_sequences(
|
|
425
|
-
list_sequences_with_http_info(
|
|
424
|
+
def list_sequences(opts = {})
|
|
425
|
+
list_sequences_with_http_info(opts)
|
|
426
426
|
nil
|
|
427
427
|
end
|
|
428
428
|
|
|
429
429
|
# List sequences
|
|
430
|
-
# @param profile_id [String]
|
|
431
430
|
# @param [Hash] opts the optional parameters
|
|
431
|
+
# @option opts [String] :profile_id Filter by profile. Omit to list across all profiles
|
|
432
432
|
# @option opts [String] :status
|
|
433
433
|
# @option opts [Integer] :limit (default to 50)
|
|
434
434
|
# @option opts [Integer] :skip (default to 0)
|
|
435
435
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
436
|
-
def list_sequences_with_http_info(
|
|
436
|
+
def list_sequences_with_http_info(opts = {})
|
|
437
437
|
if @api_client.config.debugging
|
|
438
438
|
@api_client.config.logger.debug 'Calling API: SequencesApi.list_sequences ...'
|
|
439
439
|
end
|
|
440
|
-
# verify the required parameter 'profile_id' is set
|
|
441
|
-
if @api_client.config.client_side_validation && profile_id.nil?
|
|
442
|
-
fail ArgumentError, "Missing the required parameter 'profile_id' when calling SequencesApi.list_sequences"
|
|
443
|
-
end
|
|
444
440
|
allowable_values = ["draft", "active", "paused"]
|
|
445
441
|
if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
|
|
446
442
|
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
|
@@ -450,7 +446,7 @@ module Late
|
|
|
450
446
|
|
|
451
447
|
# query parameters
|
|
452
448
|
query_params = opts[:query_params] || {}
|
|
453
|
-
query_params[:'profileId'] = profile_id
|
|
449
|
+
query_params[:'profileId'] = opts[:'profile_id'] if !opts[:'profile_id'].nil?
|
|
454
450
|
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
|
455
451
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
456
452
|
query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
|
data/lib/late-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -14574,7 +14574,7 @@ paths:
|
|
|
14574
14574
|
description: List and search contacts for a profile. Supports filtering by tags, platform, subscription status, and full-text search.
|
|
14575
14575
|
tags: [Contacts]
|
|
14576
14576
|
parameters:
|
|
14577
|
-
- { name: profileId, in: query,
|
|
14577
|
+
- { name: profileId, in: query, schema: { type: string }, description: Filter by profile. Omit to list across all profiles }
|
|
14578
14578
|
- { name: search, in: query, schema: { type: string } }
|
|
14579
14579
|
- { name: tag, in: query, schema: { type: string } }
|
|
14580
14580
|
- { name: platform, in: query, schema: { type: string, enum: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp] } }
|
|
@@ -14746,7 +14746,7 @@ paths:
|
|
|
14746
14746
|
summary: List custom field definitions
|
|
14747
14747
|
tags: [Custom Fields]
|
|
14748
14748
|
parameters:
|
|
14749
|
-
- { name: profileId, in: query,
|
|
14749
|
+
- { name: profileId, in: query, schema: { type: string }, description: Filter by profile. Omit to list across all profiles }
|
|
14750
14750
|
responses:
|
|
14751
14751
|
'200': { description: List of custom field definitions }
|
|
14752
14752
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
@@ -14810,7 +14810,7 @@ paths:
|
|
|
14810
14810
|
summary: List broadcasts
|
|
14811
14811
|
tags: [Broadcasts]
|
|
14812
14812
|
parameters:
|
|
14813
|
-
- { name: profileId, in: query,
|
|
14813
|
+
- { name: profileId, in: query, schema: { type: string }, description: Filter by profile. Omit to list across all profiles }
|
|
14814
14814
|
- { name: status, in: query, schema: { type: string, enum: [draft, scheduled, sending, completed, failed, cancelled] } }
|
|
14815
14815
|
- { name: platform, in: query, schema: { type: string } }
|
|
14816
14816
|
- { name: limit, in: query, schema: { type: integer, default: 50 } }
|
|
@@ -14978,7 +14978,7 @@ paths:
|
|
|
14978
14978
|
summary: List sequences
|
|
14979
14979
|
tags: [Sequences]
|
|
14980
14980
|
parameters:
|
|
14981
|
-
- { name: profileId, in: query,
|
|
14981
|
+
- { name: profileId, in: query, schema: { type: string }, description: Filter by profile. Omit to list across all profiles }
|
|
14982
14982
|
- { name: status, in: query, schema: { type: string, enum: [draft, active, paused] } }
|
|
14983
14983
|
- { name: limit, in: query, schema: { type: integer, default: 50 } }
|
|
14984
14984
|
- { name: skip, in: query, schema: { type: integer, default: 0 } }
|
|
@@ -15139,7 +15139,7 @@ paths:
|
|
|
15139
15139
|
security:
|
|
15140
15140
|
- bearerAuth: []
|
|
15141
15141
|
parameters:
|
|
15142
|
-
- { name: profileId, in: query,
|
|
15142
|
+
- { name: profileId, in: query, schema: { type: string }, description: Filter by profile. Omit to list across all profiles }
|
|
15143
15143
|
responses:
|
|
15144
15144
|
'200':
|
|
15145
15145
|
description: Automations list
|
|
@@ -104,8 +104,8 @@ describe 'BroadcastsApi' do
|
|
|
104
104
|
|
|
105
105
|
# unit tests for list_broadcasts
|
|
106
106
|
# List broadcasts
|
|
107
|
-
# @param profile_id
|
|
108
107
|
# @param [Hash] opts the optional parameters
|
|
108
|
+
# @option opts [String] :profile_id Filter by profile. Omit to list across all profiles
|
|
109
109
|
# @option opts [String] :status
|
|
110
110
|
# @option opts [String] :platform
|
|
111
111
|
# @option opts [Integer] :limit
|
|
@@ -84,8 +84,8 @@ describe 'CommentAutomationsApi' do
|
|
|
84
84
|
# unit tests for list_comment_automations
|
|
85
85
|
# List comment-to-DM automations
|
|
86
86
|
# List all comment-to-DM automations for a profile. Returns automations with their stats.
|
|
87
|
-
# @param profile_id Profile ID
|
|
88
87
|
# @param [Hash] opts the optional parameters
|
|
88
|
+
# @option opts [String] :profile_id Filter by profile. Omit to list across all profiles
|
|
89
89
|
# @return [ListCommentAutomations200Response]
|
|
90
90
|
describe 'list_comment_automations test' do
|
|
91
91
|
it 'should work' do
|
|
@@ -92,8 +92,8 @@ describe 'ContactsApi' do
|
|
|
92
92
|
# unit tests for list_contacts
|
|
93
93
|
# List contacts
|
|
94
94
|
# List and search contacts for a profile. Supports filtering by tags, platform, subscription status, and full-text search.
|
|
95
|
-
# @param profile_id
|
|
96
95
|
# @param [Hash] opts the optional parameters
|
|
96
|
+
# @option opts [String] :profile_id Filter by profile. Omit to list across all profiles
|
|
97
97
|
# @option opts [String] :search
|
|
98
98
|
# @option opts [String] :tag
|
|
99
99
|
# @option opts [String] :platform
|
|
@@ -68,8 +68,8 @@ describe 'CustomFieldsApi' do
|
|
|
68
68
|
|
|
69
69
|
# unit tests for list_custom_fields
|
|
70
70
|
# List custom field definitions
|
|
71
|
-
# @param profile_id
|
|
72
71
|
# @param [Hash] opts the optional parameters
|
|
72
|
+
# @option opts [String] :profile_id Filter by profile. Omit to list across all profiles
|
|
73
73
|
# @return [nil]
|
|
74
74
|
describe 'list_custom_fields test' do
|
|
75
75
|
it 'should work' do
|
|
@@ -104,8 +104,8 @@ describe 'SequencesApi' do
|
|
|
104
104
|
|
|
105
105
|
# unit tests for list_sequences
|
|
106
106
|
# List sequences
|
|
107
|
-
# @param profile_id
|
|
108
107
|
# @param [Hash] opts the optional parameters
|
|
108
|
+
# @option opts [String] :profile_id Filter by profile. Omit to list across all profiles
|
|
109
109
|
# @option opts [String] :status
|
|
110
110
|
# @option opts [Integer] :limit
|
|
111
111
|
# @option opts [Integer] :skip
|