imgur

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Album

type Album struct {
	Id          string   `json:"id"`
	Title       string   `json:"title"`
	ImagesCount int      `json:"images_count"`
	Images      []*Image `json:"images"`
}
type Gallery struct {
	Id          string   `json:"id"`
	Title       string   `json:"title"`
	ImagesCount int      `json:"images_count"`
	Images      []*Image `json:"images"`
}

type Image

type Image struct {
	Id   string `json:"id"`
	Link string `json:"link"`
	Nsfw bool   `json:"nsfw"`
}

type Imgur

type Imgur struct {
	// contains filtered or unexported fields
}

func MakeImgur

func MakeImgur(clientId string) *Imgur

func (*Imgur) DownloadImage

func (i *Imgur) DownloadImage(url, writePath string) error

func (*Imgur) GetAlbum

func (i *Imgur) GetAlbum(albumId string) (*Album, error)

func (*Imgur) GetGallery

func (i *Imgur) GetGallery(galleryId string) (*Gallery, error)

type ImgurResponse

type ImgurResponse struct {
	Data interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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