Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // DefaultEndpint is the Gyazo API endpoint. DefaultEndpoint string // UploadEndpint is the Gyazo upload API endpoint. UploadEndpoint string // contains filtered or unexported fields }
Client manages communication with the Gyazo API.
type ErrorResponse ¶
ErrorResponse reports error caused by API request.
func (*ErrorResponse) Error ¶
func (r *ErrorResponse) Error() string
Error returns the error response status and message.
type Image ¶
type Image struct { ID string `json:"image_id"` PermalinkURL string `json:"permalink_url"` ThumbURL string `json:"thumb_url"` URL string `json:"url"` Type string `json:"type"` Star bool `json:"star"` CreatedAt string `json:"created_at"` }
Image represents an uploaded image.
Gyazo API docs: https://gyazo.com/api/docs/image
type ListOptions ¶
ListOptions specifies the optional parameters to an API request.
Click to show internal directories.
Click to hide internal directories.