Versions in this module Expand all Collapse all v0 v0.1.0 Dec 9, 2020 Changes in this version + const PopupMode + const PostMessageMode + const WithAmojoID + const WithAmojoRights + const WithDatetimeSettings + const WithTaskTypes + const WithUUID + const WithUserGroups + const WithVersion + func RandomState() string + type Account struct + AmojoID string + ContactNameDisplayOrder int + Country string + CreatedAt int + CreatedBy int + Currency string + CurrentUserID int + CustomersMode string + Embedded struct{ ... } + ID int + IsHelpbotEnabled bool + IsLossReasonEnabled bool + IsTechnicalAccount bool + IsUnsortedOn bool + Links struct{ ... } + MobileFeatureVersion int + Name string + Subdomain string + UUID string + UpdatedAt int + UpdatedBy int + Version int + type Accounts interface + Current func(cfg AccountsConfig) (*Account, error) + type AccountsConfig struct + Relations []string + type Client interface + Accounts func() Accounts + AuthorizeURL func(state, mode string) (*url.URL, error) + SetDomain func(domain string) error + SetToken func(token Token) error + TokenByCode func(code string) (Token, error) + func New(clientID, clientSecret, redirectURL string) Client + type GrantType struct + type Token interface + AccessToken func() string + Expired func() bool + ExpiresAt func() time.Time + RefreshToken func() string + TokenType func() string + func NewToken(accessToken, refreshToken, tokenType string, expiresAt time.Time) Token