From b5bd213902320fa7faf4fa8d189cba661f94ecc1 Mon Sep 17 00:00:00 2001 From: Allan Nava Date: Thu, 19 Sep 2024 16:21:42 +0200 Subject: [PATCH] added description for PostVideoInit --- tiktok/content.go | 3 ++- tiktok/tiktok.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tiktok/content.go b/tiktok/content.go index 8f204c5..ffb49a6 100644 --- a/tiktok/content.go +++ b/tiktok/content.go @@ -61,7 +61,7 @@ curl --location 'https://open.tiktokapis.com/v2/post/publish/video/init/' \ } }' */ -func (o *tiktok) PostVideoInit(title, videoUrl string, privacyLevel string, disableDuet, disableComment, disableStitch bool) (*PublishVideoResponse, error) { +func (o *tiktok) PostVideoInit(title, description, videoUrl string, privacyLevel string, disableDuet, disableComment, disableStitch bool) (*PublishVideoResponse, error) { if !CheckPrivacyLevel(privacyLevel) { return nil, PrivacyLevelWrong } @@ -69,6 +69,7 @@ func (o *tiktok) PostVideoInit(title, videoUrl string, privacyLevel string, disa request := &PublishVideoRequest{ PostInfo: PostInfo{ Title: title, + Description: description, PrivacyLevel: privacyLevel, DisableDuet: disableDuet, DisableComment: disableComment, diff --git a/tiktok/tiktok.go b/tiktok/tiktok.go index 900e90b..0f19a3e 100644 --- a/tiktok/tiktok.go +++ b/tiktok/tiktok.go @@ -15,7 +15,7 @@ type ITiktok interface { // GetClientAccessTokenManagement() (*AccessTokenManagement, error) CreatorInfo() (*QueryCreatorInfoResponse, error) - PostVideoInit(title, videoUrl string, privacyLevel string, disableDuet, disableComment, disableStitch bool) (*PublishVideoResponse, error) + PostVideoInit(title, description, videoUrl string, privacyLevel string, disableDuet, disableComment, disableStitch bool) (*PublishVideoResponse, error) PublishVideo(publishId string) (*PublishStatusFetchResponse, error) GetVideoList(count int64) (*VideoListResponse, error) PostPhotoInit(title, description, privacyLevel string, photoUrls []string, photoMode string) (*PublishStatusFetchResponse, error)