Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) CollectAllItems() ([]*models.Item, error)
- func (c *Client) CredentialsExpiry() time.Time
- func (c *Client) CredentialsManager() oauth2.CredentialsManager
- func (c *Client) Daemon() models.Daemon
- func (c *Client) GenerateAuthorizationURL() string
- func (c *Client) GenerateCredentials(greq gjson.Result) (*oauth2.Credentials, error)
- func (c *Client) LoadItem(sku string) (*models.Item, error)
- func (c *Client) RefreshCredentials() (*oauth2.Credentials, error)
- func (c *Client) SaveItem(item *models.Item) error
- func (c *Client) Start() error
- type Config
Constants ¶
View Source
const Vendor = "TIKTOK"
Vendor is key name for tiktok clients.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *models.BaseTenant Config *Config Credentials *oauth2.Credentials }
Client is a tiktok client.
func (*Client) CollectAllItems ¶
CollectAllItems collects and returns all items registered in this client.
func (*Client) CredentialsExpiry ¶
func (*Client) CredentialsManager ¶
func (c *Client) CredentialsManager() oauth2.CredentialsManager
func (*Client) GenerateAuthorizationURL ¶
func (*Client) GenerateCredentials ¶
func (*Client) RefreshCredentials ¶
func (c *Client) RefreshCredentials() (*oauth2.Credentials, error)
Click to show internal directories.
Click to hide internal directories.