Documentation
¶
Index ¶
- type ApiClient
- func (client *ApiClient) GenerateToken() (string, error)
- func (client *ApiClient) Get(path string) (*http.Response, error)
- func (client *ApiClient) GetParams(path string, params *url.Values) (*http.Response, error)
- func (client *ApiClient) Post(path, contentType string, body io.Reader) (*http.Response, error)
- type ApiClientOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiClient ¶
type ApiClient struct {
// contains filtered or unexported fields
}
func NewApiClient ¶
func NewApiClient( apiKey string, optionFns ...ApiClientOption, ) *ApiClient
func (*ApiClient) GenerateToken ¶
type ApiClientOption ¶
type ApiClientOption func(*ApiClient)
func WithTenantId ¶
func WithTenantId(tenantId int) ApiClientOption
WithTenantId allows configuring the tenant id.
Click to show internal directories.
Click to hide internal directories.