Documentation ¶
Index ¶
- type Client
- func (c *Client) GetQueryString(u *url.URL)
- func (c *Client) GetQueryStrings(u *url.URL, query map[string]interface{})
- func (c *Client) NewClient(user, key, endpoint string) *Client
- func (c *Client) RestAPICall(method Method, path string, options interface{}, ...) ([]byte, error)
- func (c *Client) SetAuthHeaderOptions(headers map[string]string)
- func (c *Client) SetQueryString(query map[string]interface{})
- type Method
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Method User string Password string Domain string APIKey string APIVersion int SSLVerify bool Endpoint string IfMatch string Option Options }
Client - generic REST api client
func (*Client) GetQueryString ¶
GetQueryString - get a query string for url through the Client Struct
func (*Client) GetQueryStrings ¶
GetQueryString - get a query string for url
func (*Client) RestAPICall ¶
func (c *Client) RestAPICall(method Method, path string, options interface{}, query ...map[string]interface{}) ([]byte, error)
RestAPICall - general rest method caller query is an variadic arg. It receives a slice of map[string]interface{}
func (*Client) SetAuthHeaderOptions ¶
SetAuthHeaderOptions - set the Headers Options
func (*Client) SetQueryString ¶
SetQueryString - set the query strings to use
Click to show internal directories.
Click to hide internal directories.