Documentation
¶
Index ¶
- Constants
- Variables
- type APIError
- type Client
- func (c *Client) Delete(path string, params url.Values) (json.RawMessage, error)
- func (c *Client) Get(path string, params url.Values) (json.RawMessage, error)
- func (c *Client) GetData(path string, params url.Values) (json.RawMessage, error)
- func (c *Client) Patch(path string, params url.Values, body any) (json.RawMessage, error)
- func (c *Client) Post(path string, params url.Values, body any) (json.RawMessage, error)
- func (c *Client) Put(path string, params url.Values, body any) (json.RawMessage, error)
- func (c *Client) RawRequest(method, fullURL string, body any) (json.RawMessage, error)
- func (c *Client) SetTimeout(d time.Duration)
Constants ¶
View Source
const ( ExitAPIError = 1 ExitAuthError = 2 )
Variables ¶
View Source
var Version = "dev"
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type Client ¶
type Client struct {
HTTP *http.Client
BaseURL string
DataURL string
APIKey string
Secret string
AccessToken string
UserAgent string
Verbose bool
Debug bool
Quiet bool
Trace bool
Timeout time.Duration
}
func (*Client) RawRequest ¶
func (*Client) SetTimeout ¶
Click to show internal directories.
Click to hide internal directories.