Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotAuthorized = errors.New("401 when testing RedGifs access token") ErrNotFound = errors.New("404/410 gif not found") )
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v1.0.0
type Client interface {
RequestNewAccessToken() (string, error)
LookupStreamURL(ipAddress, userAgent, redGifsID, accessToken string) (string, error)
}
Client defines the methods for interacting with the RedGifs API.
type RedGifsGif ¶
type RedGifsGif struct {
Urls RedGifsUrls `json:"urls"`
}
type RedGifsLookupResponse ¶
type RedGifsLookupResponse struct {
Gif RedGifsGif `json:"gif"`
}
type RedGifsTokenResponse ¶
type RedGifsUrls ¶
type RedGifsUrls struct {
Hd string `json:"hd"`
}
Click to show internal directories.
Click to hide internal directories.