tiktok-dl/client/getVideoDetails.go
2020-02-25 20:12:01 +02:00

15 lines
337 B
Go

package client
import (
models "../models"
)
// GetVideoDetails - returns details of video
func GetVideoDetails(videoURL string) (models.Upload, error) {
actionOutput, err := executeClientAction(videoURL, "bootstrapGetCurrentVideo()")
if err != nil {
return models.Upload{}, err
}
return models.ParseUpload(actionOutput), nil
}