Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Token ¶
type Token struct { // LicenseID specifies ID of license which owns the token. LicenseID *int // AccessToken is a customer access token returned by LiveChat OAuth Server. AccessToken string // Region is a datacenter for LicenseID (`dal` or `fra`). Region string // Type specifies whether it is Bearer or Basic token type. Type TokenType }
Token represents SSO token from Chat API's perspective.
type TokenGetter ¶
type TokenGetter func() *Token
TokenGetter is called by each API method to obtain valid Token. If TokenGetter returns nil, the method won't be executed on API.
Click to show internal directories.
Click to hide internal directories.