late-sdk 0.0.106 → 0.0.107
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/AccountsApi.md +6 -2
- data/docs/ListAccounts200Response.md +3 -1
- data/lib/late-sdk/api/accounts_api.rb +20 -2
- data/lib/late-sdk/models/list_accounts200_response.rb +14 -4
- data/lib/late-sdk/version.rb +1 -1
- data/openapi.yaml +15 -2
- data/spec/api/accounts_api_spec.rb +3 -1
- data/spec/models/list_accounts200_response_spec.rb +6 -0
- data/zernio-sdk-0.0.107.gem +0 -0
- metadata +2 -2
- data/zernio-sdk-0.0.106.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aee20626ac09dfd755a390760844d8860f88d985f7eab003175246bc16ee440f
|
|
4
|
+
data.tar.gz: 606406f5236873e8db7a2727857d030e4fddafc1655eac8ab133d69e2821237e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9ae78f3924603a160ac63c68b0a5f548d67686ba0199066d94537a6debfd9fb2095a92d463a6467d3fc638425b8faa1a62922666662e1bed846554800156b319
|
|
7
|
+
data.tar.gz: 1a788ae52c25c5cf9c77b3645d1bd9311ad43a681e4a0601eb0a370bde926c5df2dc048cb2548958f8a5833e8669ece88b5de0ea4e8613250ec43ee1d7bcadbc
|
data/docs/AccountsApi.md
CHANGED
|
@@ -384,7 +384,7 @@ end
|
|
|
384
384
|
|
|
385
385
|
List accounts
|
|
386
386
|
|
|
387
|
-
Returns connected social accounts. Only includes accounts within the plan limit by default. Follower data requires analytics add-on.
|
|
387
|
+
Returns connected social accounts. Only includes accounts within the plan limit by default. Follower data requires analytics add-on. Supports optional server-side pagination via page/limit params. When omitted, returns all accounts (backward-compatible).
|
|
388
388
|
|
|
389
389
|
### Examples
|
|
390
390
|
|
|
@@ -401,7 +401,9 @@ api_instance = Late::AccountsApi.new
|
|
|
401
401
|
opts = {
|
|
402
402
|
profile_id: 'profile_id_example', # String | Filter accounts by profile ID
|
|
403
403
|
platform: 'platform_example', # String | Filter accounts by platform (e.g. \"instagram\", \"twitter\").
|
|
404
|
-
include_over_limit: true # Boolean | When true, includes accounts from over-limit profiles.
|
|
404
|
+
include_over_limit: true, # Boolean | When true, includes accounts from over-limit profiles.
|
|
405
|
+
page: 56, # Integer | Page number (1-based). When provided with limit, enables server-side pagination. Omit for all accounts.
|
|
406
|
+
limit: 56 # Integer | Page size. Required alongside page for pagination.
|
|
405
407
|
}
|
|
406
408
|
|
|
407
409
|
begin
|
|
@@ -438,6 +440,8 @@ end
|
|
|
438
440
|
| **profile_id** | **String** | Filter accounts by profile ID | [optional] |
|
|
439
441
|
| **platform** | **String** | Filter accounts by platform (e.g. \"instagram\", \"twitter\"). | [optional] |
|
|
440
442
|
| **include_over_limit** | **Boolean** | When true, includes accounts from over-limit profiles. | [optional][default to false] |
|
|
443
|
+
| **page** | **Integer** | Page number (1-based). When provided with limit, enables server-side pagination. Omit for all accounts. | [optional] |
|
|
444
|
+
| **limit** | **Integer** | Page size. Required alongside page for pagination. | [optional] |
|
|
441
445
|
|
|
442
446
|
### Return type
|
|
443
447
|
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **accounts** | [**Array<SocialAccount>**](SocialAccount.md) | | [optional] |
|
|
8
8
|
| **has_analytics_access** | **Boolean** | Whether user has analytics add-on access | [optional] |
|
|
9
|
+
| **pagination** | [**Pagination**](Pagination.md) | Only present when page/limit params are provided | [optional] |
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
@@ -14,7 +15,8 @@ require 'late-sdk'
|
|
|
14
15
|
|
|
15
16
|
instance = Late::ListAccounts200Response.new(
|
|
16
17
|
accounts: null,
|
|
17
|
-
has_analytics_access: null
|
|
18
|
+
has_analytics_access: null,
|
|
19
|
+
pagination: null
|
|
18
20
|
)
|
|
19
21
|
```
|
|
20
22
|
|
|
@@ -366,11 +366,13 @@ module Late
|
|
|
366
366
|
end
|
|
367
367
|
|
|
368
368
|
# List accounts
|
|
369
|
-
# Returns connected social accounts. Only includes accounts within the plan limit by default. Follower data requires analytics add-on.
|
|
369
|
+
# Returns connected social accounts. Only includes accounts within the plan limit by default. Follower data requires analytics add-on. Supports optional server-side pagination via page/limit params. When omitted, returns all accounts (backward-compatible).
|
|
370
370
|
# @param [Hash] opts the optional parameters
|
|
371
371
|
# @option opts [String] :profile_id Filter accounts by profile ID
|
|
372
372
|
# @option opts [String] :platform Filter accounts by platform (e.g. \"instagram\", \"twitter\").
|
|
373
373
|
# @option opts [Boolean] :include_over_limit When true, includes accounts from over-limit profiles. (default to false)
|
|
374
|
+
# @option opts [Integer] :page Page number (1-based). When provided with limit, enables server-side pagination. Omit for all accounts.
|
|
375
|
+
# @option opts [Integer] :limit Page size. Required alongside page for pagination.
|
|
374
376
|
# @return [ListAccounts200Response]
|
|
375
377
|
def list_accounts(opts = {})
|
|
376
378
|
data, _status_code, _headers = list_accounts_with_http_info(opts)
|
|
@@ -378,16 +380,30 @@ module Late
|
|
|
378
380
|
end
|
|
379
381
|
|
|
380
382
|
# List accounts
|
|
381
|
-
# Returns connected social accounts. Only includes accounts within the plan limit by default. Follower data requires analytics add-on.
|
|
383
|
+
# Returns connected social accounts. Only includes accounts within the plan limit by default. Follower data requires analytics add-on. Supports optional server-side pagination via page/limit params. When omitted, returns all accounts (backward-compatible).
|
|
382
384
|
# @param [Hash] opts the optional parameters
|
|
383
385
|
# @option opts [String] :profile_id Filter accounts by profile ID
|
|
384
386
|
# @option opts [String] :platform Filter accounts by platform (e.g. \"instagram\", \"twitter\").
|
|
385
387
|
# @option opts [Boolean] :include_over_limit When true, includes accounts from over-limit profiles. (default to false)
|
|
388
|
+
# @option opts [Integer] :page Page number (1-based). When provided with limit, enables server-side pagination. Omit for all accounts.
|
|
389
|
+
# @option opts [Integer] :limit Page size. Required alongside page for pagination.
|
|
386
390
|
# @return [Array<(ListAccounts200Response, Integer, Hash)>] ListAccounts200Response data, response status code and response headers
|
|
387
391
|
def list_accounts_with_http_info(opts = {})
|
|
388
392
|
if @api_client.config.debugging
|
|
389
393
|
@api_client.config.logger.debug 'Calling API: AccountsApi.list_accounts ...'
|
|
390
394
|
end
|
|
395
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
396
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling AccountsApi.list_accounts, must be greater than or equal to 1.'
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
400
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AccountsApi.list_accounts, must be smaller than or equal to 100.'
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
404
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AccountsApi.list_accounts, must be greater than or equal to 1.'
|
|
405
|
+
end
|
|
406
|
+
|
|
391
407
|
# resource path
|
|
392
408
|
local_var_path = '/v1/accounts'
|
|
393
409
|
|
|
@@ -396,6 +412,8 @@ module Late
|
|
|
396
412
|
query_params[:'profileId'] = opts[:'profile_id'] if !opts[:'profile_id'].nil?
|
|
397
413
|
query_params[:'platform'] = opts[:'platform'] if !opts[:'platform'].nil?
|
|
398
414
|
query_params[:'includeOverLimit'] = opts[:'include_over_limit'] if !opts[:'include_over_limit'].nil?
|
|
415
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
416
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
399
417
|
|
|
400
418
|
# header parameters
|
|
401
419
|
header_params = opts[:header_params] || {}
|
|
@@ -20,11 +20,15 @@ module Late
|
|
|
20
20
|
# Whether user has analytics add-on access
|
|
21
21
|
attr_accessor :has_analytics_access
|
|
22
22
|
|
|
23
|
+
# Only present when page/limit params are provided
|
|
24
|
+
attr_accessor :pagination
|
|
25
|
+
|
|
23
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
24
27
|
def self.attribute_map
|
|
25
28
|
{
|
|
26
29
|
:'accounts' => :'accounts',
|
|
27
|
-
:'has_analytics_access' => :'hasAnalyticsAccess'
|
|
30
|
+
:'has_analytics_access' => :'hasAnalyticsAccess',
|
|
31
|
+
:'pagination' => :'pagination'
|
|
28
32
|
}
|
|
29
33
|
end
|
|
30
34
|
|
|
@@ -42,7 +46,8 @@ module Late
|
|
|
42
46
|
def self.openapi_types
|
|
43
47
|
{
|
|
44
48
|
:'accounts' => :'Array<SocialAccount>',
|
|
45
|
-
:'has_analytics_access' => :'Boolean'
|
|
49
|
+
:'has_analytics_access' => :'Boolean',
|
|
50
|
+
:'pagination' => :'Pagination'
|
|
46
51
|
}
|
|
47
52
|
end
|
|
48
53
|
|
|
@@ -77,6 +82,10 @@ module Late
|
|
|
77
82
|
if attributes.key?(:'has_analytics_access')
|
|
78
83
|
self.has_analytics_access = attributes[:'has_analytics_access']
|
|
79
84
|
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'pagination')
|
|
87
|
+
self.pagination = attributes[:'pagination']
|
|
88
|
+
end
|
|
80
89
|
end
|
|
81
90
|
|
|
82
91
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -100,7 +109,8 @@ module Late
|
|
|
100
109
|
return true if self.equal?(o)
|
|
101
110
|
self.class == o.class &&
|
|
102
111
|
accounts == o.accounts &&
|
|
103
|
-
has_analytics_access == o.has_analytics_access
|
|
112
|
+
has_analytics_access == o.has_analytics_access &&
|
|
113
|
+
pagination == o.pagination
|
|
104
114
|
end
|
|
105
115
|
|
|
106
116
|
# @see the `==` method
|
|
@@ -112,7 +122,7 @@ module Late
|
|
|
112
122
|
# Calculates hash code according to all attributes.
|
|
113
123
|
# @return [Integer] Hash code
|
|
114
124
|
def hash
|
|
115
|
-
[accounts, has_analytics_access].hash
|
|
125
|
+
[accounts, has_analytics_access, pagination].hash
|
|
116
126
|
end
|
|
117
127
|
|
|
118
128
|
# Builds the object from hash
|
data/lib/late-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -5760,7 +5760,9 @@ paths:
|
|
|
5760
5760
|
operationId: listAccounts
|
|
5761
5761
|
tags: [Accounts]
|
|
5762
5762
|
summary: List accounts
|
|
5763
|
-
description:
|
|
5763
|
+
description: |
|
|
5764
|
+
Returns connected social accounts. Only includes accounts within the plan limit by default. Follower data requires analytics add-on.
|
|
5765
|
+
Supports optional server-side pagination via page/limit params. When omitted, returns all accounts (backward-compatible).
|
|
5764
5766
|
parameters:
|
|
5765
5767
|
- name: profileId
|
|
5766
5768
|
in: query
|
|
@@ -5777,9 +5779,17 @@ paths:
|
|
|
5777
5779
|
type: boolean
|
|
5778
5780
|
default: false
|
|
5779
5781
|
description: When true, includes accounts from over-limit profiles.
|
|
5782
|
+
- name: page
|
|
5783
|
+
in: query
|
|
5784
|
+
schema: { type: integer, minimum: 1 }
|
|
5785
|
+
description: Page number (1-based). When provided with limit, enables server-side pagination. Omit for all accounts.
|
|
5786
|
+
- name: limit
|
|
5787
|
+
in: query
|
|
5788
|
+
schema: { type: integer, minimum: 1, maximum: 100 }
|
|
5789
|
+
description: Page size. Required alongside page for pagination.
|
|
5780
5790
|
responses:
|
|
5781
5791
|
'200':
|
|
5782
|
-
description: Accounts
|
|
5792
|
+
description: Accounts (with optional pagination)
|
|
5783
5793
|
content:
|
|
5784
5794
|
application/json:
|
|
5785
5795
|
schema:
|
|
@@ -5791,6 +5801,9 @@ paths:
|
|
|
5791
5801
|
hasAnalyticsAccess:
|
|
5792
5802
|
type: boolean
|
|
5793
5803
|
description: Whether user has analytics add-on access
|
|
5804
|
+
pagination:
|
|
5805
|
+
description: Only present when page/limit params are provided
|
|
5806
|
+
$ref: '#/components/schemas/Pagination'
|
|
5794
5807
|
examples:
|
|
5795
5808
|
example:
|
|
5796
5809
|
value:
|
|
@@ -101,11 +101,13 @@ describe 'AccountsApi' do
|
|
|
101
101
|
|
|
102
102
|
# unit tests for list_accounts
|
|
103
103
|
# List accounts
|
|
104
|
-
# Returns connected social accounts. Only includes accounts within the plan limit by default. Follower data requires analytics add-on.
|
|
104
|
+
# Returns connected social accounts. Only includes accounts within the plan limit by default. Follower data requires analytics add-on. Supports optional server-side pagination via page/limit params. When omitted, returns all accounts (backward-compatible).
|
|
105
105
|
# @param [Hash] opts the optional parameters
|
|
106
106
|
# @option opts [String] :profile_id Filter accounts by profile ID
|
|
107
107
|
# @option opts [String] :platform Filter accounts by platform (e.g. \"instagram\", \"twitter\").
|
|
108
108
|
# @option opts [Boolean] :include_over_limit When true, includes accounts from over-limit profiles.
|
|
109
|
+
# @option opts [Integer] :page Page number (1-based). When provided with limit, enables server-side pagination. Omit for all accounts.
|
|
110
|
+
# @option opts [Integer] :limit Page size. Required alongside page for pagination.
|
|
109
111
|
# @return [ListAccounts200Response]
|
|
110
112
|
describe 'list_accounts test' do
|
|
111
113
|
it 'should work' do
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: late-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.107
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -2313,7 +2313,7 @@ files:
|
|
|
2313
2313
|
- spec/models/you_tube_scope_missing_response_scope_status_spec.rb
|
|
2314
2314
|
- spec/models/you_tube_scope_missing_response_spec.rb
|
|
2315
2315
|
- spec/spec_helper.rb
|
|
2316
|
-
- zernio-sdk-0.0.
|
|
2316
|
+
- zernio-sdk-0.0.107.gem
|
|
2317
2317
|
homepage: https://openapi-generator.tech
|
|
2318
2318
|
licenses:
|
|
2319
2319
|
- Unlicense
|
data/zernio-sdk-0.0.106.gem
DELETED
|
Binary file
|