Skip to content

Commit

Permalink
added description for PostVideoInit
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Sep 19, 2024
1 parent 24e17b1 commit b5bd213
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tiktok/content.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,15 @@ 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
}
//
request := &PublishVideoRequest{
PostInfo: PostInfo{
Title: title,
Description: description,
PrivacyLevel: privacyLevel,
DisableDuet: disableDuet,
DisableComment: disableComment,
Expand Down
2 changes: 1 addition & 1 deletion tiktok/tiktok.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b5bd213

Please sign in to comment.