Documentation
¶
Index ¶
- Constants
- Variables
- type Action
- type Caption
- type Cat
- func (c *Cat) BookmarkGfy(id string) (*http.Response, error)
- func (c *Cat) BookmarkGfyInFolder(folder, gfy string) (*http.Response, error)
- func (g *Cat) ChangeFolderName(newName, folderid string) (*http.Response, error)
- func (g *Cat) CheckFollow(user string) (int, error)
- func (c *Cat) CheckStatusOfUpload(name string) (*Status, error)
- func (c *Cat) CreateAlbum(name string) (*http.Response, error)
- func (c *Cat) CreateAlbumInFolder(folder, title, description string, contents []string) (*http.Response, error)
- func (g *Cat) CreateFolder(foldername, insidefolder string) (*http.Response, error)
- func (g *Cat) DeleteDomainWhitelist() (*http.Response, error)
- func (g *Cat) DeleteFolder(folderid string) (*http.Response, error)
- func (g *Cat) DeleteGeoWhitelist() (*http.Response, error)
- func (c *Cat) DeleteGfycat(gfyid string) (*http.Response, error)
- func (c *Cat) DeleteGfycatDescription(gfyid, desc string) (*http.Response, error)
- func (c *Cat) DeleteGfycatDomainWhitelist(gfyid string) (*http.Response, error)
- func (c *Cat) DeleteGfycatGeoWhitelist(gfyid string) (*http.Response, error)
- func (c *Cat) DeleteGfycatTitle(gfyid string) (*http.Response, error)
- func (g *Cat) EmailIsVerified() (bool, error)
- func (g *Cat) FollowUser(user string) (int, error)
- func (c *Cat) GetAlbumContents(album string) (*http.Response, error)
- func (c *Cat) GetAlbumFolders() (*http.Response, error)
- func (c *Cat) GetBookmarkFolderContent(folderid string) (*http.Response, error)
- func (c *Cat) GetBookmarks() (*http.Response, error)
- func (g *Cat) GetDomainWhitelist() (*http.Response, error)
- func (g *Cat) GetFolder(folderid string) (*http.Response, error)
- func (g *Cat) GetFolderName(folderid string) (*http.Response, error)
- func (g *Cat) GetFollows() (*http.Response, error)
- func (g *Cat) GetGeoWhitelist() (*http.Response, error)
- func (c *Cat) GetGfycatDomainWhitelist(gfyid string) (*http.Response, error)
- func (c *Cat) GetGfycatGeoWhitelist(gfyid string) (*http.Response, error)
- func (g *Cat) GetListOfFollowers() (*http.Response, error)
- func (g *Cat) GetPrivateFeed() (*UserFeed, error)
- func (g *Cat) GetSelfDetails() (*User, error)
- func (g *Cat) GetTimeline() (*UserFeed, error)
- func (g *Cat) GetToken() string
- func (c *Cat) GetTrendingGfycats(tag, cursor string) ([]Gfycat, error)
- func (c *Cat) GetTrendingTags() ([]string, error)
- func (c *Cat) GetTrendingTagsPopulated(values url.Values) ([]Gfycat, error)
- func (g *Cat) GetUser(userid string) (*User, error)
- func (c *Cat) GetUserAlbumContents(user, album string) (*http.Response, error)
- func (c *Cat) GetUserAlbumContentsByLinkText(user, linkText string) (*http.Response, error)
- func (g *Cat) GetUserFeed(user string) (*UserFeed, error)
- func (g *Cat) GetUsername(username string) (string, error)
- func (c *Cat) GfyIsBookmarked(gfy string) (*http.Response, error)
- func (c *Cat) MoveAlbumToFolder(parentid, album string) (*http.Response, error)
- func (g *Cat) MoveContentInFolder(folderid, parentid string, gfyids []string) (*http.Response, error)
- func (g *Cat) MoveFolder(folderid, parentid string) (*http.Response, error)
- func (c *Cat) MoveToFolder(folder, parent string, gfys []string) (*http.Response, error)
- func (g *Cat) MyFolders() (*http.Response, error)
- func (c *Cat) PutAlbumDescription(album, value string) (*http.Response, error)
- func (c *Cat) PutAlbumNsfw(value int, album string) (*http.Response, error)
- func (c *Cat) PutAlbumTitle(album, value string) (*http.Response, error)
- func (c *Cat) PutPublished(value int, album string) (*http.Response, error)
- func (g *Cat) ResetPassword(usernameOrEmail string) (success bool, err error)
- func (c *Cat) SearchGfycats(searchText string) (*GfycatSearchT, error)
- func (c *Cat) SearchUserAccount(searchText string) ([]Gfycat, error)
- func (g *Cat) SendVerificationEmail() (success bool, err error)
- func (c *Cat) UnbookmarkGfy(gfy string) (*http.Response, error)
- func (c *Cat) UnbookmarkGfyInFolder(folder, gfy string) (*http.Response, error)
- func (g *Cat) UnfollowUser(user string) (int, error)
- func (c *Cat) UpdateAlbum(action Action, album, parentid string, a ...string) (*http.Response, error)
- func (g *Cat) UpdateDetails(u *Update) (success bool, err error)
- func (g *Cat) UpdateDomainWhitelist(domains []string) error
- func (g *Cat) UpdateGeoWhitelist(geolocations []string) error
- func (c *Cat) UpdateGfycatDescription(gfyid, desc string) (*http.Response, error)
- func (c *Cat) UpdateGfycatDomainWhitelist(gfyid string, domains []string) (*http.Response, error)
- func (c *Cat) UpdateGfycatGeoWhitelist(gfyid string, geoLocations []string) (*http.Response, error)
- func (c *Cat) UpdateGfycatNsfw(gfyid, nsfw string) (*http.Response, error)
- func (c *Cat) UpdateGfycatPublished(gfyid, pub string) (*http.Response, error)
- func (c *Cat) UpdateGfycatTags(gfyid string, tags []string) (*http.Response, error)
- func (c *Cat) UpdateGfycatTitle(gfyid, title string) (*http.Response, error)
- func (c *Cat) UploadFile(file *UploadFile) (*http.Response, error)
- type Crop
- type Cut
- type Gfycat
- type GfycatSearchT
- type GrantType
- type Operation
- type Status
- type Update
- type UploadFile
- type UploadRequest
- type User
- type UserFeed
Constants ¶
View Source
const ( // None no action None Action = "" Add = "add_to" Move = "move_contents" Remove = "remove_contents" )
Variables ¶
View Source
var Album = func(aid string) string { return Albums() + "/" + aid }
View Source
var AlbumDescription = func(aid string) string { return Album(aid) + "/description" }
View Source
var AlbumFolder = func(fid string) string { return AlbumFolders() + "/" + fid }
View Source
var AlbumFolders = func() string { return Me() + "/album-folders" }
View Source
var AlbumNsfw = func(aid string) string { return Album(aid) + "/nsfw" }
View Source
var AlbumOrder = func(aid string) string { return Album(aid) + "/order" }
View Source
var AlbumPublished = func(aid string) string { return Album(aid) + "/published" }
View Source
var AlbumTitle = func(aid string) string { return Album(aid) + "/title" }
View Source
var Albums = func() string { return Me() + "/albums" }
View Source
var Authentication = func() string { return Base() + "oauth/token" }
View Source
var Base = func() string { return "https://api.gfycat.com/v1/" }
View Source
var BookmarkFolder = func(id string) string { return BookmarkFolders() + "/" + id }
View Source
var BookmarkFolderContents = func(fid, gid string) string { return BookmarkFolder(fid) + "/contents/" + gid }
View Source
var BookmarkFolders = func() string { return Me() + "/bookmark-folders" }
View Source
var BookmarkGfy = func(id string) string { return Bookmarks() + "/" + id }
View Source
var Bookmarks = func() string { return Me() + "/bookmarks" }
View Source
var DomainWhitelist = func() string { return Me() + "/domain-whitelist" }
View Source
var Folder = func(folderid string) string { return Folders() + "/" + folderid }
View Source
var FolderName = func(folderid string) string { return Folder(folderid) + "/name" }
View Source
var Folders = func() string { return Me() + "/folders" }
View Source
var Followers = func() string { return Me() + "/followers" }
View Source
var Follows = func() string { return Me() + "/follows" }
View Source
var FollowsCats = func() string { return Follows() + "/gfycats" }
View Source
var FollowsUser = func(user string) string { return Follows() + "/" + user }
View Source
var GeoWhitelist = func() string { return Me() + "/geo-whitelist" }
View Source
var GfycatDescription = func(gid string) string { return _Gfycat(gid) + "/description" }
View Source
var GfycatDomainWhitelist = func(gid string) string { return _Gfycat(gid) + "/domain-whitelist" }
View Source
var GfycatGeoWhitelist = func(gid string) string { return _Gfycat(gid) + "/geo-whitelist" }
View Source
var GfycatNsfw = func(gid string) string { return _Gfycat(gid) + "/nsfw" }
View Source
var GfycatPublished = func(gid string) string { return _Gfycat(gid) + "/published" }
View Source
var GfycatSearch = func(text string) string { return TestApi() + "/gfycats/search?search_text=" + text }
View Source
var GfycatTags = func(gid string) string { return _Gfycat(gid) + "/tags" }
View Source
var GfycatTitle = func(gid string) string { return _Gfycat(gid) + "/title" }
View Source
var Gfycats = func() string { return Base() + "gfycats" }
View Source
var Me = func() string { return Base() + "me" }
======= DON'T USE THESE ENDPOINTS ========
View Source
var MyCats = func() string { return Me() + "/gfycats" }
View Source
var Tags = func() string { return Base() + "tags" }
View Source
var TestApi = func() string { return "https://api.gfycat.com/v1test" }
View Source
var TrendingGfycats = func() string { return Gfycats() + "/trending" }
View Source
var TrendingGfycatsTag = func(tag string) string { return TrendingGfycats() + "?" + tag }
View Source
var TrendingTags = func() string { return Tags() + "/trending" }
View Source
var TrendingTagsPopulated = func() string { return TrendingTags() + "/populated" }
View Source
var UserAlbumLinkTextContents = func(uid, lt string) string { return Users() + uid + "/album_link/" + lt }
View Source
var UserAlbums = func(uid, aid string) string { return Users() + "/" + uid + "/albums/" + aid }
View Source
var UserCats = func(user string) string { return _User(user) + "/gfycats" }
View Source
var UserSearch = func(text string) string { return TestApi() + "/me/gfycats/search?search_text=" + text }
View Source
var Users = func() string { return Base() + "users/" }
View Source
var Verification = func() string { return Me() + "/send_verification_email" }
View Source
var Verified = func() string { return Me() + "/email_verified" }
Functions ¶
This section is empty.
Types ¶
type Caption ¶
type Caption struct { Text string `json:"text"` StartSeconds int `json:"startSeconds"` Duration int `json:"duration"` FontHeight int `json:"fontHeight"` X int `json:"x"` Y int `json:"y"` FontHeightRelative float32 `json:"fontHeightRelative"` XRelatice float32 `json:"xRelative"` YRelative float32 `json:"yRelative"` }
type Cat ¶
type Cat struct {
ClientID, ClientSecret string
Type GrantType
// contains filtered or unexported fields
}
func (*Cat) BookmarkGfyInFolder ¶
func (*Cat) ChangeFolderName ¶
func (*Cat) CreateAlbumInFolder ¶
func (*Cat) CreateFolder ¶
func (*Cat) DeleteGfycatDescription ¶
func (*Cat) DeleteGfycatDomainWhitelist ¶
func (*Cat) DeleteGfycatGeoWhitelist ¶
func (*Cat) DeleteGfycatTitle ¶
func (*Cat) EmailIsVerified ¶
func (*Cat) GetBookmarkFolderContent ¶
func (*Cat) GetGfycatDomainWhitelist ¶
func (*Cat) GetGfycatGeoWhitelist ¶
func (*Cat) GetPrivateFeed ¶
func (*Cat) GetSelfDetails ¶
func (*Cat) GetTimeline ¶
func (*Cat) GetTrendingGfycats ¶
Count is 10 by default
func (*Cat) GetTrendingTags ¶
func (*Cat) GetTrendingTagsPopulated ¶
func (*Cat) GetUserAlbumContents ¶
TODO: Check following two functions
func (*Cat) GetUserAlbumContentsByLinkText ¶
jesus
func (*Cat) MoveAlbumToFolder ¶
func (*Cat) MoveContentInFolder ¶
func (*Cat) MoveFolder ¶
func (*Cat) MoveToFolder ¶
func (*Cat) PutAlbumDescription ¶
func (*Cat) PutAlbumNsfw ¶
func (*Cat) PutAlbumTitle ¶
func (*Cat) PutPublished ¶
func (*Cat) ResetPassword ¶
func (*Cat) SearchGfycats ¶
func (c *Cat) SearchGfycats(searchText string) (*GfycatSearchT, error)
func (*Cat) SearchUserAccount ¶
func (*Cat) SendVerificationEmail ¶
func (*Cat) UnbookmarkGfyInFolder ¶
func (*Cat) UpdateAlbum ¶
func (*Cat) UpdateDomainWhitelist ¶
func (*Cat) UpdateGeoWhitelist ¶
func (*Cat) UpdateGfycatDescription ¶
func (*Cat) UpdateGfycatDomainWhitelist ¶
func (*Cat) UpdateGfycatGeoWhitelist ¶
func (*Cat) UpdateGfycatNsfw ¶
func (*Cat) UpdateGfycatPublished ¶
func (*Cat) UpdateGfycatTags ¶
func (*Cat) UpdateGfycatTitle ¶
func (*Cat) UploadFile ¶
func (c *Cat) UploadFile(file *UploadFile) (*http.Response, error)
type Gfycat ¶
type Gfycat struct { GfyID string `json:"gfyId"` GfyName string `json:"gfyName"` GfyNumber string `json:"gfyNumber"` WebmURL string `json:"webmUrl"` GifURL string `json:"gifUrl"` MobileURL string `json:"mobileUrl"` MobilePosterURL string `json:"mobilePosterUrl"` MiniURL string `json:"miniUrl"` MiniPosterURL string `json:"miniPosterUrl"` PosterURL string `json:"posterUrl"` Thumb360URL string `json:"thumb360Url"` Thumb360PosterURL string `json:"thumb360PosterUrl"` Thumb100PosterURL string `json:"thumb100PosterUrl"` Max5MBGif string `json:"max5mbGif"` Max2MBGif string `json:"max2mbGif"` MJPGURL string `json:"mjpgUrl"` Width int `json:"width"` Height int `json:"height"` AvgColor string `json:"avgColor"` FrameRate int `json:"frameRate"` NumFrames int `json:"numFrames"` MP4Size int `json:"mp4Size"` WebmSize int `json:"webmSize"` GifSize int `json:"gifSize"` Source int `json:"source"` CreateDate int `json:"createDate"` NSFW string `json:"nsfw"` MP4URL string `json:"mp4Url"` //Likes int `json:"likes"` //Published int `json:"published"` Dislikes int `json:"dislikes"` ExtraLemmas string `json:"extraLemmas"` MD5 string `json:"md5"` Views int `json:"views"` Tags []string `json:"tags"` Username string `json:"userName"` Title string `json:"title"` Description string `json:"description"` LanguageCategories interface{} `json:"languageCategories"` DomainWhiteList []string `json:"domainWhitelist"` }
Gfycat object
type GfycatSearchT ¶
type UploadFile ¶
type UploadFile struct { FetchUrl string `json:"fetchUrl"` Title string `json:"title"` Description string `json:"description"` Tags []string `json:"tags"` NoMd5 string `json:"noMd5"` Private int `json:"private"` Nsfw int `json:"nsfw"` FetchSeconds int `json:"fetchSeconds"` FetchMinutes int `json:"fetchMinutes"` FethHours int `json:"fetchHours"` Captions []Caption `json:"captions"` Cut []Cut `json:"cut"` Crop []Crop `json:"crop"` }
type UploadRequest ¶
type User ¶
type User struct { Userid string `json:"userid"` Username string `json:"username"` Email string `json:"email"` Description string `json:"description"` ProfileURL string `json:"profileUrl"` Name string `json:"name"` Views string `json:"views"` UploadNotices bool `json:"uploadNotices"` EmailVerified bool `json:"emailVerified"` URL string `json:"url"` CreateDate string `json:"createDate"` ProfileImageURL string `json:"profileImageUrl"` Verified bool `json:"verified"` Followers string `json:"followers"` Following string `json:"following"` GeoWhitelist string `json:"geoWhitelist"` DomainWhitelist string `json:"domainWhitelist"` IFrameProfileImageVisible bool `json:"iframeProfileImageVisible"` PublishedGfycats string `json:"publishedGfycats"` PublishedAlbums string `json:"publishedAlbums"` }
Click to show internal directories.
Click to hide internal directories.