Documentation
¶
Index ¶
- type Client
- func (c *Client) Delete(path *string) (*http.Response, error)
- func (c *Client) DeleteWithBody(path *string, body interface{}) (*http.Response, error)
- func (c *Client) Get(path *string, queryParams mod.Queryable) (*http.Response, error)
- func (c *Client) Post(path *string, body interface{}) (*http.Response, error)
- func (c *Client) Put(path *string, body interface{}) (*http.Response, error)
- type HTTPClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
HttpClient HTTPClient // HTTPClient interface for making HTTP requests
Auth authentication.AuthenticatorAPI // Authenticator for managing authentication
OLdomain string // OneLogin domain
Timeout time.Duration
}
Client represents the API client.
func (*Client) Delete ¶
Delete sends a DELETE request to the specified path with the given query parameters.
func (*Client) DeleteWithBody ¶
Delete sends a DELETE request to the specified path with the given query parameters and request body.
Click to show internal directories.
Click to hide internal directories.