late-sdk 0.0.83 → 0.0.84

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.
data/lib/late-sdk.rb CHANGED
@@ -592,6 +592,8 @@ require 'late-sdk/models/update_inbox_conversation200_response_data'
592
592
  require 'late-sdk/models/update_inbox_conversation_request'
593
593
  require 'late-sdk/models/update_linked_in_organization_request'
594
594
  require 'late-sdk/models/update_pinterest_boards_request'
595
+ require 'late-sdk/models/update_post_metadata200_response'
596
+ require 'late-sdk/models/update_post_metadata_request'
595
597
  require 'late-sdk/models/update_post_request'
596
598
  require 'late-sdk/models/update_profile200_response'
597
599
  require 'late-sdk/models/update_profile_request'
data/openapi.yaml CHANGED
@@ -5360,6 +5360,83 @@ paths:
5360
5360
  '404': { $ref: '#/components/responses/NotFound' }
5361
5361
  '500':
5362
5362
  description: Platform API deletion failed
5363
+ /v1/posts/{postId}/update-metadata:
5364
+ post:
5365
+ operationId: updatePostMetadata
5366
+ tags: [Posts]
5367
+ summary: Update post metadata
5368
+ description: |
5369
+ Updates metadata of an already-published post on the specified platform without re-uploading the media.
5370
+ Currently only supported for YouTube videos (title, description, tags, category, privacy status).
5371
+ The post must have "published" status on the target platform. At least one updatable field is required.
5372
+ parameters:
5373
+ - name: postId
5374
+ in: path
5375
+ required: true
5376
+ schema: { type: string }
5377
+ requestBody:
5378
+ required: true
5379
+ content:
5380
+ application/json:
5381
+ schema:
5382
+ type: object
5383
+ required: [platform]
5384
+ properties:
5385
+ platform:
5386
+ type: string
5387
+ description: The platform to update metadata on
5388
+ enum:
5389
+ - youtube
5390
+ title:
5391
+ type: string
5392
+ maxLength: 100
5393
+ description: New video title (max 100 characters for YouTube)
5394
+ description:
5395
+ type: string
5396
+ description: New video description
5397
+ tags:
5398
+ type: array
5399
+ items:
5400
+ type: string
5401
+ maxLength: 100
5402
+ description: Array of keyword tags (max 500 characters combined for YouTube)
5403
+ categoryId:
5404
+ type: string
5405
+ description: YouTube video category ID
5406
+ privacyStatus:
5407
+ type: string
5408
+ enum: [public, private, unlisted]
5409
+ description: Video privacy setting
5410
+ example:
5411
+ platform: "youtube"
5412
+ title: "Updated Video Title"
5413
+ description: "New SEO-optimized description"
5414
+ tags: ["seo", "marketing", "tutorial"]
5415
+ responses:
5416
+ '200':
5417
+ description: Metadata updated successfully
5418
+ content:
5419
+ application/json:
5420
+ schema:
5421
+ type: object
5422
+ properties:
5423
+ success: { type: boolean }
5424
+ message: { type: string }
5425
+ updatedFields:
5426
+ type: array
5427
+ items: { type: string }
5428
+ example:
5429
+ success: true
5430
+ message: "Video metadata updated on youtube successfully"
5431
+ updatedFields: ["title", "description", "tags"]
5432
+ '400':
5433
+ description: "Invalid request: unsupported platform, post not published, missing fields, or validation error."
5434
+ '401': { $ref: '#/components/responses/Unauthorized' }
5435
+ '403':
5436
+ description: Forbidden
5437
+ '404': { $ref: '#/components/responses/NotFound' }
5438
+ '500':
5439
+ description: Platform API update failed
5363
5440
  /v1/users:
5364
5441
  get:
5365
5442
  operationId: listUsers
@@ -141,4 +141,17 @@ describe 'PostsApi' do
141
141
  end
142
142
  end
143
143
 
144
+ # unit tests for update_post_metadata
145
+ # Update post metadata
146
+ # Updates metadata of an already-published post on the specified platform without re-uploading the media. Currently only supported for YouTube videos (title, description, tags, category, privacy status). The post must have \"published\" status on the target platform. At least one updatable field is required.
147
+ # @param post_id
148
+ # @param update_post_metadata_request
149
+ # @param [Hash] opts the optional parameters
150
+ # @return [UpdatePostMetadata200Response]
151
+ describe 'update_post_metadata test' do
152
+ it 'should work' do
153
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
154
+ end
155
+ end
156
+
144
157
  end
@@ -0,0 +1,48 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Late::UpdatePostMetadata200Response
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Late::UpdatePostMetadata200Response do
21
+ #let(:instance) { Late::UpdatePostMetadata200Response.new }
22
+
23
+ describe 'test an instance of UpdatePostMetadata200Response' do
24
+ it 'should create an instance of UpdatePostMetadata200Response' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Late::UpdatePostMetadata200Response)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "success"' 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
+
36
+ describe 'test attribute "message"' 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
+
42
+ describe 'test attribute "updated_fields"' 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
+
48
+ end
@@ -0,0 +1,74 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Late::UpdatePostMetadataRequest
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Late::UpdatePostMetadataRequest do
21
+ #let(:instance) { Late::UpdatePostMetadataRequest.new }
22
+
23
+ describe 'test an instance of UpdatePostMetadataRequest' do
24
+ it 'should create an instance of UpdatePostMetadataRequest' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Late::UpdatePostMetadataRequest)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "platform"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["youtube"])
34
+ # validator.allowable_values.each do |value|
35
+ # expect { instance.platform = value }.not_to raise_error
36
+ # end
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "title"' 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 "description"' 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
+
52
+ describe 'test attribute "tags"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
55
+ end
56
+ end
57
+
58
+ describe 'test attribute "category_id"' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
61
+ end
62
+ end
63
+
64
+ describe 'test attribute "privacy_status"' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
67
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["public", "private", "unlisted"])
68
+ # validator.allowable_values.each do |value|
69
+ # expect { instance.privacy_status = value }.not_to raise_error
70
+ # end
71
+ end
72
+ end
73
+
74
+ end
Binary file