late-sdk 0.0.949 → 0.0.950
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/ListTikTokCommercialMusic200ResponseTracksInner.md +3 -1
- data/docs/ListTikTokCommercialMusic200ResponseTracksInnerClip.md +2 -0
- data/docs/TikTokPlatformDataMusicSoundInfo.md +1 -1
- data/lib/zernio-sdk/models/list_tik_tok_commercial_music200_response_tracks_inner.rb +12 -2
- data/lib/zernio-sdk/models/list_tik_tok_commercial_music200_response_tracks_inner_clip.rb +11 -2
- data/lib/zernio-sdk/models/tik_tok_platform_data_music_sound_info.rb +1 -1
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +5 -3
- data/spec/models/list_tik_tok_commercial_music200_response_tracks_inner_clip_spec.rb +6 -0
- data/spec/models/list_tik_tok_commercial_music200_response_tracks_inner_spec.rb +6 -0
- data/zernio-sdk-0.0.950.gem +0 -0
- metadata +2 -2
- data/zernio-sdk-0.0.949.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: cf1bb481a7fe5c23e5849ae664aa627fb8d5f0ec61144b75f03b763c3491c68f
|
|
4
|
+
data.tar.gz: 847af2ec517097eb66d1508157dc7f1b5a6f08cf59884dccfc7b8a1b9e0d6e72
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8bf11206841e21128877b0df5eea2f1dc1d1a720a62fdfd3de0859fc67c9dcfe826bcb05a0cf609ac047fe37f6b6ac35c593b83fe183fcb8cc08c057e03137ae
|
|
7
|
+
data.tar.gz: 8be02bb4adcd8701a952fee46b5c14df321984482025039b9b40363897b02b3ccd8bae014c2be671c0456b742adba402771739bdc0c94e55456b33e8230d59d6
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **id** | **String** | The
|
|
7
|
+
| **id** | **String** | The id to send as musicSoundId (the full track's song clip id). TikTok rejects the commercial music id itself at publish time. | [optional] |
|
|
8
|
+
| **commercial_music_id** | **String** | TikTok's commercial_music_id, for reference only | [optional] |
|
|
8
9
|
| **name** | **String** | | [optional] |
|
|
9
10
|
| **artist** | **String** | | [optional] |
|
|
10
11
|
| **duration_sec** | **Integer** | | [optional] |
|
|
@@ -21,6 +22,7 @@ require 'zernio-sdk'
|
|
|
21
22
|
|
|
22
23
|
instance = Zernio::ListTikTokCommercialMusic200ResponseTracksInner.new(
|
|
23
24
|
id: null,
|
|
25
|
+
commercial_music_id: null,
|
|
24
26
|
name: null,
|
|
25
27
|
artist: null,
|
|
26
28
|
duration_sec: null,
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | [optional] |
|
|
7
8
|
| **duration_sec** | **Integer** | | [optional] |
|
|
8
9
|
| **preview_url** | **String** | | [optional] |
|
|
9
10
|
|
|
@@ -13,6 +14,7 @@
|
|
|
13
14
|
require 'zernio-sdk'
|
|
14
15
|
|
|
15
16
|
instance = Zernio::ListTikTokCommercialMusic200ResponseTracksInnerClip.new(
|
|
17
|
+
id: null,
|
|
16
18
|
duration_sec: null,
|
|
17
19
|
preview_url: null
|
|
18
20
|
)
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **music_sound_id** | **String** | The
|
|
7
|
+
| **music_sound_id** | **String** | The id field of a track from GET /v1/accounts/{accountId}/tiktok/commercial-music (a song clip id). TikTok fails the publish with a generic 51065 when given the commercial music id instead. | |
|
|
8
8
|
| **music_sound_volume** | **Integer** | Track volume. TikTok defaults an omitted volume to 0, which publishes the track silently, so we default to the app's 50. Video posts only. | [optional][default to 50] |
|
|
9
9
|
| **music_sound_start** | **Integer** | Start point of the track in milliseconds (default 0). Video posts only. | [optional] |
|
|
10
10
|
| **music_sound_end** | **Integer** | End point of the track in milliseconds (default: the video length). Must be greater than musicSoundStart. Video posts only. | [optional] |
|
|
@@ -15,9 +15,12 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Zernio
|
|
17
17
|
class ListTikTokCommercialMusic200ResponseTracksInner < ApiModelBase
|
|
18
|
-
# The
|
|
18
|
+
# The id to send as musicSoundId (the full track's song clip id). TikTok rejects the commercial music id itself at publish time.
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
21
|
+
# TikTok's commercial_music_id, for reference only
|
|
22
|
+
attr_accessor :commercial_music_id
|
|
23
|
+
|
|
21
24
|
attr_accessor :name
|
|
22
25
|
|
|
23
26
|
attr_accessor :artist
|
|
@@ -40,6 +43,7 @@ module Zernio
|
|
|
40
43
|
def self.attribute_map
|
|
41
44
|
{
|
|
42
45
|
:'id' => :'id',
|
|
46
|
+
:'commercial_music_id' => :'commercialMusicId',
|
|
43
47
|
:'name' => :'name',
|
|
44
48
|
:'artist' => :'artist',
|
|
45
49
|
:'duration_sec' => :'durationSec',
|
|
@@ -65,6 +69,7 @@ module Zernio
|
|
|
65
69
|
def self.openapi_types
|
|
66
70
|
{
|
|
67
71
|
:'id' => :'String',
|
|
72
|
+
:'commercial_music_id' => :'String',
|
|
68
73
|
:'name' => :'String',
|
|
69
74
|
:'artist' => :'String',
|
|
70
75
|
:'duration_sec' => :'Integer',
|
|
@@ -102,6 +107,10 @@ module Zernio
|
|
|
102
107
|
self.id = attributes[:'id']
|
|
103
108
|
end
|
|
104
109
|
|
|
110
|
+
if attributes.key?(:'commercial_music_id')
|
|
111
|
+
self.commercial_music_id = attributes[:'commercial_music_id']
|
|
112
|
+
end
|
|
113
|
+
|
|
105
114
|
if attributes.key?(:'name')
|
|
106
115
|
self.name = attributes[:'name']
|
|
107
116
|
end
|
|
@@ -158,6 +167,7 @@ module Zernio
|
|
|
158
167
|
return true if self.equal?(o)
|
|
159
168
|
self.class == o.class &&
|
|
160
169
|
id == o.id &&
|
|
170
|
+
commercial_music_id == o.commercial_music_id &&
|
|
161
171
|
name == o.name &&
|
|
162
172
|
artist == o.artist &&
|
|
163
173
|
duration_sec == o.duration_sec &&
|
|
@@ -177,7 +187,7 @@ module Zernio
|
|
|
177
187
|
# Calculates hash code according to all attributes.
|
|
178
188
|
# @return [Integer] Hash code
|
|
179
189
|
def hash
|
|
180
|
-
[id, name, artist, duration_sec, genres, preview_url, thumbnail_url, rank, clip].hash
|
|
190
|
+
[id, commercial_music_id, name, artist, duration_sec, genres, preview_url, thumbnail_url, rank, clip].hash
|
|
181
191
|
end
|
|
182
192
|
|
|
183
193
|
# Builds the object from hash
|
|
@@ -14,8 +14,10 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Zernio
|
|
17
|
-
# The trending excerpt of the track, when TikTok provides one
|
|
17
|
+
# The trending excerpt of the track, when TikTok provides one. Its id is also accepted as musicSoundId.
|
|
18
18
|
class ListTikTokCommercialMusic200ResponseTracksInnerClip < ApiModelBase
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
19
21
|
attr_accessor :duration_sec
|
|
20
22
|
|
|
21
23
|
attr_accessor :preview_url
|
|
@@ -23,6 +25,7 @@ module Zernio
|
|
|
23
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
24
26
|
def self.attribute_map
|
|
25
27
|
{
|
|
28
|
+
:'id' => :'id',
|
|
26
29
|
:'duration_sec' => :'durationSec',
|
|
27
30
|
:'preview_url' => :'previewUrl'
|
|
28
31
|
}
|
|
@@ -41,6 +44,7 @@ module Zernio
|
|
|
41
44
|
# Attribute type mapping.
|
|
42
45
|
def self.openapi_types
|
|
43
46
|
{
|
|
47
|
+
:'id' => :'String',
|
|
44
48
|
:'duration_sec' => :'Integer',
|
|
45
49
|
:'preview_url' => :'String'
|
|
46
50
|
}
|
|
@@ -68,6 +72,10 @@ module Zernio
|
|
|
68
72
|
h[k.to_sym] = v
|
|
69
73
|
}
|
|
70
74
|
|
|
75
|
+
if attributes.key?(:'id')
|
|
76
|
+
self.id = attributes[:'id']
|
|
77
|
+
end
|
|
78
|
+
|
|
71
79
|
if attributes.key?(:'duration_sec')
|
|
72
80
|
self.duration_sec = attributes[:'duration_sec']
|
|
73
81
|
end
|
|
@@ -97,6 +105,7 @@ module Zernio
|
|
|
97
105
|
def ==(o)
|
|
98
106
|
return true if self.equal?(o)
|
|
99
107
|
self.class == o.class &&
|
|
108
|
+
id == o.id &&
|
|
100
109
|
duration_sec == o.duration_sec &&
|
|
101
110
|
preview_url == o.preview_url
|
|
102
111
|
end
|
|
@@ -110,7 +119,7 @@ module Zernio
|
|
|
110
119
|
# Calculates hash code according to all attributes.
|
|
111
120
|
# @return [Integer] Hash code
|
|
112
121
|
def hash
|
|
113
|
-
[duration_sec, preview_url].hash
|
|
122
|
+
[id, duration_sec, preview_url].hash
|
|
114
123
|
end
|
|
115
124
|
|
|
116
125
|
# Builds the object from hash
|
|
@@ -16,7 +16,7 @@ require 'time'
|
|
|
16
16
|
module Zernio
|
|
17
17
|
# Commercial Music Library track to attach. Accounts connected through the TikTok for Business app only: a developer-app account rejects the post at publish time with a message that says so. Pick musicSoundId from GET /v1/accounts/{accountId}/tiktok/commercial-music. Ignored on drafts, where TikTok ignores every post_info field.
|
|
18
18
|
class TikTokPlatformDataMusicSoundInfo < ApiModelBase
|
|
19
|
-
# The
|
|
19
|
+
# The id field of a track from GET /v1/accounts/{accountId}/tiktok/commercial-music (a song clip id). TikTok fails the publish with a generic 51065 when given the commercial music id instead.
|
|
20
20
|
attr_accessor :music_sound_id
|
|
21
21
|
|
|
22
22
|
# Track volume. TikTok defaults an omitted volume to 0, which publishes the track silently, so we default to the app's 50. Video posts only.
|
data/lib/zernio-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -6970,7 +6970,7 @@ components:
|
|
|
6970
6970
|
properties:
|
|
6971
6971
|
musicSoundId:
|
|
6972
6972
|
type: string
|
|
6973
|
-
description: 'The
|
|
6973
|
+
description: 'The id field of a track from GET /v1/accounts/{accountId}/tiktok/commercial-music (a song clip id). TikTok fails the publish with a generic 51065 when given the commercial music id instead.'
|
|
6974
6974
|
musicSoundVolume:
|
|
6975
6975
|
type: integer
|
|
6976
6976
|
minimum: 0
|
|
@@ -19175,7 +19175,8 @@ paths:
|
|
|
19175
19175
|
items:
|
|
19176
19176
|
type: object
|
|
19177
19177
|
properties:
|
|
19178
|
-
id: { type: string, description: 'The
|
|
19178
|
+
id: { type: string, description: 'The id to send as musicSoundId (the full track''s song clip id). TikTok rejects the commercial music id itself at publish time.' }
|
|
19179
|
+
commercialMusicId: { type: string, description: 'TikTok''s commercial_music_id, for reference only' }
|
|
19179
19180
|
name: { type: string }
|
|
19180
19181
|
artist: { type: string }
|
|
19181
19182
|
durationSec: { type: integer }
|
|
@@ -19185,8 +19186,9 @@ paths:
|
|
|
19185
19186
|
rank: { type: integer, description: 'Position in the trending chart, 1 first' }
|
|
19186
19187
|
clip:
|
|
19187
19188
|
type: object
|
|
19188
|
-
description: 'The trending excerpt of the track, when TikTok provides one'
|
|
19189
|
+
description: 'The trending excerpt of the track, when TikTok provides one. Its id is also accepted as musicSoundId.'
|
|
19189
19190
|
properties:
|
|
19191
|
+
id: { type: string }
|
|
19190
19192
|
durationSec: { type: integer }
|
|
19191
19193
|
previewUrl: { type: string }
|
|
19192
19194
|
'400':
|
|
@@ -27,6 +27,12 @@ describe Zernio::ListTikTokCommercialMusic200ResponseTracksInnerClip do
|
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
+
describe 'test attribute "id"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
30
36
|
describe 'test attribute "duration_sec"' do
|
|
31
37
|
it 'should work' do
|
|
32
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -33,6 +33,12 @@ describe Zernio::ListTikTokCommercialMusic200ResponseTracksInner do
|
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
+
describe 'test attribute "commercial_music_id"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
36
42
|
describe 'test attribute "name"' do
|
|
37
43
|
it 'should work' do
|
|
38
44
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
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.950
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -6445,7 +6445,7 @@ files:
|
|
|
6445
6445
|
- spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
|
|
6446
6446
|
- spec/models/you_tube_video_retention_response_spec.rb
|
|
6447
6447
|
- spec/spec_helper.rb
|
|
6448
|
-
- zernio-sdk-0.0.
|
|
6448
|
+
- zernio-sdk-0.0.950.gem
|
|
6449
6449
|
- zernio-sdk.gemspec
|
|
6450
6450
|
homepage: https://openapi-generator.tech
|
|
6451
6451
|
licenses:
|
data/zernio-sdk-0.0.949.gem
DELETED
|
Binary file
|