Documentation ¶
Index ¶
Constants ¶
View Source
const ( MediaFilterBasic = "basic" MediaFilterMinimal = "minimal" MediaFilterAll = "" )
Variables ¶
View Source
var ( BaseEndpoint = "https://api.tenor.com" Version = "1" Path = "/v" + Version Endpoint = BaseEndpoint + Path + "/" )
Functions ¶
This section is empty.
Types ¶
type Dimensions ¶
type Dimensions struct {
Width, Height int
}
func (*Dimensions) UnmarshalJSON ¶
func (d *Dimensions) UnmarshalJSON(data []byte) error
type GIFFormat ¶
type GIFFormat string
const ( FormatMP4 GIFFormat = "mp4" FormatLoopedMP4 GIFFormat = "loopedmp4" FormatTinyMP4 GIFFormat = "tinymp4" FormatNanoMP4 GIFFormat = "nanomp4" FormatGIF GIFFormat = "gif" FormatMediumGIF GIFFormat = "mediumgif" FormatTinyGIF GIFFormat = "tinygif" FormatNanoGIF GIFFormat = "nanogif" FormatWebM GIFFormat = "webm" FormatTinyWebM GIFFormat = "tinywebm" FormatNanoWebM GIFFormat = "nanowebm" )
type Media ¶
type Media struct { Preview string `json:"preview"` URL string `json:"url"` Dimensions Dimensions `json:"dims"` Size int `json:"size"` }
type MediaFilter ¶
type MediaFilter string
Click to show internal directories.
Click to hide internal directories.