Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { // APIURL defines base of API endpoint (without version, component and action). APIURL string // contains filtered or unexported fields }
API provides the base client for making requests to Livechat Web APIs.
func NewAPI ¶
func NewAPI(t authorization.TokenGetter, client *http.Client, clientID, name string) (*API, error)
NewAPI returns ready to use raw API client. This is a base that is used internally by specialized clients for each API, you should use those instead
If provided client is nil, then default http client with 20s timeout is used.
Click to show internal directories.
Click to hide internal directories.