late-sdk 0.0.62 → 0.0.64
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/README.md +6 -0
- data/docs/AccountsApi.md +74 -0
- data/docs/GetTikTokCreatorInfo200Response.md +24 -0
- data/docs/GetTikTokCreatorInfo200ResponseCommercialContentTypesInner.md +22 -0
- data/docs/GetTikTokCreatorInfo200ResponseCreator.md +24 -0
- data/docs/GetTikTokCreatorInfo200ResponsePostingLimits.md +20 -0
- data/docs/GetTikTokCreatorInfo200ResponsePrivacyLevelsInner.md +20 -0
- data/docs/TikTokPlatformData.md +3 -1
- data/lib/late-sdk/api/accounts_api.rb +70 -0
- data/lib/late-sdk/models/get_tik_tok_creator_info200_response.rb +180 -0
- data/lib/late-sdk/models/get_tik_tok_creator_info200_response_commercial_content_types_inner.rb +167 -0
- data/lib/late-sdk/models/get_tik_tok_creator_info200_response_creator.rb +178 -0
- data/lib/late-sdk/models/get_tik_tok_creator_info200_response_posting_limits.rb +158 -0
- data/lib/late-sdk/models/get_tik_tok_creator_info200_response_privacy_levels_inner.rb +158 -0
- data/lib/late-sdk/models/tik_tok_platform_data.rb +12 -2
- data/lib/late-sdk/version.rb +1 -1
- data/lib/late-sdk.rb +5 -0
- data/openapi.yaml +113 -1
- data/spec/api/accounts_api_spec.rb +13 -0
- data/spec/models/get_tik_tok_creator_info200_response_commercial_content_types_inner_spec.rb +48 -0
- data/spec/models/get_tik_tok_creator_info200_response_creator_spec.rb +54 -0
- data/spec/models/get_tik_tok_creator_info200_response_posting_limits_spec.rb +42 -0
- data/spec/models/get_tik_tok_creator_info200_response_privacy_levels_inner_spec.rb +42 -0
- data/spec/models/get_tik_tok_creator_info200_response_spec.rb +54 -0
- data/spec/models/tik_tok_platform_data_spec.rb +6 -0
- data/zernio-sdk-0.0.64.gem +0 -0
- metadata +23 -3
- data/zernio-sdk-0.0.62.gem +0 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Late
|
|
17
|
+
class GetTikTokCreatorInfo200ResponseCreator < ApiModelBase
|
|
18
|
+
# Creator display name
|
|
19
|
+
attr_accessor :nickname
|
|
20
|
+
|
|
21
|
+
# Creator avatar URL
|
|
22
|
+
attr_accessor :avatar_url
|
|
23
|
+
|
|
24
|
+
# Whether the creator is verified
|
|
25
|
+
attr_accessor :is_verified
|
|
26
|
+
|
|
27
|
+
# Whether the creator can publish more posts right now
|
|
28
|
+
attr_accessor :can_post_more
|
|
29
|
+
|
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'nickname' => :'nickname',
|
|
34
|
+
:'avatar_url' => :'avatarUrl',
|
|
35
|
+
:'is_verified' => :'isVerified',
|
|
36
|
+
:'can_post_more' => :'canPostMore'
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Returns attribute mapping this model knows about
|
|
41
|
+
def self.acceptable_attribute_map
|
|
42
|
+
attribute_map
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Returns all the JSON keys this model knows about
|
|
46
|
+
def self.acceptable_attributes
|
|
47
|
+
acceptable_attribute_map.values
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Attribute type mapping.
|
|
51
|
+
def self.openapi_types
|
|
52
|
+
{
|
|
53
|
+
:'nickname' => :'String',
|
|
54
|
+
:'avatar_url' => :'String',
|
|
55
|
+
:'is_verified' => :'Boolean',
|
|
56
|
+
:'can_post_more' => :'Boolean'
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# List of attributes with nullable: true
|
|
61
|
+
def self.openapi_nullable
|
|
62
|
+
Set.new([
|
|
63
|
+
])
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Initializes the object
|
|
67
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
68
|
+
def initialize(attributes = {})
|
|
69
|
+
if (!attributes.is_a?(Hash))
|
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Late::GetTikTokCreatorInfo200ResponseCreator` initialize method"
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
74
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
75
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
76
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Late::GetTikTokCreatorInfo200ResponseCreator`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
78
|
+
end
|
|
79
|
+
h[k.to_sym] = v
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'nickname')
|
|
83
|
+
self.nickname = attributes[:'nickname']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'avatar_url')
|
|
87
|
+
self.avatar_url = attributes[:'avatar_url']
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'is_verified')
|
|
91
|
+
self.is_verified = attributes[:'is_verified']
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'can_post_more')
|
|
95
|
+
self.can_post_more = attributes[:'can_post_more']
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
100
|
+
# @return Array for valid properties with the reasons
|
|
101
|
+
def list_invalid_properties
|
|
102
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
103
|
+
invalid_properties = Array.new
|
|
104
|
+
invalid_properties
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Check to see if the all the properties in the model are valid
|
|
108
|
+
# @return true if the model is valid
|
|
109
|
+
def valid?
|
|
110
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
111
|
+
true
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Checks equality by comparing each attribute.
|
|
115
|
+
# @param [Object] Object to be compared
|
|
116
|
+
def ==(o)
|
|
117
|
+
return true if self.equal?(o)
|
|
118
|
+
self.class == o.class &&
|
|
119
|
+
nickname == o.nickname &&
|
|
120
|
+
avatar_url == o.avatar_url &&
|
|
121
|
+
is_verified == o.is_verified &&
|
|
122
|
+
can_post_more == o.can_post_more
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# @see the `==` method
|
|
126
|
+
# @param [Object] Object to be compared
|
|
127
|
+
def eql?(o)
|
|
128
|
+
self == o
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Calculates hash code according to all attributes.
|
|
132
|
+
# @return [Integer] Hash code
|
|
133
|
+
def hash
|
|
134
|
+
[nickname, avatar_url, is_verified, can_post_more].hash
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Builds the object from hash
|
|
138
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
139
|
+
# @return [Object] Returns the model itself
|
|
140
|
+
def self.build_from_hash(attributes)
|
|
141
|
+
return nil unless attributes.is_a?(Hash)
|
|
142
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
143
|
+
transformed_hash = {}
|
|
144
|
+
openapi_types.each_pair do |key, type|
|
|
145
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
146
|
+
transformed_hash["#{key}"] = nil
|
|
147
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
148
|
+
# check to ensure the input is an array given that the attribute
|
|
149
|
+
# is documented as an array but the input is not
|
|
150
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
151
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
152
|
+
end
|
|
153
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
154
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
new(transformed_hash)
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Returns the object in the form of hash
|
|
161
|
+
# @return [Hash] Returns the object in the form of hash
|
|
162
|
+
def to_hash
|
|
163
|
+
hash = {}
|
|
164
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
165
|
+
value = self.send(attr)
|
|
166
|
+
if value.nil?
|
|
167
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
168
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
hash[param] = _to_hash(value)
|
|
172
|
+
end
|
|
173
|
+
hash
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
end
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Late
|
|
17
|
+
class GetTikTokCreatorInfo200ResponsePostingLimits < ApiModelBase
|
|
18
|
+
# Maximum video duration in seconds
|
|
19
|
+
attr_accessor :max_video_duration_sec
|
|
20
|
+
|
|
21
|
+
# Available interaction toggles (comment, duet, stitch) and their defaults
|
|
22
|
+
attr_accessor :interaction_settings
|
|
23
|
+
|
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
+
def self.attribute_map
|
|
26
|
+
{
|
|
27
|
+
:'max_video_duration_sec' => :'maxVideoDurationSec',
|
|
28
|
+
:'interaction_settings' => :'interactionSettings'
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Returns attribute mapping this model knows about
|
|
33
|
+
def self.acceptable_attribute_map
|
|
34
|
+
attribute_map
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Returns all the JSON keys this model knows about
|
|
38
|
+
def self.acceptable_attributes
|
|
39
|
+
acceptable_attribute_map.values
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Attribute type mapping.
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'max_video_duration_sec' => :'Integer',
|
|
46
|
+
:'interaction_settings' => :'Object'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# List of attributes with nullable: true
|
|
51
|
+
def self.openapi_nullable
|
|
52
|
+
Set.new([
|
|
53
|
+
])
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Initializes the object
|
|
57
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
58
|
+
def initialize(attributes = {})
|
|
59
|
+
if (!attributes.is_a?(Hash))
|
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Late::GetTikTokCreatorInfo200ResponsePostingLimits` initialize method"
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
64
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Late::GetTikTokCreatorInfo200ResponsePostingLimits`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
68
|
+
end
|
|
69
|
+
h[k.to_sym] = v
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'max_video_duration_sec')
|
|
73
|
+
self.max_video_duration_sec = attributes[:'max_video_duration_sec']
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
if attributes.key?(:'interaction_settings')
|
|
77
|
+
self.interaction_settings = attributes[:'interaction_settings']
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
82
|
+
# @return Array for valid properties with the reasons
|
|
83
|
+
def list_invalid_properties
|
|
84
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
85
|
+
invalid_properties = Array.new
|
|
86
|
+
invalid_properties
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Check to see if the all the properties in the model are valid
|
|
90
|
+
# @return true if the model is valid
|
|
91
|
+
def valid?
|
|
92
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
93
|
+
true
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Checks equality by comparing each attribute.
|
|
97
|
+
# @param [Object] Object to be compared
|
|
98
|
+
def ==(o)
|
|
99
|
+
return true if self.equal?(o)
|
|
100
|
+
self.class == o.class &&
|
|
101
|
+
max_video_duration_sec == o.max_video_duration_sec &&
|
|
102
|
+
interaction_settings == o.interaction_settings
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# @see the `==` method
|
|
106
|
+
# @param [Object] Object to be compared
|
|
107
|
+
def eql?(o)
|
|
108
|
+
self == o
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Calculates hash code according to all attributes.
|
|
112
|
+
# @return [Integer] Hash code
|
|
113
|
+
def hash
|
|
114
|
+
[max_video_duration_sec, interaction_settings].hash
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Builds the object from hash
|
|
118
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
119
|
+
# @return [Object] Returns the model itself
|
|
120
|
+
def self.build_from_hash(attributes)
|
|
121
|
+
return nil unless attributes.is_a?(Hash)
|
|
122
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
123
|
+
transformed_hash = {}
|
|
124
|
+
openapi_types.each_pair do |key, type|
|
|
125
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
126
|
+
transformed_hash["#{key}"] = nil
|
|
127
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
128
|
+
# check to ensure the input is an array given that the attribute
|
|
129
|
+
# is documented as an array but the input is not
|
|
130
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
131
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
132
|
+
end
|
|
133
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
134
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
new(transformed_hash)
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Returns the object in the form of hash
|
|
141
|
+
# @return [Hash] Returns the object in the form of hash
|
|
142
|
+
def to_hash
|
|
143
|
+
hash = {}
|
|
144
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
145
|
+
value = self.send(attr)
|
|
146
|
+
if value.nil?
|
|
147
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
148
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
hash[param] = _to_hash(value)
|
|
152
|
+
end
|
|
153
|
+
hash
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
end
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Late
|
|
17
|
+
class GetTikTokCreatorInfo200ResponsePrivacyLevelsInner < ApiModelBase
|
|
18
|
+
# Privacy level value to use when creating posts (e.g. PUBLIC_TO_EVERYONE, MUTUAL_FOLLOW_FRIENDS, FOLLOWER_OF_CREATOR, SELF_ONLY)
|
|
19
|
+
attr_accessor :value
|
|
20
|
+
|
|
21
|
+
# Human-readable label
|
|
22
|
+
attr_accessor :label
|
|
23
|
+
|
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
+
def self.attribute_map
|
|
26
|
+
{
|
|
27
|
+
:'value' => :'value',
|
|
28
|
+
:'label' => :'label'
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Returns attribute mapping this model knows about
|
|
33
|
+
def self.acceptable_attribute_map
|
|
34
|
+
attribute_map
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Returns all the JSON keys this model knows about
|
|
38
|
+
def self.acceptable_attributes
|
|
39
|
+
acceptable_attribute_map.values
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Attribute type mapping.
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'value' => :'String',
|
|
46
|
+
:'label' => :'String'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# List of attributes with nullable: true
|
|
51
|
+
def self.openapi_nullable
|
|
52
|
+
Set.new([
|
|
53
|
+
])
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Initializes the object
|
|
57
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
58
|
+
def initialize(attributes = {})
|
|
59
|
+
if (!attributes.is_a?(Hash))
|
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Late::GetTikTokCreatorInfo200ResponsePrivacyLevelsInner` initialize method"
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
64
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Late::GetTikTokCreatorInfo200ResponsePrivacyLevelsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
68
|
+
end
|
|
69
|
+
h[k.to_sym] = v
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'value')
|
|
73
|
+
self.value = attributes[:'value']
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
if attributes.key?(:'label')
|
|
77
|
+
self.label = attributes[:'label']
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
82
|
+
# @return Array for valid properties with the reasons
|
|
83
|
+
def list_invalid_properties
|
|
84
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
85
|
+
invalid_properties = Array.new
|
|
86
|
+
invalid_properties
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Check to see if the all the properties in the model are valid
|
|
90
|
+
# @return true if the model is valid
|
|
91
|
+
def valid?
|
|
92
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
93
|
+
true
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Checks equality by comparing each attribute.
|
|
97
|
+
# @param [Object] Object to be compared
|
|
98
|
+
def ==(o)
|
|
99
|
+
return true if self.equal?(o)
|
|
100
|
+
self.class == o.class &&
|
|
101
|
+
value == o.value &&
|
|
102
|
+
label == o.label
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# @see the `==` method
|
|
106
|
+
# @param [Object] Object to be compared
|
|
107
|
+
def eql?(o)
|
|
108
|
+
self == o
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Calculates hash code according to all attributes.
|
|
112
|
+
# @return [Integer] Hash code
|
|
113
|
+
def hash
|
|
114
|
+
[value, label].hash
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Builds the object from hash
|
|
118
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
119
|
+
# @return [Object] Returns the model itself
|
|
120
|
+
def self.build_from_hash(attributes)
|
|
121
|
+
return nil unless attributes.is_a?(Hash)
|
|
122
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
123
|
+
transformed_hash = {}
|
|
124
|
+
openapi_types.each_pair do |key, type|
|
|
125
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
126
|
+
transformed_hash["#{key}"] = nil
|
|
127
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
128
|
+
# check to ensure the input is an array given that the attribute
|
|
129
|
+
# is documented as an array but the input is not
|
|
130
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
131
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
132
|
+
end
|
|
133
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
134
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
new(transformed_hash)
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Returns the object in the form of hash
|
|
141
|
+
# @return [Hash] Returns the object in the form of hash
|
|
142
|
+
def to_hash
|
|
143
|
+
hash = {}
|
|
144
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
145
|
+
value = self.send(attr)
|
|
146
|
+
if value.nil?
|
|
147
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
148
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
hash[param] = _to_hash(value)
|
|
152
|
+
end
|
|
153
|
+
hash
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
end
|
|
@@ -49,9 +49,12 @@ module Late
|
|
|
49
49
|
# Optional override. Defaults based on provided media items.
|
|
50
50
|
attr_accessor :media_type
|
|
51
51
|
|
|
52
|
-
# Optional for video posts. Timestamp in milliseconds to select which frame to use as thumbnail (defaults to 1000ms/1 second).
|
|
52
|
+
# Optional for video posts. Timestamp in milliseconds to select which frame to use as thumbnail (defaults to 1000ms/1 second). Ignored when videoCoverImageUrl is provided.
|
|
53
53
|
attr_accessor :video_cover_timestamp_ms
|
|
54
54
|
|
|
55
|
+
# Optional for video posts. URL of a custom thumbnail image (JPG, PNG, or WebP, max 20MB). The image is prepended as a 1-second still frame to the video and used as the cover. Overrides videoCoverTimestampMs when provided.
|
|
56
|
+
attr_accessor :video_cover_image_url
|
|
57
|
+
|
|
55
58
|
# Optional for photo carousels. Index of image to use as cover, 0-based (defaults to 0/first image).
|
|
56
59
|
attr_accessor :photo_cover_index
|
|
57
60
|
|
|
@@ -101,6 +104,7 @@ module Late
|
|
|
101
104
|
:'express_consent_given' => :'expressConsentGiven',
|
|
102
105
|
:'media_type' => :'mediaType',
|
|
103
106
|
:'video_cover_timestamp_ms' => :'videoCoverTimestampMs',
|
|
107
|
+
:'video_cover_image_url' => :'videoCoverImageUrl',
|
|
104
108
|
:'photo_cover_index' => :'photoCoverIndex',
|
|
105
109
|
:'auto_add_music' => :'autoAddMusic',
|
|
106
110
|
:'video_made_with_ai' => :'videoMadeWithAi',
|
|
@@ -133,6 +137,7 @@ module Late
|
|
|
133
137
|
:'express_consent_given' => :'Boolean',
|
|
134
138
|
:'media_type' => :'String',
|
|
135
139
|
:'video_cover_timestamp_ms' => :'Integer',
|
|
140
|
+
:'video_cover_image_url' => :'String',
|
|
136
141
|
:'photo_cover_index' => :'Integer',
|
|
137
142
|
:'auto_add_music' => :'Boolean',
|
|
138
143
|
:'video_made_with_ai' => :'Boolean',
|
|
@@ -210,6 +215,10 @@ module Late
|
|
|
210
215
|
self.video_cover_timestamp_ms = attributes[:'video_cover_timestamp_ms']
|
|
211
216
|
end
|
|
212
217
|
|
|
218
|
+
if attributes.key?(:'video_cover_image_url')
|
|
219
|
+
self.video_cover_image_url = attributes[:'video_cover_image_url']
|
|
220
|
+
end
|
|
221
|
+
|
|
213
222
|
if attributes.key?(:'photo_cover_index')
|
|
214
223
|
self.photo_cover_index = attributes[:'photo_cover_index']
|
|
215
224
|
end
|
|
@@ -340,6 +349,7 @@ module Late
|
|
|
340
349
|
express_consent_given == o.express_consent_given &&
|
|
341
350
|
media_type == o.media_type &&
|
|
342
351
|
video_cover_timestamp_ms == o.video_cover_timestamp_ms &&
|
|
352
|
+
video_cover_image_url == o.video_cover_image_url &&
|
|
343
353
|
photo_cover_index == o.photo_cover_index &&
|
|
344
354
|
auto_add_music == o.auto_add_music &&
|
|
345
355
|
video_made_with_ai == o.video_made_with_ai &&
|
|
@@ -355,7 +365,7 @@ module Late
|
|
|
355
365
|
# Calculates hash code according to all attributes.
|
|
356
366
|
# @return [Integer] Hash code
|
|
357
367
|
def hash
|
|
358
|
-
[draft, privacy_level, allow_comment, allow_duet, allow_stitch, commercial_content_type, brand_partner_promote, is_brand_organic_post, content_preview_confirmed, express_consent_given, media_type, video_cover_timestamp_ms, photo_cover_index, auto_add_music, video_made_with_ai, description].hash
|
|
368
|
+
[draft, privacy_level, allow_comment, allow_duet, allow_stitch, commercial_content_type, brand_partner_promote, is_brand_organic_post, content_preview_confirmed, express_consent_given, media_type, video_cover_timestamp_ms, video_cover_image_url, photo_cover_index, auto_add_music, video_made_with_ai, description].hash
|
|
359
369
|
end
|
|
360
370
|
|
|
361
371
|
# Builds the object from hash
|
data/lib/late-sdk/version.rb
CHANGED
data/lib/late-sdk.rb
CHANGED
|
@@ -233,6 +233,11 @@ require 'late-sdk/models/get_reddit_subreddits200_response_subreddits_inner'
|
|
|
233
233
|
require 'late-sdk/models/get_telegram_commands200_response'
|
|
234
234
|
require 'late-sdk/models/get_telegram_commands200_response_data_inner'
|
|
235
235
|
require 'late-sdk/models/get_telegram_connect_status200_response'
|
|
236
|
+
require 'late-sdk/models/get_tik_tok_creator_info200_response'
|
|
237
|
+
require 'late-sdk/models/get_tik_tok_creator_info200_response_commercial_content_types_inner'
|
|
238
|
+
require 'late-sdk/models/get_tik_tok_creator_info200_response_creator'
|
|
239
|
+
require 'late-sdk/models/get_tik_tok_creator_info200_response_posting_limits'
|
|
240
|
+
require 'late-sdk/models/get_tik_tok_creator_info200_response_privacy_levels_inner'
|
|
236
241
|
require 'late-sdk/models/get_user200_response'
|
|
237
242
|
require 'late-sdk/models/get_user200_response_user'
|
|
238
243
|
require 'late-sdk/models/get_webhook_logs200_response'
|