tiktok

package
v0.0.0-...-f28f8fe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Origin = "http://api2.musical.ly"

Variables

This section is empty.

Functions

func GetId

func GetId(uri string) (string, error)

func Parse

func Parse(id string) (uint64, error)

Types

type AwemeDetail

type AwemeDetail struct {
	Author struct {
		Unique_ID string
	}
	Aweme_ID    string
	Create_Time int64
	Desc        string
	Video       struct {
		Duration  int64
		Play_Addr struct {
			Width    int
			Height   int
			URL_List []string
		}
	}
}

func NewAwemeDetail

func NewAwemeDetail(id uint64, transport http.RoundTripper) (*AwemeDetail, error)

func (AwemeDetail) Description

func (a AwemeDetail) Description() string

func (*AwemeDetail) DownloadVideo

func (det *AwemeDetail) DownloadVideo(downloadBytesLimit int64) (*os.File, error)

func (AwemeDetail) Duration

func (a AwemeDetail) Duration() time.Duration

func (AwemeDetail) Time

func (a AwemeDetail) Time() string

func (AwemeDetail) URL

func (a AwemeDetail) URL() (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL