Documentation ¶
Overview ¶
Package shopee implements interfacing with Shopee.
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
- type Config
Constants ¶
View Source
const Vendor = "SHOPEE"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *models.BaseTenant DatabaseTenant *models.BaseDatabaseTenant Config *Config Credentials *oauth2.Credentials }
Client is a Lazada 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) LoadItem ¶
LoadItem returns item info for a single SKU. Loading items from the Shopee client requires that this item has already been collected beforehand.
func (*Client) RefreshCredentials ¶
func (c *Client) RefreshCredentials() (*oauth2.Credentials, error)
Click to show internal directories.
Click to hide internal directories.