Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is a client for Unsplash.com's API
func (*Client) GetCollection ¶
GetCollection gets all the photos from a collection
type Photo ¶
type Photo struct { ID string `json:"id"` Width int `json:"width"` Height int `json:"height"` Color string `json:"color"` Likes int `json:"likes"` LikedByUser bool `json:"liked_by_user"` User struct { ID string `json:"id"` Username string `json:"username"` Name string `json:"name"` ProfileImage struct { Small string `json:"small"` Medium string `json:"medium"` Large string `json:"large"` } `json:"profile_image"` Links struct { Self string `json:"self"` HTML string `json:"html"` Photos string `json:"photos"` Likes string `json:"likes"` } `json:"links"` } `json:"user"` CurrentUserCollections []interface{} `json:"current_user_collections"` Urls struct { Raw string `json:"raw"` Full string `json:"full"` Regular string `json:"regular"` Small string `json:"small"` Thumb string `json:"thumb"` } `json:"urls"` Categories []interface{} `json:"categories"` Links struct { Self string `json:"self"` HTML string `json:"html"` Download string `json:"download"` } `json:"links"` }
Photo is an Unsplash Photo
Click to show internal directories.
Click to hide internal directories.