late-sdk 0.0.85 → 0.0.86
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/PostsApi.md +3 -3
- data/docs/UpdatePostMetadata200Response.md +2 -0
- data/docs/UpdatePostMetadataRequest.md +4 -0
- data/lib/late-sdk/api/posts_api.rb +4 -4
- data/lib/late-sdk/models/update_post_metadata200_response.rb +11 -1
- data/lib/late-sdk/models/update_post_metadata_request.rb +21 -1
- data/lib/late-sdk/version.rb +1 -1
- data/openapi.yaml +34 -9
- data/spec/api/posts_api_spec.rb +2 -2
- data/spec/models/update_post_metadata200_response_spec.rb +6 -0
- data/spec/models/update_post_metadata_request_spec.rb +12 -0
- data/zernio-sdk-0.0.86.gem +0 -0
- metadata +660 -660
- data/zernio-sdk-0.0.85.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: ae2c9ff26809da71cfca846726fa43ccd717d0047a4aa9b089f38afcb17c36c1
|
|
4
|
+
data.tar.gz: 2e4f765fa72a0488a5b924fe1d1475ee25206b6e6b21308f8252e78a4663b20b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 25c3f55771ee6918e60d0115188fb62b98ebd60752476d40d341968ce9e5db6680931b52a3a575092d0a51762427fd54b5f5dfd0c222a339d6e3c5f3cb2147cd
|
|
7
|
+
data.tar.gz: 07e0f42f5706fc0b7676a66311fb23f47bb06f44ec205f64ff05dbf08e5817114ac3f9e830bf32f5e951b4ca0288b3c799cf375ecffb9176e811f4105c874e5e
|
data/docs/PostsApi.md
CHANGED
|
@@ -603,7 +603,7 @@ end
|
|
|
603
603
|
|
|
604
604
|
Update post metadata
|
|
605
605
|
|
|
606
|
-
Updates metadata of
|
|
606
|
+
Updates metadata of a published video on the specified platform without re-uploading. Currently only supported for YouTube. At least one updatable field is required. **Two modes:** 1. **Post-based** (video published through Zernio): pass the Zernio postId in the URL and `platform` in the body. 2. **Direct video ID** (video uploaded outside Zernio, e.g. directly to YouTube): use `_` as the postId, and pass `videoId` + `accountId` + `platform` in the body. The accountId is the Zernio social account ID for the connected YouTube channel.
|
|
607
607
|
|
|
608
608
|
### Examples
|
|
609
609
|
|
|
@@ -617,7 +617,7 @@ Late.configure do |config|
|
|
|
617
617
|
end
|
|
618
618
|
|
|
619
619
|
api_instance = Late::PostsApi.new
|
|
620
|
-
post_id = 'post_id_example' # String |
|
|
620
|
+
post_id = 'post_id_example' # String | Zernio post ID, or \"_\" when using direct video ID mode
|
|
621
621
|
update_post_metadata_request = Late::UpdatePostMetadataRequest.new({platform: 'youtube'}) # UpdatePostMetadataRequest |
|
|
622
622
|
|
|
623
623
|
begin
|
|
@@ -651,7 +651,7 @@ end
|
|
|
651
651
|
|
|
652
652
|
| Name | Type | Description | Notes |
|
|
653
653
|
| ---- | ---- | ----------- | ----- |
|
|
654
|
-
| **post_id** | **String** |
|
|
654
|
+
| **post_id** | **String** | Zernio post ID, or \"_\" when using direct video ID mode | |
|
|
655
655
|
| **update_post_metadata_request** | [**UpdatePostMetadataRequest**](UpdatePostMetadataRequest.md) | | |
|
|
656
656
|
|
|
657
657
|
### Return type
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **success** | **Boolean** | | [optional] |
|
|
8
8
|
| **message** | **String** | | [optional] |
|
|
9
|
+
| **video_id** | **String** | Only present in direct video ID mode | [optional] |
|
|
9
10
|
| **updated_fields** | **Array<String>** | | [optional] |
|
|
10
11
|
|
|
11
12
|
## Example
|
|
@@ -16,6 +17,7 @@ require 'late-sdk'
|
|
|
16
17
|
instance = Late::UpdatePostMetadata200Response.new(
|
|
17
18
|
success: null,
|
|
18
19
|
message: null,
|
|
20
|
+
video_id: null,
|
|
19
21
|
updated_fields: null
|
|
20
22
|
)
|
|
21
23
|
```
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **platform** | **String** | The platform to update metadata on | |
|
|
8
|
+
| **video_id** | **String** | YouTube video ID (required for direct mode, ignored for post-based mode) | [optional] |
|
|
9
|
+
| **account_id** | **String** | Zernio social account ID (required for direct mode, ignored for post-based mode) | [optional] |
|
|
8
10
|
| **title** | **String** | New video title (max 100 characters for YouTube) | [optional] |
|
|
9
11
|
| **description** | **String** | New video description | [optional] |
|
|
10
12
|
| **tags** | **Array<String>** | Array of keyword tags (max 500 characters combined for YouTube) | [optional] |
|
|
@@ -18,6 +20,8 @@ require 'late-sdk'
|
|
|
18
20
|
|
|
19
21
|
instance = Late::UpdatePostMetadataRequest.new(
|
|
20
22
|
platform: null,
|
|
23
|
+
video_id: null,
|
|
24
|
+
account_id: null,
|
|
21
25
|
title: null,
|
|
22
26
|
description: null,
|
|
23
27
|
tags: null,
|
|
@@ -603,8 +603,8 @@ module Late
|
|
|
603
603
|
end
|
|
604
604
|
|
|
605
605
|
# Update post metadata
|
|
606
|
-
# Updates metadata of
|
|
607
|
-
# @param post_id [String]
|
|
606
|
+
# Updates metadata of a published video on the specified platform without re-uploading. Currently only supported for YouTube. At least one updatable field is required. **Two modes:** 1. **Post-based** (video published through Zernio): pass the Zernio postId in the URL and `platform` in the body. 2. **Direct video ID** (video uploaded outside Zernio, e.g. directly to YouTube): use `_` as the postId, and pass `videoId` + `accountId` + `platform` in the body. The accountId is the Zernio social account ID for the connected YouTube channel.
|
|
607
|
+
# @param post_id [String] Zernio post ID, or \"_\" when using direct video ID mode
|
|
608
608
|
# @param update_post_metadata_request [UpdatePostMetadataRequest]
|
|
609
609
|
# @param [Hash] opts the optional parameters
|
|
610
610
|
# @return [UpdatePostMetadata200Response]
|
|
@@ -614,8 +614,8 @@ module Late
|
|
|
614
614
|
end
|
|
615
615
|
|
|
616
616
|
# Update post metadata
|
|
617
|
-
# Updates metadata of
|
|
618
|
-
# @param post_id [String]
|
|
617
|
+
# Updates metadata of a published video on the specified platform without re-uploading. Currently only supported for YouTube. At least one updatable field is required. **Two modes:** 1. **Post-based** (video published through Zernio): pass the Zernio postId in the URL and `platform` in the body. 2. **Direct video ID** (video uploaded outside Zernio, e.g. directly to YouTube): use `_` as the postId, and pass `videoId` + `accountId` + `platform` in the body. The accountId is the Zernio social account ID for the connected YouTube channel.
|
|
618
|
+
# @param post_id [String] Zernio post ID, or \"_\" when using direct video ID mode
|
|
619
619
|
# @param update_post_metadata_request [UpdatePostMetadataRequest]
|
|
620
620
|
# @param [Hash] opts the optional parameters
|
|
621
621
|
# @return [Array<(UpdatePostMetadata200Response, Integer, Hash)>] UpdatePostMetadata200Response data, response status code and response headers
|
|
@@ -19,6 +19,9 @@ module Late
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :message
|
|
21
21
|
|
|
22
|
+
# Only present in direct video ID mode
|
|
23
|
+
attr_accessor :video_id
|
|
24
|
+
|
|
22
25
|
attr_accessor :updated_fields
|
|
23
26
|
|
|
24
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -26,6 +29,7 @@ module Late
|
|
|
26
29
|
{
|
|
27
30
|
:'success' => :'success',
|
|
28
31
|
:'message' => :'message',
|
|
32
|
+
:'video_id' => :'videoId',
|
|
29
33
|
:'updated_fields' => :'updatedFields'
|
|
30
34
|
}
|
|
31
35
|
end
|
|
@@ -45,6 +49,7 @@ module Late
|
|
|
45
49
|
{
|
|
46
50
|
:'success' => :'Boolean',
|
|
47
51
|
:'message' => :'String',
|
|
52
|
+
:'video_id' => :'String',
|
|
48
53
|
:'updated_fields' => :'Array<String>'
|
|
49
54
|
}
|
|
50
55
|
end
|
|
@@ -79,6 +84,10 @@ module Late
|
|
|
79
84
|
self.message = attributes[:'message']
|
|
80
85
|
end
|
|
81
86
|
|
|
87
|
+
if attributes.key?(:'video_id')
|
|
88
|
+
self.video_id = attributes[:'video_id']
|
|
89
|
+
end
|
|
90
|
+
|
|
82
91
|
if attributes.key?(:'updated_fields')
|
|
83
92
|
if (value = attributes[:'updated_fields']).is_a?(Array)
|
|
84
93
|
self.updated_fields = value
|
|
@@ -108,6 +117,7 @@ module Late
|
|
|
108
117
|
self.class == o.class &&
|
|
109
118
|
success == o.success &&
|
|
110
119
|
message == o.message &&
|
|
120
|
+
video_id == o.video_id &&
|
|
111
121
|
updated_fields == o.updated_fields
|
|
112
122
|
end
|
|
113
123
|
|
|
@@ -120,7 +130,7 @@ module Late
|
|
|
120
130
|
# Calculates hash code according to all attributes.
|
|
121
131
|
# @return [Integer] Hash code
|
|
122
132
|
def hash
|
|
123
|
-
[success, message, updated_fields].hash
|
|
133
|
+
[success, message, video_id, updated_fields].hash
|
|
124
134
|
end
|
|
125
135
|
|
|
126
136
|
# Builds the object from hash
|
|
@@ -18,6 +18,12 @@ module Late
|
|
|
18
18
|
# The platform to update metadata on
|
|
19
19
|
attr_accessor :platform
|
|
20
20
|
|
|
21
|
+
# YouTube video ID (required for direct mode, ignored for post-based mode)
|
|
22
|
+
attr_accessor :video_id
|
|
23
|
+
|
|
24
|
+
# Zernio social account ID (required for direct mode, ignored for post-based mode)
|
|
25
|
+
attr_accessor :account_id
|
|
26
|
+
|
|
21
27
|
# New video title (max 100 characters for YouTube)
|
|
22
28
|
attr_accessor :title
|
|
23
29
|
|
|
@@ -59,6 +65,8 @@ module Late
|
|
|
59
65
|
def self.attribute_map
|
|
60
66
|
{
|
|
61
67
|
:'platform' => :'platform',
|
|
68
|
+
:'video_id' => :'videoId',
|
|
69
|
+
:'account_id' => :'accountId',
|
|
62
70
|
:'title' => :'title',
|
|
63
71
|
:'description' => :'description',
|
|
64
72
|
:'tags' => :'tags',
|
|
@@ -81,6 +89,8 @@ module Late
|
|
|
81
89
|
def self.openapi_types
|
|
82
90
|
{
|
|
83
91
|
:'platform' => :'String',
|
|
92
|
+
:'video_id' => :'String',
|
|
93
|
+
:'account_id' => :'String',
|
|
84
94
|
:'title' => :'String',
|
|
85
95
|
:'description' => :'String',
|
|
86
96
|
:'tags' => :'Array<String>',
|
|
@@ -117,6 +127,14 @@ module Late
|
|
|
117
127
|
self.platform = nil
|
|
118
128
|
end
|
|
119
129
|
|
|
130
|
+
if attributes.key?(:'video_id')
|
|
131
|
+
self.video_id = attributes[:'video_id']
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
if attributes.key?(:'account_id')
|
|
135
|
+
self.account_id = attributes[:'account_id']
|
|
136
|
+
end
|
|
137
|
+
|
|
120
138
|
if attributes.key?(:'title')
|
|
121
139
|
self.title = attributes[:'title']
|
|
122
140
|
end
|
|
@@ -209,6 +227,8 @@ module Late
|
|
|
209
227
|
return true if self.equal?(o)
|
|
210
228
|
self.class == o.class &&
|
|
211
229
|
platform == o.platform &&
|
|
230
|
+
video_id == o.video_id &&
|
|
231
|
+
account_id == o.account_id &&
|
|
212
232
|
title == o.title &&
|
|
213
233
|
description == o.description &&
|
|
214
234
|
tags == o.tags &&
|
|
@@ -225,7 +245,7 @@ module Late
|
|
|
225
245
|
# Calculates hash code according to all attributes.
|
|
226
246
|
# @return [Integer] Hash code
|
|
227
247
|
def hash
|
|
228
|
-
[platform, title, description, tags, category_id, privacy_status].hash
|
|
248
|
+
[platform, video_id, account_id, title, description, tags, category_id, privacy_status].hash
|
|
229
249
|
end
|
|
230
250
|
|
|
231
251
|
# Builds the object from hash
|
data/lib/late-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -5366,14 +5366,21 @@ paths:
|
|
|
5366
5366
|
tags: [Posts]
|
|
5367
5367
|
summary: Update post metadata
|
|
5368
5368
|
description: |
|
|
5369
|
-
Updates metadata of
|
|
5370
|
-
Currently only supported for YouTube
|
|
5371
|
-
|
|
5369
|
+
Updates metadata of a published video on the specified platform without re-uploading.
|
|
5370
|
+
Currently only supported for YouTube. At least one updatable field is required.
|
|
5371
|
+
|
|
5372
|
+
**Two modes:**
|
|
5373
|
+
|
|
5374
|
+
1. **Post-based** (video published through Zernio): pass the Zernio postId in the URL and `platform` in the body.
|
|
5375
|
+
2. **Direct video ID** (video uploaded outside Zernio, e.g. directly to YouTube): use `_` as the postId,
|
|
5376
|
+
and pass `videoId` + `accountId` + `platform` in the body. The accountId is the Zernio social account ID
|
|
5377
|
+
for the connected YouTube channel.
|
|
5372
5378
|
parameters:
|
|
5373
5379
|
- name: postId
|
|
5374
5380
|
in: path
|
|
5375
5381
|
required: true
|
|
5376
5382
|
schema: { type: string }
|
|
5383
|
+
description: Zernio post ID, or "_" when using direct video ID mode
|
|
5377
5384
|
requestBody:
|
|
5378
5385
|
required: true
|
|
5379
5386
|
content:
|
|
@@ -5387,6 +5394,12 @@ paths:
|
|
|
5387
5394
|
description: The platform to update metadata on
|
|
5388
5395
|
enum:
|
|
5389
5396
|
- youtube
|
|
5397
|
+
videoId:
|
|
5398
|
+
type: string
|
|
5399
|
+
description: YouTube video ID (required for direct mode, ignored for post-based mode)
|
|
5400
|
+
accountId:
|
|
5401
|
+
type: string
|
|
5402
|
+
description: Zernio social account ID (required for direct mode, ignored for post-based mode)
|
|
5390
5403
|
title:
|
|
5391
5404
|
type: string
|
|
5392
5405
|
maxLength: 100
|
|
@@ -5407,11 +5420,22 @@ paths:
|
|
|
5407
5420
|
type: string
|
|
5408
5421
|
enum: [public, private, unlisted]
|
|
5409
5422
|
description: Video privacy setting
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5423
|
+
examples:
|
|
5424
|
+
post-based:
|
|
5425
|
+
summary: Update a video published through Zernio
|
|
5426
|
+
value:
|
|
5427
|
+
platform: "youtube"
|
|
5428
|
+
title: "Updated Video Title"
|
|
5429
|
+
description: "New SEO-optimized description"
|
|
5430
|
+
tags: ["seo", "marketing", "tutorial"]
|
|
5431
|
+
direct-video-id:
|
|
5432
|
+
summary: Update a video uploaded directly to YouTube
|
|
5433
|
+
value:
|
|
5434
|
+
platform: "youtube"
|
|
5435
|
+
videoId: "dQw4w9WgXcQ"
|
|
5436
|
+
accountId: "68fb37418bbca9c10cbfef26"
|
|
5437
|
+
title: "Updated Title with SEO Keywords"
|
|
5438
|
+
tags: ["seo", "youtube", "optimization"]
|
|
5415
5439
|
responses:
|
|
5416
5440
|
'200':
|
|
5417
5441
|
description: Metadata updated successfully
|
|
@@ -5422,12 +5446,13 @@ paths:
|
|
|
5422
5446
|
properties:
|
|
5423
5447
|
success: { type: boolean }
|
|
5424
5448
|
message: { type: string }
|
|
5449
|
+
videoId: { type: string, description: Only present in direct video ID mode }
|
|
5425
5450
|
updatedFields:
|
|
5426
5451
|
type: array
|
|
5427
5452
|
items: { type: string }
|
|
5428
5453
|
example:
|
|
5429
5454
|
success: true
|
|
5430
|
-
message: "
|
|
5455
|
+
message: "YouTube video metadata updated successfully"
|
|
5431
5456
|
updatedFields: ["title", "description", "tags"]
|
|
5432
5457
|
'400':
|
|
5433
5458
|
description: "Invalid request: unsupported platform, post not published, missing fields, or validation error."
|
data/spec/api/posts_api_spec.rb
CHANGED
|
@@ -143,8 +143,8 @@ describe 'PostsApi' do
|
|
|
143
143
|
|
|
144
144
|
# unit tests for update_post_metadata
|
|
145
145
|
# Update post metadata
|
|
146
|
-
# Updates metadata of
|
|
147
|
-
# @param post_id
|
|
146
|
+
# Updates metadata of a published video on the specified platform without re-uploading. Currently only supported for YouTube. At least one updatable field is required. **Two modes:** 1. **Post-based** (video published through Zernio): pass the Zernio postId in the URL and `platform` in the body. 2. **Direct video ID** (video uploaded outside Zernio, e.g. directly to YouTube): use `_` as the postId, and pass `videoId` + `accountId` + `platform` in the body. The accountId is the Zernio social account ID for the connected YouTube channel.
|
|
147
|
+
# @param post_id Zernio post ID, or \"_\" when using direct video ID mode
|
|
148
148
|
# @param update_post_metadata_request
|
|
149
149
|
# @param [Hash] opts the optional parameters
|
|
150
150
|
# @return [UpdatePostMetadata200Response]
|
|
@@ -39,6 +39,12 @@ describe Late::UpdatePostMetadata200Response do
|
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
+
describe 'test attribute "video_id"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
42
48
|
describe 'test attribute "updated_fields"' do
|
|
43
49
|
it 'should work' do
|
|
44
50
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -37,6 +37,18 @@ describe Late::UpdatePostMetadataRequest do
|
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
+
describe 'test attribute "video_id"' do
|
|
41
|
+
it 'should work' do
|
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
describe 'test attribute "account_id"' do
|
|
47
|
+
it 'should work' do
|
|
48
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
40
52
|
describe 'test attribute "title"' do
|
|
41
53
|
it 'should work' do
|
|
42
54
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
Binary file
|