zernio-sdk 0.0.69 → 0.0.71

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 374fcfd6b08a9a6fb1b35abe81d90c45cc84d4f9f4d7a0164081bc1399c41bbd
4
- data.tar.gz: 1a5c9f316cefdf1400b987fc6e54215b0d47f51519fed6e2805199b721f45a0d
3
+ metadata.gz: '082de95081a7b749e1cd25670fdbda8b19ba8336d1006ba4e1c23c972335e8c5'
4
+ data.tar.gz: d7e6b947e601a198ec0d423d3e9aad95a3a71c1b503ec553ae497f9d18a51fd0
5
5
  SHA512:
6
- metadata.gz: f0f1b5eefc9a5a3247d3a743f15be4206fa361150c86c94deebbab5663482578698c578ceb499536095e17faf4c8bf188ffd6ba612b43f4a453acb3481d6709a
7
- data.tar.gz: f552ebff35d969bc2eef34600ef376a0204028c9cd665eef558aecca287666faacde6c4d23187b45ee96b73583f4c70f38cd6f6e48948212d42508d64c95b960
6
+ metadata.gz: 4ef0a70de3edb5568aeba34c55ec16419f7182666a54eff7662cd860a475a0b6ff6e602927f3264cb90a1544619fbed080262aded92e04f034f74d498043d191
7
+ data.tar.gz: e1edf7b82f12eeb81fda024e340dbc4a7ccaddfc4f5be88f2f38c8df82eb95ed3e898191693c19b9eb99ae1d867a9a9c55d6f5097b474a5a445d37f210b53f28
data/docs/AnalyticsApi.md CHANGED
@@ -43,6 +43,7 @@ opts = {
43
43
  post_id: 'post_id_example', # String | Returns analytics for a single post. Accepts both Zernio Post IDs and External Post IDs. Zernio IDs are auto-resolved to External Post analytics.
44
44
  platform: 'platform_example', # String | Filter by platform (default \"all\")
45
45
  profile_id: 'profile_id_example', # String | Filter by profile ID (default \"all\")
46
+ account_id: 'account_id_example', # String | Filter by social account ID
46
47
  source: 'all', # String | Filter by post source: late (posted via Zernio API), external (synced from platform), all (default)
47
48
  from_date: Date.parse('2013-10-20'), # Date | Inclusive lower bound (YYYY-MM-DD). Defaults to 90 days ago if omitted. Max range is 366 days.
48
49
  to_date: Date.parse('2013-10-20'), # Date | Inclusive upper bound (YYYY-MM-DD). Defaults to today if omitted.
@@ -86,6 +87,7 @@ end
86
87
  | **post_id** | **String** | Returns analytics for a single post. Accepts both Zernio Post IDs and External Post IDs. Zernio IDs are auto-resolved to External Post analytics. | [optional] |
87
88
  | **platform** | **String** | Filter by platform (default \"all\") | [optional] |
88
89
  | **profile_id** | **String** | Filter by profile ID (default \"all\") | [optional] |
90
+ | **account_id** | **String** | Filter by social account ID | [optional] |
89
91
  | **source** | **String** | Filter by post source: late (posted via Zernio API), external (synced from platform), all (default) | [optional][default to 'all'] |
90
92
  | **from_date** | **Date** | Inclusive lower bound (YYYY-MM-DD). Defaults to 90 days ago if omitted. Max range is 366 days. | [optional] |
91
93
  | **to_date** | **Date** | Inclusive upper bound (YYYY-MM-DD). Defaults to today if omitted. | [optional] |
@@ -281,6 +283,7 @@ api_instance = Late::AnalyticsApi.new
281
283
  opts = {
282
284
  platform: 'platform_example', # String | Filter by platform (e.g. \"instagram\", \"tiktok\"). Omit for all platforms.
283
285
  profile_id: 'profile_id_example', # String | Filter by profile ID. Omit for all profiles.
286
+ account_id: 'account_id_example', # String | Filter by social account ID
284
287
  from_date: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Inclusive start date (ISO 8601). Defaults to 180 days ago.
285
288
  to_date: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Inclusive end date (ISO 8601). Defaults to now.
286
289
  source: 'all' # String | Filter by post origin. \"late\" for posts published via Zernio, \"external\" for posts imported from platforms.
@@ -319,6 +322,7 @@ end
319
322
  | ---- | ---- | ----------- | ----- |
320
323
  | **platform** | **String** | Filter by platform (e.g. \"instagram\", \"tiktok\"). Omit for all platforms. | [optional] |
321
324
  | **profile_id** | **String** | Filter by profile ID. Omit for all profiles. | [optional] |
325
+ | **account_id** | **String** | Filter by social account ID | [optional] |
322
326
  | **from_date** | **Time** | Inclusive start date (ISO 8601). Defaults to 180 days ago. | [optional] |
323
327
  | **to_date** | **Time** | Inclusive end date (ISO 8601). Defaults to now. | [optional] |
324
328
  | **source** | **String** | Filter by post origin. \"late\" for posts published via Zernio, \"external\" for posts imported from platforms. | [optional][default to 'all'] |
@@ -424,7 +424,7 @@ nil (empty response body)
424
424
 
425
425
  ## list_broadcasts
426
426
 
427
- > list_broadcasts(profile_id, opts)
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(profile_id, opts)
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(profile_id, opts)
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(profile_id, opts)
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(profile_id)
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
- profile_id = 'profile_id_example' # String | Profile ID
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(profile_id)
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(profile_id)
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(profile_id)
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** | Profile ID | |
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(profile_id, opts)
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(profile_id, opts)
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(profile_id, opts)
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(profile_id, opts)
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] |
@@ -214,7 +214,7 @@ nil (empty response body)
214
214
 
215
215
  ## list_custom_fields
216
216
 
217
- > list_custom_fields(profile_id)
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
- profile_id = 'profile_id_example' # String |
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(profile_id)
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(profile_id)
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(profile_id)
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(profile_id, opts)
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(profile_id, opts)
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(profile_id, opts)
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(profile_id, opts)
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] |
@@ -25,6 +25,7 @@ module Late
25
25
  # @option opts [String] :post_id Returns analytics for a single post. Accepts both Zernio Post IDs and External Post IDs. Zernio IDs are auto-resolved to External Post analytics.
26
26
  # @option opts [String] :platform Filter by platform (default \&quot;all\&quot;)
27
27
  # @option opts [String] :profile_id Filter by profile ID (default \&quot;all\&quot;)
28
+ # @option opts [String] :account_id Filter by social account ID
28
29
  # @option opts [String] :source Filter by post source: late (posted via Zernio API), external (synced from platform), all (default) (default to 'all')
29
30
  # @option opts [Date] :from_date Inclusive lower bound (YYYY-MM-DD). Defaults to 90 days ago if omitted. Max range is 366 days.
30
31
  # @option opts [Date] :to_date Inclusive upper bound (YYYY-MM-DD). Defaults to today if omitted.
@@ -44,6 +45,7 @@ module Late
44
45
  # @option opts [String] :post_id Returns analytics for a single post. Accepts both Zernio Post IDs and External Post IDs. Zernio IDs are auto-resolved to External Post analytics.
45
46
  # @option opts [String] :platform Filter by platform (default \&quot;all\&quot;)
46
47
  # @option opts [String] :profile_id Filter by profile ID (default \&quot;all\&quot;)
48
+ # @option opts [String] :account_id Filter by social account ID
47
49
  # @option opts [String] :source Filter by post source: late (posted via Zernio API), external (synced from platform), all (default) (default to 'all')
48
50
  # @option opts [Date] :from_date Inclusive lower bound (YYYY-MM-DD). Defaults to 90 days ago if omitted. Max range is 366 days.
49
51
  # @option opts [Date] :to_date Inclusive upper bound (YYYY-MM-DD). Defaults to today if omitted.
@@ -88,6 +90,7 @@ module Late
88
90
  query_params[:'postId'] = opts[:'post_id'] if !opts[:'post_id'].nil?
89
91
  query_params[:'platform'] = opts[:'platform'] if !opts[:'platform'].nil?
90
92
  query_params[:'profileId'] = opts[:'profile_id'] if !opts[:'profile_id'].nil?
93
+ query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
91
94
  query_params[:'source'] = opts[:'source'] if !opts[:'source'].nil?
92
95
  query_params[:'fromDate'] = opts[:'from_date'] if !opts[:'from_date'].nil?
93
96
  query_params[:'toDate'] = opts[:'to_date'] if !opts[:'to_date'].nil?
@@ -275,6 +278,7 @@ module Late
275
278
  # @param [Hash] opts the optional parameters
276
279
  # @option opts [String] :platform Filter by platform (e.g. \&quot;instagram\&quot;, \&quot;tiktok\&quot;). Omit for all platforms.
277
280
  # @option opts [String] :profile_id Filter by profile ID. Omit for all profiles.
281
+ # @option opts [String] :account_id Filter by social account ID
278
282
  # @option opts [Time] :from_date Inclusive start date (ISO 8601). Defaults to 180 days ago.
279
283
  # @option opts [Time] :to_date Inclusive end date (ISO 8601). Defaults to now.
280
284
  # @option opts [String] :source Filter by post origin. \&quot;late\&quot; for posts published via Zernio, \&quot;external\&quot; for posts imported from platforms. (default to 'all')
@@ -289,6 +293,7 @@ module Late
289
293
  # @param [Hash] opts the optional parameters
290
294
  # @option opts [String] :platform Filter by platform (e.g. \&quot;instagram\&quot;, \&quot;tiktok\&quot;). Omit for all platforms.
291
295
  # @option opts [String] :profile_id Filter by profile ID. Omit for all profiles.
296
+ # @option opts [String] :account_id Filter by social account ID
292
297
  # @option opts [Time] :from_date Inclusive start date (ISO 8601). Defaults to 180 days ago.
293
298
  # @option opts [Time] :to_date Inclusive end date (ISO 8601). Defaults to now.
294
299
  # @option opts [String] :source Filter by post origin. \&quot;late\&quot; for posts published via Zernio, \&quot;external\&quot; for posts imported from platforms. (default to 'all')
@@ -308,6 +313,7 @@ module Late
308
313
  query_params = opts[:query_params] || {}
309
314
  query_params[:'platform'] = opts[:'platform'] if !opts[:'platform'].nil?
310
315
  query_params[:'profileId'] = opts[:'profile_id'] if !opts[:'profile_id'].nil?
316
+ query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
311
317
  query_params[:'fromDate'] = opts[:'from_date'] if !opts[:'from_date'].nil?
312
318
  query_params[:'toDate'] = opts[:'to_date'] if !opts[:'to_date'].nil?
313
319
  query_params[:'source'] = opts[:'source'] if !opts[:'source'].nil?
@@ -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(profile_id, opts = {})
426
- list_broadcasts_with_http_info(profile_id, opts)
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(profile_id, opts = {})
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(profile_id, opts = {})
294
- data, _status_code, _headers = list_comment_automations_with_http_info(profile_id, opts)
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(profile_id, opts = {})
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(profile_id, opts = {})
353
- list_contacts_with_http_info(profile_id, opts)
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(profile_id, opts = {})
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(profile_id, opts = {})
221
- list_custom_fields_with_http_info(profile_id, opts)
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(profile_id, opts = {})
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(profile_id, opts = {})
425
- list_sequences_with_http_info(profile_id, opts)
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(profile_id, opts = {})
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?
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Late
14
- VERSION = '0.0.69'
14
+ VERSION = '0.0.71'
15
15
  end
data/openapi.yaml CHANGED
@@ -3081,6 +3081,10 @@ paths:
3081
3081
  in: query
3082
3082
  schema: { type: string }
3083
3083
  description: Filter by profile ID (default "all")
3084
+ - name: accountId
3085
+ in: query
3086
+ schema: { type: string }
3087
+ description: Filter by social account ID
3084
3088
  - name: source
3085
3089
  in: query
3086
3090
  schema: { type: string, enum: [all, late, external], default: all }
@@ -3693,6 +3697,10 @@ paths:
3693
3697
  in: query
3694
3698
  schema: { type: string }
3695
3699
  description: Filter by profile ID. Omit for all profiles.
3700
+ - name: accountId
3701
+ in: query
3702
+ schema: { type: string }
3703
+ description: Filter by social account ID
3696
3704
  - name: fromDate
3697
3705
  in: query
3698
3706
  schema: { type: string, format: date-time }
@@ -14574,7 +14582,7 @@ paths:
14574
14582
  description: List and search contacts for a profile. Supports filtering by tags, platform, subscription status, and full-text search.
14575
14583
  tags: [Contacts]
14576
14584
  parameters:
14577
- - { name: profileId, in: query, required: true, schema: { type: string } }
14585
+ - { name: profileId, in: query, schema: { type: string }, description: Filter by profile. Omit to list across all profiles }
14578
14586
  - { name: search, in: query, schema: { type: string } }
14579
14587
  - { name: tag, in: query, schema: { type: string } }
14580
14588
  - { name: platform, in: query, schema: { type: string, enum: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp] } }
@@ -14746,7 +14754,7 @@ paths:
14746
14754
  summary: List custom field definitions
14747
14755
  tags: [Custom Fields]
14748
14756
  parameters:
14749
- - { name: profileId, in: query, required: true, schema: { type: string } }
14757
+ - { name: profileId, in: query, schema: { type: string }, description: Filter by profile. Omit to list across all profiles }
14750
14758
  responses:
14751
14759
  '200': { description: List of custom field definitions }
14752
14760
  '401': { $ref: '#/components/responses/Unauthorized' }
@@ -14810,7 +14818,7 @@ paths:
14810
14818
  summary: List broadcasts
14811
14819
  tags: [Broadcasts]
14812
14820
  parameters:
14813
- - { name: profileId, in: query, required: true, schema: { type: string } }
14821
+ - { name: profileId, in: query, schema: { type: string }, description: Filter by profile. Omit to list across all profiles }
14814
14822
  - { name: status, in: query, schema: { type: string, enum: [draft, scheduled, sending, completed, failed, cancelled] } }
14815
14823
  - { name: platform, in: query, schema: { type: string } }
14816
14824
  - { name: limit, in: query, schema: { type: integer, default: 50 } }
@@ -14978,7 +14986,7 @@ paths:
14978
14986
  summary: List sequences
14979
14987
  tags: [Sequences]
14980
14988
  parameters:
14981
- - { name: profileId, in: query, required: true, schema: { type: string } }
14989
+ - { name: profileId, in: query, schema: { type: string }, description: Filter by profile. Omit to list across all profiles }
14982
14990
  - { name: status, in: query, schema: { type: string, enum: [draft, active, paused] } }
14983
14991
  - { name: limit, in: query, schema: { type: integer, default: 50 } }
14984
14992
  - { name: skip, in: query, schema: { type: integer, default: 0 } }
@@ -15139,7 +15147,7 @@ paths:
15139
15147
  security:
15140
15148
  - bearerAuth: []
15141
15149
  parameters:
15142
- - { name: profileId, in: query, required: true, schema: { type: string }, description: Profile ID }
15150
+ - { name: profileId, in: query, schema: { type: string }, description: Filter by profile. Omit to list across all profiles }
15143
15151
  responses:
15144
15152
  '200':
15145
15153
  description: Automations list
@@ -39,6 +39,7 @@ describe 'AnalyticsApi' do
39
39
  # @option opts [String] :post_id Returns analytics for a single post. Accepts both Zernio Post IDs and External Post IDs. Zernio IDs are auto-resolved to External Post analytics.
40
40
  # @option opts [String] :platform Filter by platform (default \&quot;all\&quot;)
41
41
  # @option opts [String] :profile_id Filter by profile ID (default \&quot;all\&quot;)
42
+ # @option opts [String] :account_id Filter by social account ID
42
43
  # @option opts [String] :source Filter by post source: late (posted via Zernio API), external (synced from platform), all (default)
43
44
  # @option opts [Date] :from_date Inclusive lower bound (YYYY-MM-DD). Defaults to 90 days ago if omitted. Max range is 366 days.
44
45
  # @option opts [Date] :to_date Inclusive upper bound (YYYY-MM-DD). Defaults to today if omitted.
@@ -87,6 +88,7 @@ describe 'AnalyticsApi' do
87
88
  # @param [Hash] opts the optional parameters
88
89
  # @option opts [String] :platform Filter by platform (e.g. \&quot;instagram\&quot;, \&quot;tiktok\&quot;). Omit for all platforms.
89
90
  # @option opts [String] :profile_id Filter by profile ID. Omit for all profiles.
91
+ # @option opts [String] :account_id Filter by social account ID
90
92
  # @option opts [Time] :from_date Inclusive start date (ISO 8601). Defaults to 180 days ago.
91
93
  # @option opts [Time] :to_date Inclusive end date (ISO 8601). Defaults to now.
92
94
  # @option opts [String] :source Filter by post origin. \&quot;late\&quot; for posts published via Zernio, \&quot;external\&quot; for posts imported from platforms.
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zernio-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.69
4
+ version: 0.0.71
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator