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 ¶
type Request struct {
Obj interface{}
Entity interface{}
Params url.Values
// contains filtered or unexported fields
}
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.