Documentation ¶
Index ¶
- type Client
- func (c *Client) Get(path string, params map[string]string, res interface{}, auth bool) (err error)
- func (c *Client) Nonce() (n string)
- func (c *Client) Post(path string, d, res interface{}, auth bool) (err error)
- func (c *Client) Sign(path, data string) (err error)
- func (c *Client) URL() (url string)
- type ErrorResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the http client wrapper for Crex24. It handles signing of messages to authentication required routes and the JSON encoding and decoding.
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"errorDescription"`
}
ErrorResponse for errors from API.
Click to show internal directories.
Click to hide internal directories.