late-sdk 0.0.910 → 0.0.912
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 +3 -0
- data/docs/CreateCommentAutomationRequest.md +1 -1
- data/docs/DownloadTikTokVideo200Response.md +30 -0
- data/docs/DownloadTikTokVideo200ResponseFormatsInner.md +34 -0
- data/docs/GetInboxPostComments200ResponseCommentsInner.md +1 -1
- data/docs/LeadGenApi.md +2 -2
- data/docs/LikeInboxComment200Response.md +4 -0
- data/docs/LikePost200Response.md +5 -1
- data/docs/ToolsApi.md +83 -0
- data/lib/zernio-sdk/api/lead_gen_api.rb +10 -2
- data/lib/zernio-sdk/api/tools_api.rb +96 -0
- data/lib/zernio-sdk/models/create_comment_automation_request.rb +22 -1
- data/lib/zernio-sdk/models/download_tik_tok_video200_response.rb +242 -0
- data/lib/zernio-sdk/models/download_tik_tok_video200_response_formats_inner.rb +219 -0
- data/lib/zernio-sdk/models/get_inbox_post_comments200_response_comments_inner.rb +1 -1
- data/lib/zernio-sdk/models/like_inbox_comment200_response.rb +21 -1
- data/lib/zernio-sdk/models/like_post200_response.rb +24 -4
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +3 -0
- data/openapi.yaml +133 -3
- data/spec/api/lead_gen_api_spec.rb +1 -1
- data/spec/api/tools_api_spec.rb +49 -0
- data/spec/models/download_tik_tok_video200_response_formats_inner_spec.rb +84 -0
- data/spec/models/download_tik_tok_video200_response_spec.rb +72 -0
- data/spec/models/like_inbox_comment200_response_spec.rb +12 -0
- data/spec/models/like_post200_response_spec.rb +12 -0
- data/zernio-sdk-0.0.912.gem +0 -0
- metadata +14 -2
- data/zernio-sdk-0.0.910.gem +0 -0
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
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 Zernio
|
|
17
|
+
class DownloadTikTokVideo200Response < ApiModelBase
|
|
18
|
+
attr_accessor :success
|
|
19
|
+
|
|
20
|
+
attr_accessor :title
|
|
21
|
+
|
|
22
|
+
# Selected format label for action=download.
|
|
23
|
+
attr_accessor :format
|
|
24
|
+
|
|
25
|
+
# Media download URL for action=download.
|
|
26
|
+
attr_accessor :download_url
|
|
27
|
+
|
|
28
|
+
# Duration in seconds for action=formats.
|
|
29
|
+
attr_accessor :duration
|
|
30
|
+
|
|
31
|
+
# Thumbnail URL for action=formats.
|
|
32
|
+
attr_accessor :cover
|
|
33
|
+
|
|
34
|
+
# Available formats for action=formats.
|
|
35
|
+
attr_accessor :formats
|
|
36
|
+
|
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
38
|
+
def self.attribute_map
|
|
39
|
+
{
|
|
40
|
+
:'success' => :'success',
|
|
41
|
+
:'title' => :'title',
|
|
42
|
+
:'format' => :'format',
|
|
43
|
+
:'download_url' => :'downloadUrl',
|
|
44
|
+
:'duration' => :'duration',
|
|
45
|
+
:'cover' => :'cover',
|
|
46
|
+
:'formats' => :'formats'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Returns attribute mapping this model knows about
|
|
51
|
+
def self.acceptable_attribute_map
|
|
52
|
+
attribute_map
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Returns all the JSON keys this model knows about
|
|
56
|
+
def self.acceptable_attributes
|
|
57
|
+
acceptable_attribute_map.values
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Attribute type mapping.
|
|
61
|
+
def self.openapi_types
|
|
62
|
+
{
|
|
63
|
+
:'success' => :'Boolean',
|
|
64
|
+
:'title' => :'String',
|
|
65
|
+
:'format' => :'String',
|
|
66
|
+
:'download_url' => :'String',
|
|
67
|
+
:'duration' => :'Float',
|
|
68
|
+
:'cover' => :'String',
|
|
69
|
+
:'formats' => :'Array<DownloadTikTokVideo200ResponseFormatsInner>'
|
|
70
|
+
}
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# List of attributes with nullable: true
|
|
74
|
+
def self.openapi_nullable
|
|
75
|
+
Set.new([
|
|
76
|
+
])
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Initializes the object
|
|
80
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
81
|
+
def initialize(attributes = {})
|
|
82
|
+
if (!attributes.is_a?(Hash))
|
|
83
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::DownloadTikTokVideo200Response` initialize method"
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
87
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
88
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
89
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
90
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::DownloadTikTokVideo200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
91
|
+
end
|
|
92
|
+
h[k.to_sym] = v
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
if attributes.key?(:'success')
|
|
96
|
+
self.success = attributes[:'success']
|
|
97
|
+
else
|
|
98
|
+
self.success = nil
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
if attributes.key?(:'title')
|
|
102
|
+
self.title = attributes[:'title']
|
|
103
|
+
else
|
|
104
|
+
self.title = nil
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if attributes.key?(:'format')
|
|
108
|
+
self.format = attributes[:'format']
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
if attributes.key?(:'download_url')
|
|
112
|
+
self.download_url = attributes[:'download_url']
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if attributes.key?(:'duration')
|
|
116
|
+
self.duration = attributes[:'duration']
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
if attributes.key?(:'cover')
|
|
120
|
+
self.cover = attributes[:'cover']
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
if attributes.key?(:'formats')
|
|
124
|
+
if (value = attributes[:'formats']).is_a?(Array)
|
|
125
|
+
self.formats = value
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
131
|
+
# @return Array for valid properties with the reasons
|
|
132
|
+
def list_invalid_properties
|
|
133
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
134
|
+
invalid_properties = Array.new
|
|
135
|
+
if @success.nil?
|
|
136
|
+
invalid_properties.push('invalid value for "success", success cannot be nil.')
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
if @title.nil?
|
|
140
|
+
invalid_properties.push('invalid value for "title", title cannot be nil.')
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
invalid_properties
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Check to see if the all the properties in the model are valid
|
|
147
|
+
# @return true if the model is valid
|
|
148
|
+
def valid?
|
|
149
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
150
|
+
return false if @success.nil?
|
|
151
|
+
return false if @title.nil?
|
|
152
|
+
true
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Custom attribute writer method with validation
|
|
156
|
+
# @param [Object] success Value to be assigned
|
|
157
|
+
def success=(success)
|
|
158
|
+
if success.nil?
|
|
159
|
+
fail ArgumentError, 'success cannot be nil'
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
@success = success
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Custom attribute writer method with validation
|
|
166
|
+
# @param [Object] title Value to be assigned
|
|
167
|
+
def title=(title)
|
|
168
|
+
if title.nil?
|
|
169
|
+
fail ArgumentError, 'title cannot be nil'
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
@title = title
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Checks equality by comparing each attribute.
|
|
176
|
+
# @param [Object] Object to be compared
|
|
177
|
+
def ==(o)
|
|
178
|
+
return true if self.equal?(o)
|
|
179
|
+
self.class == o.class &&
|
|
180
|
+
success == o.success &&
|
|
181
|
+
title == o.title &&
|
|
182
|
+
format == o.format &&
|
|
183
|
+
download_url == o.download_url &&
|
|
184
|
+
duration == o.duration &&
|
|
185
|
+
cover == o.cover &&
|
|
186
|
+
formats == o.formats
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# @see the `==` method
|
|
190
|
+
# @param [Object] Object to be compared
|
|
191
|
+
def eql?(o)
|
|
192
|
+
self == o
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
# Calculates hash code according to all attributes.
|
|
196
|
+
# @return [Integer] Hash code
|
|
197
|
+
def hash
|
|
198
|
+
[success, title, format, download_url, duration, cover, formats].hash
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Builds the object from hash
|
|
202
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
203
|
+
# @return [Object] Returns the model itself
|
|
204
|
+
def self.build_from_hash(attributes)
|
|
205
|
+
return nil unless attributes.is_a?(Hash)
|
|
206
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
207
|
+
transformed_hash = {}
|
|
208
|
+
openapi_types.each_pair do |key, type|
|
|
209
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
210
|
+
transformed_hash["#{key}"] = nil
|
|
211
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
212
|
+
# check to ensure the input is an array given that the attribute
|
|
213
|
+
# is documented as an array but the input is not
|
|
214
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
215
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
216
|
+
end
|
|
217
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
218
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
219
|
+
end
|
|
220
|
+
end
|
|
221
|
+
new(transformed_hash)
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Returns the object in the form of hash
|
|
225
|
+
# @return [Hash] Returns the object in the form of hash
|
|
226
|
+
def to_hash
|
|
227
|
+
hash = {}
|
|
228
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
229
|
+
value = self.send(attr)
|
|
230
|
+
if value.nil?
|
|
231
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
232
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
hash[param] = _to_hash(value)
|
|
236
|
+
end
|
|
237
|
+
hash
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
end
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
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 Zernio
|
|
17
|
+
class DownloadTikTokVideo200ResponseFormatsInner < ApiModelBase
|
|
18
|
+
attr_accessor :id
|
|
19
|
+
|
|
20
|
+
attr_accessor :label
|
|
21
|
+
|
|
22
|
+
attr_accessor :ext
|
|
23
|
+
|
|
24
|
+
attr_accessor :type
|
|
25
|
+
|
|
26
|
+
attr_accessor :height
|
|
27
|
+
|
|
28
|
+
attr_accessor :width
|
|
29
|
+
|
|
30
|
+
attr_accessor :fps
|
|
31
|
+
|
|
32
|
+
attr_accessor :has_audio
|
|
33
|
+
|
|
34
|
+
attr_accessor :has_video
|
|
35
|
+
|
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
|
+
def self.attribute_map
|
|
38
|
+
{
|
|
39
|
+
:'id' => :'id',
|
|
40
|
+
:'label' => :'label',
|
|
41
|
+
:'ext' => :'ext',
|
|
42
|
+
:'type' => :'type',
|
|
43
|
+
:'height' => :'height',
|
|
44
|
+
:'width' => :'width',
|
|
45
|
+
:'fps' => :'fps',
|
|
46
|
+
:'has_audio' => :'hasAudio',
|
|
47
|
+
:'has_video' => :'hasVideo'
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Returns attribute mapping this model knows about
|
|
52
|
+
def self.acceptable_attribute_map
|
|
53
|
+
attribute_map
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Returns all the JSON keys this model knows about
|
|
57
|
+
def self.acceptable_attributes
|
|
58
|
+
acceptable_attribute_map.values
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Attribute type mapping.
|
|
62
|
+
def self.openapi_types
|
|
63
|
+
{
|
|
64
|
+
:'id' => :'String',
|
|
65
|
+
:'label' => :'String',
|
|
66
|
+
:'ext' => :'String',
|
|
67
|
+
:'type' => :'String',
|
|
68
|
+
:'height' => :'Float',
|
|
69
|
+
:'width' => :'Float',
|
|
70
|
+
:'fps' => :'Float',
|
|
71
|
+
:'has_audio' => :'Boolean',
|
|
72
|
+
:'has_video' => :'Boolean'
|
|
73
|
+
}
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# List of attributes with nullable: true
|
|
77
|
+
def self.openapi_nullable
|
|
78
|
+
Set.new([
|
|
79
|
+
])
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Initializes the object
|
|
83
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
84
|
+
def initialize(attributes = {})
|
|
85
|
+
if (!attributes.is_a?(Hash))
|
|
86
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::DownloadTikTokVideo200ResponseFormatsInner` initialize method"
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
90
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
91
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
92
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
93
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::DownloadTikTokVideo200ResponseFormatsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
94
|
+
end
|
|
95
|
+
h[k.to_sym] = v
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if attributes.key?(:'id')
|
|
99
|
+
self.id = attributes[:'id']
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if attributes.key?(:'label')
|
|
103
|
+
self.label = attributes[:'label']
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'ext')
|
|
107
|
+
self.ext = attributes[:'ext']
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'type')
|
|
111
|
+
self.type = attributes[:'type']
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'height')
|
|
115
|
+
self.height = attributes[:'height']
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'width')
|
|
119
|
+
self.width = attributes[:'width']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'fps')
|
|
123
|
+
self.fps = attributes[:'fps']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'has_audio')
|
|
127
|
+
self.has_audio = attributes[:'has_audio']
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'has_video')
|
|
131
|
+
self.has_video = attributes[:'has_video']
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
136
|
+
# @return Array for valid properties with the reasons
|
|
137
|
+
def list_invalid_properties
|
|
138
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
139
|
+
invalid_properties = Array.new
|
|
140
|
+
invalid_properties
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Check to see if the all the properties in the model are valid
|
|
144
|
+
# @return true if the model is valid
|
|
145
|
+
def valid?
|
|
146
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
147
|
+
true
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Checks equality by comparing each attribute.
|
|
151
|
+
# @param [Object] Object to be compared
|
|
152
|
+
def ==(o)
|
|
153
|
+
return true if self.equal?(o)
|
|
154
|
+
self.class == o.class &&
|
|
155
|
+
id == o.id &&
|
|
156
|
+
label == o.label &&
|
|
157
|
+
ext == o.ext &&
|
|
158
|
+
type == o.type &&
|
|
159
|
+
height == o.height &&
|
|
160
|
+
width == o.width &&
|
|
161
|
+
fps == o.fps &&
|
|
162
|
+
has_audio == o.has_audio &&
|
|
163
|
+
has_video == o.has_video
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# @see the `==` method
|
|
167
|
+
# @param [Object] Object to be compared
|
|
168
|
+
def eql?(o)
|
|
169
|
+
self == o
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Calculates hash code according to all attributes.
|
|
173
|
+
# @return [Integer] Hash code
|
|
174
|
+
def hash
|
|
175
|
+
[id, label, ext, type, height, width, fps, has_audio, has_video].hash
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Builds the object from hash
|
|
179
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
180
|
+
# @return [Object] Returns the model itself
|
|
181
|
+
def self.build_from_hash(attributes)
|
|
182
|
+
return nil unless attributes.is_a?(Hash)
|
|
183
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
184
|
+
transformed_hash = {}
|
|
185
|
+
openapi_types.each_pair do |key, type|
|
|
186
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
187
|
+
transformed_hash["#{key}"] = nil
|
|
188
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
189
|
+
# check to ensure the input is an array given that the attribute
|
|
190
|
+
# is documented as an array but the input is not
|
|
191
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
192
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
193
|
+
end
|
|
194
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
195
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
new(transformed_hash)
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Returns the object in the form of hash
|
|
202
|
+
# @return [Hash] Returns the object in the form of hash
|
|
203
|
+
def to_hash
|
|
204
|
+
hash = {}
|
|
205
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
206
|
+
value = self.send(attr)
|
|
207
|
+
if value.nil?
|
|
208
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
209
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
hash[param] = _to_hash(value)
|
|
213
|
+
end
|
|
214
|
+
hash
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
end
|
|
@@ -46,7 +46,7 @@ module Zernio
|
|
|
46
46
|
# Whether this comment can be hidden (Facebook, Instagram, Threads)
|
|
47
47
|
attr_accessor :can_hide
|
|
48
48
|
|
|
49
|
-
# Whether this comment can be liked (Facebook, X, Bluesky, Reddit)
|
|
49
|
+
# Whether this comment can be liked (Facebook, X, Bluesky, Reddit, LinkedIn)
|
|
50
50
|
attr_accessor :can_like
|
|
51
51
|
|
|
52
52
|
# Whether the comment is currently hidden
|
|
@@ -24,6 +24,12 @@ module Zernio
|
|
|
24
24
|
# (Bluesky only) URI to use for unliking
|
|
25
25
|
attr_accessor :like_uri
|
|
26
26
|
|
|
27
|
+
# LinkedIn only: the account already had this exact reaction, so nothing was created
|
|
28
|
+
attr_accessor :already_reacted
|
|
29
|
+
|
|
30
|
+
# LinkedIn only: the reaction type now in effect
|
|
31
|
+
attr_accessor :reaction_type
|
|
32
|
+
|
|
27
33
|
attr_accessor :platform
|
|
28
34
|
|
|
29
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -33,6 +39,8 @@ module Zernio
|
|
|
33
39
|
:'comment_id' => :'commentId',
|
|
34
40
|
:'liked' => :'liked',
|
|
35
41
|
:'like_uri' => :'likeUri',
|
|
42
|
+
:'already_reacted' => :'alreadyReacted',
|
|
43
|
+
:'reaction_type' => :'reactionType',
|
|
36
44
|
:'platform' => :'platform'
|
|
37
45
|
}
|
|
38
46
|
end
|
|
@@ -54,6 +62,8 @@ module Zernio
|
|
|
54
62
|
:'comment_id' => :'String',
|
|
55
63
|
:'liked' => :'Boolean',
|
|
56
64
|
:'like_uri' => :'String',
|
|
65
|
+
:'already_reacted' => :'Boolean',
|
|
66
|
+
:'reaction_type' => :'String',
|
|
57
67
|
:'platform' => :'String'
|
|
58
68
|
}
|
|
59
69
|
end
|
|
@@ -96,6 +106,14 @@ module Zernio
|
|
|
96
106
|
self.like_uri = attributes[:'like_uri']
|
|
97
107
|
end
|
|
98
108
|
|
|
109
|
+
if attributes.key?(:'already_reacted')
|
|
110
|
+
self.already_reacted = attributes[:'already_reacted']
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
if attributes.key?(:'reaction_type')
|
|
114
|
+
self.reaction_type = attributes[:'reaction_type']
|
|
115
|
+
end
|
|
116
|
+
|
|
99
117
|
if attributes.key?(:'platform')
|
|
100
118
|
self.platform = attributes[:'platform']
|
|
101
119
|
end
|
|
@@ -125,6 +143,8 @@ module Zernio
|
|
|
125
143
|
comment_id == o.comment_id &&
|
|
126
144
|
liked == o.liked &&
|
|
127
145
|
like_uri == o.like_uri &&
|
|
146
|
+
already_reacted == o.already_reacted &&
|
|
147
|
+
reaction_type == o.reaction_type &&
|
|
128
148
|
platform == o.platform
|
|
129
149
|
end
|
|
130
150
|
|
|
@@ -137,7 +157,7 @@ module Zernio
|
|
|
137
157
|
# Calculates hash code according to all attributes.
|
|
138
158
|
# @return [Integer] Hash code
|
|
139
159
|
def hash
|
|
140
|
-
[status, comment_id, liked, like_uri, platform].hash
|
|
160
|
+
[status, comment_id, liked, like_uri, already_reacted, reaction_type, platform].hash
|
|
141
161
|
end
|
|
142
162
|
|
|
143
163
|
# Builds the object from hash
|
|
@@ -27,6 +27,12 @@ module Zernio
|
|
|
27
27
|
# (Bluesky only) URI to use for unliking
|
|
28
28
|
attr_accessor :like_uri
|
|
29
29
|
|
|
30
|
+
# LinkedIn only: the account already had this exact reaction, so nothing was created
|
|
31
|
+
attr_accessor :already_reacted
|
|
32
|
+
|
|
33
|
+
# LinkedIn only: the reaction type now in effect
|
|
34
|
+
attr_accessor :reaction_type
|
|
35
|
+
|
|
30
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
37
|
def self.attribute_map
|
|
32
38
|
{
|
|
@@ -34,7 +40,9 @@ module Zernio
|
|
|
34
40
|
:'post_id' => :'postId',
|
|
35
41
|
:'platform' => :'platform',
|
|
36
42
|
:'liked' => :'liked',
|
|
37
|
-
:'like_uri' => :'likeUri'
|
|
43
|
+
:'like_uri' => :'likeUri',
|
|
44
|
+
:'already_reacted' => :'alreadyReacted',
|
|
45
|
+
:'reaction_type' => :'reactionType'
|
|
38
46
|
}
|
|
39
47
|
end
|
|
40
48
|
|
|
@@ -55,7 +63,9 @@ module Zernio
|
|
|
55
63
|
:'post_id' => :'String',
|
|
56
64
|
:'platform' => :'String',
|
|
57
65
|
:'liked' => :'Boolean',
|
|
58
|
-
:'like_uri' => :'String'
|
|
66
|
+
:'like_uri' => :'String',
|
|
67
|
+
:'already_reacted' => :'Boolean',
|
|
68
|
+
:'reaction_type' => :'String'
|
|
59
69
|
}
|
|
60
70
|
end
|
|
61
71
|
|
|
@@ -100,6 +110,14 @@ module Zernio
|
|
|
100
110
|
if attributes.key?(:'like_uri')
|
|
101
111
|
self.like_uri = attributes[:'like_uri']
|
|
102
112
|
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'already_reacted')
|
|
115
|
+
self.already_reacted = attributes[:'already_reacted']
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'reaction_type')
|
|
119
|
+
self.reaction_type = attributes[:'reaction_type']
|
|
120
|
+
end
|
|
103
121
|
end
|
|
104
122
|
|
|
105
123
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -126,7 +144,9 @@ module Zernio
|
|
|
126
144
|
post_id == o.post_id &&
|
|
127
145
|
platform == o.platform &&
|
|
128
146
|
liked == o.liked &&
|
|
129
|
-
like_uri == o.like_uri
|
|
147
|
+
like_uri == o.like_uri &&
|
|
148
|
+
already_reacted == o.already_reacted &&
|
|
149
|
+
reaction_type == o.reaction_type
|
|
130
150
|
end
|
|
131
151
|
|
|
132
152
|
# @see the `==` method
|
|
@@ -138,7 +158,7 @@ module Zernio
|
|
|
138
158
|
# Calculates hash code according to all attributes.
|
|
139
159
|
# @return [Integer] Hash code
|
|
140
160
|
def hash
|
|
141
|
-
[status, post_id, platform, liked, like_uri].hash
|
|
161
|
+
[status, post_id, platform, liked, like_uri, already_reacted, reaction_type].hash
|
|
142
162
|
end
|
|
143
163
|
|
|
144
164
|
# Builds the object from hash
|
data/lib/zernio-sdk/version.rb
CHANGED
data/lib/zernio-sdk.rb
CHANGED
|
@@ -498,6 +498,8 @@ require 'zernio-sdk/models/discord_role'
|
|
|
498
498
|
require 'zernio-sdk/models/discord_scheduled_event'
|
|
499
499
|
require 'zernio-sdk/models/discord_scheduled_event_entity_metadata'
|
|
500
500
|
require 'zernio-sdk/models/dm_button'
|
|
501
|
+
require 'zernio-sdk/models/download_tik_tok_video200_response'
|
|
502
|
+
require 'zernio-sdk/models/download_tik_tok_video200_response_formats_inner'
|
|
501
503
|
require 'zernio-sdk/models/duplicate_ad200_response'
|
|
502
504
|
require 'zernio-sdk/models/duplicate_ad_campaign200_response'
|
|
503
505
|
require 'zernio-sdk/models/duplicate_ad_campaign_request'
|
|
@@ -2085,6 +2087,7 @@ require 'zernio-sdk/api/reviews_api'
|
|
|
2085
2087
|
require 'zernio-sdk/api/sms_api'
|
|
2086
2088
|
require 'zernio-sdk/api/sequences_api'
|
|
2087
2089
|
require 'zernio-sdk/api/slack_api'
|
|
2090
|
+
require 'zernio-sdk/api/tools_api'
|
|
2088
2091
|
require 'zernio-sdk/api/tracking_tags_api'
|
|
2089
2092
|
require 'zernio-sdk/api/twitter_engagement_api'
|
|
2090
2093
|
require 'zernio-sdk/api/usage_api'
|