Documentation
¶
Index ¶
- type HTTPClient
- type HTTPError
- type HTTPErrorList
- type IntercomError
- type IntercomHTTPClient
- func (c IntercomHTTPClient) Delete(ctx context.Context, url string, queryParams interface{}) ([]byte, error)
- func (c IntercomHTTPClient) Get(ctx context.Context, url string, queryParams interface{}) ([]byte, error)
- func (c IntercomHTTPClient) Patch(ctx context.Context, url string, body interface{}) ([]byte, error)
- func (c IntercomHTTPClient) Post(ctx context.Context, url string, body interface{}) ([]byte, error)
- func (c IntercomHTTPClient) Put(ctx context.Context, url string, body interface{}) ([]byte, error)
- func (c IntercomHTTPClient) UserAgentHeader() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
type HTTPClient interface {
Get(context.Context, string, interface{}) ([]byte, error)
Post(context.Context, string, interface{}) ([]byte, error)
Put(context.Context, string, interface{}) ([]byte, error)
Patch(context.Context, string, interface{}) ([]byte, error)
Delete(context.Context, string, interface{}) ([]byte, error)
}
type HTTPError ¶
func NewUnknownHTTPError ¶
func (HTTPError) GetMessage ¶
func (HTTPError) GetStatusCode ¶
type HTTPErrorList ¶
type IntercomError ¶
type IntercomHTTPClient ¶
type IntercomHTTPClient struct {
*http.Client
BaseURI *string
AppID string
APIKey string
ClientVersion *string
Debug *bool
}
func NewIntercomHTTPClient ¶
func NewIntercomHTTPClient(appID, apiKey string, baseURI, clientVersion *string, debug *bool) IntercomHTTPClient
func (IntercomHTTPClient) UserAgentHeader ¶
func (c IntercomHTTPClient) UserAgentHeader() string
Click to show internal directories.
Click to hide internal directories.