gfycat

package
v0.0.0-...-efacb46 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(clientID, clientSecret string) (string, error)

Generatetoken generates an OAUTH bearer token for given client ID and secret. The token is used for all future REST calls

func GetGyfcatLink(gfyname, token string, audio bool) (string, error)

GetGyfcatLink checks the status of an upload, and returns the url of the webm when encoding is finished

func UploadFile

func UploadFile(file *os.File, token string, audio bool) (string, error)

UploadFile uploads a file to gfycat, and returns the gfylink once it's finished uploading. Note that the sound doesn't work (yet!!!), doesn't matter what you put for that value.

func UploadVideo

func UploadVideo(link, token string, audio bool) (string, error)

UploadVideo uploads a given youtube video, returns link gfycat link

Types

This section is empty.

Jump to

Keyboard shortcuts

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