Documentation ¶
Index ¶
- type Client
- func (c *Client) GetQueryString(u *url.URL)
- 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
func (*Client) RestAPICall ¶
RestAPICall - general rest method caller
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.