Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBody ¶
DecodeBody is used to JSON decode a body
func EncodeBody ¶
EncodeBody is used to encode a request body
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides a client to the API.
type Error ¶
type Request ¶
func NewRequest ¶
NewRequest is used to create a new request.
type Response ¶
type Response struct { Request struct { ID string `json:"id"` } `json:"request"` Response struct { Errors []responseError `json:"errors"` Items []json.RawMessage `json:"items"` } `json:"response"` }
Click to show internal directories.
Click to hide internal directories.