Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckResponse ¶
CheckResponse checks the API response for errors, and returns them if present.
Types ¶
type Client ¶
type Client struct { // UserAgent is the user agent to include in HTTP requests. UserAgent string // contains filtered or unexported fields }
func (*Client) NewRequest ¶
type ClientOptionFunc ¶
ClientOptionFunc can be used to customize a new Restful API client.
func WithTimeout ¶
func WithTimeout(timeout int) ClientOptionFunc
WithTimeout can be used to configure a custom timeout for requests.
func WithToken ¶
func WithToken(token string) ClientOptionFunc
WithToken is an option for NewClient to set token
Click to show internal directories.
Click to hide internal directories.