tiktok-dl/client/getVideoDetails.go

15 lines
362 B
Go
Raw Normal View History

package client
import (
2020-04-12 03:22:00 +03:00
models "github.com/pikami/tiktok-dl/models"
)
// GetVideoDetails - returns details of video
2020-02-25 20:12:01 +02:00
func GetVideoDetails(videoURL string) (models.Upload, error) {
actionOutput, err := executeClientAction(videoURL, "bootstrapGetCurrentVideo()")
if err != nil {
return models.Upload{}, err
}
return models.ParseUpload(actionOutput), nil
}