Documentation ¶
Index ¶
- type Client
- func (c *Client) AgentChangeDomain(siteID, domain string) error
- func (c *Client) Get(api string, values url.Values) (json.RawMessage, error)
- func (c *Client) PostForm(api string, values url.Values) (json.RawMessage, error)
- func (c *Client) Println(v ...interface{})
- func (c *Client) SetDebugMode(isDebugging bool)
- func (c *Client) TbkChangeDomain(siteID, domain string, forceHttps bool) error
- func (c *Client) TbkChangeDomainHttpsForward(siteID, domain string, forceHttps bool) error
- func (c *Client) TbkCheckDomainBan(domain string) (bool, error)
- func (c *Client) TbkCreateSite(name, domain, siteType string) (*Site, error)
- func (c *Client) TbkCreateSitePage(siteID, template string) (uint, error)
- func (c *Client) TbkDeleteSitePage(pageId string) error
- func (c *Client) TbkDomain(siteID string) (string, error)
- func (c *Client) TbkGenKzShortURL(longURL string) (string, error)
- func (c *Client) TbkGenPromoteLink(siteID, code, imageURL string) (string, error)
- func (c *Client) TbkGenShortURL(longURL, urlType string) (string, error)
- func (c *Client) TbkGetPageIds(siteID string) ([]uint, error)
- func (c *Client) TbkGetPageName(siteID string) ([]*Page, error)
- func (c *Client) TbkGetSiteBansCount(siteID string) (uint, error)
- func (c *Client) TbkGetSiteIds() ([]uint, error)
- func (c *Client) TbkGetSiteInfo(siteID, siteDomain string) (*Site, error)
- func (c *Client) TbkModifyPageJs(siteID, pageID, content string, isEncrypted bool) error
- func (c *Client) TbkPublishPage(siteID, pageID string) (string, error)
- func (c *Client) TbkPublishSite(siteID string) (string, error)
- func (c *Client) TbkRevertShortURL(shortURL string) (*RevertedShortURLInfo, error)
- func (c *Client) TbkSitePvUvBySiteId(siteID, fromDate, toDate string) (*SiteTraffic, error)
- func (c *Client) TbkSiteTraffic(domain string) (*SiteTraffic, error)
- func (c *Client) TbkUpdateSiteSetting(siteID, siteName string) error
- type Page
- type Response
- type RevertedShortURLInfo
- type Site
- type SiteTraffic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client client
func (*Client) AgentChangeDomain ¶
AgentChangeDomain 修改客户域名
func (*Client) SetDebugMode ¶
func (*Client) TbkChangeDomain ¶
TbkChangeDomain 给指定站点修改域名, 详细查看 https://www.yuque.com/kuaizhan_help/ndcqmp/imqwx3
func (*Client) TbkChangeDomainHttpsForward ¶
TbkChangeDomainHttpsForward 开启/关闭域名Https跳转, 详细查看 https://www.yuque.com/kuaizhan_help/ndcqmp/mlvv6r
func (*Client) TbkCheckDomainBan ¶
TbkCheckDomainBan 检测域名是否被封禁, 详细查看 https://www.yuque.com/kuaizhan_help/ndcqmp/bbn7u7
func (*Client) TbkCreateSite ¶
TbkCreateSite 创建快站站点, 详细查看 https://www.yuque.com/kuaizhan_help/ndcqmp/fv1x9b
func (*Client) TbkCreateSitePage ¶
TbkCreateSitePage 新建极速版站点页面, 详细查看 https://www.yuque.com/kuaizhan_help/ndcqmp/hexyr9
func (*Client) TbkDeleteSitePage ¶
TbkDeleteSitePage 新建极速版站点页面, 详细查看 https://www.yuque.com/kuaizhan_help/ndcqmp/dyi82m
func (*Client) TbkDomain ¶
TbkDomain 根据站点获取站点域名, 详细查看 https://www.yuque.com/kuaizhan_help/ndcqmp/edk1gx
func (*Client) TbkGenKzShortURL ¶
TbkGenKzShortUrl 生成快站短链接, 详细查看 https://www.yuque.com/kuaizhan_help/ndcqmp/naqeg6
func (*Client) TbkGenPromoteLink ¶
TbkGenPromoteLink 生成淘口令推广链接, 详细查看 https://www.yuque.com/kuaizhan_help/ndcqmp/fk2vtr
func (*Client) TbkGenShortURL ¶
TbkGenKzShortUrl 第三方短链接生成, 详细查看 https://www.yuque.com/kuaizhan_help/ndcqmp/qeepyp
func (*Client) TbkGetPageIds ¶
TbkGetPageIds 获取页面ID列表, 详细查看 https://www.yuque.com/kuaizhan_help/ndcqmp/bkm43g
func (*Client) TbkGetPageName ¶ added in v1.0.3
TbkGetPageName 获取所有站点页面名称, 详细查看 https://www.yuque.com/kuaizhan_help/ndcqmp/mehpsf
func (*Client) TbkGetSiteBansCount ¶
TbkGetSiteBansCount 获取站点当月被封禁的次数, 详细查看 https://www.yuque.com/kuaizhan_help/ndcqmp/yigagy
func (*Client) TbkGetSiteIds ¶
TbkGetSiteIds 获取站点ID列表, 详细查看 https://www.yuque.com/kuaizhan_help/ndcqmp/gvltmw
func (*Client) TbkGetSiteInfo ¶
TbkGetSiteInfo 获取站点基本信息, 详细查看 https://www.yuque.com/kuaizhan_help/ndcqmp/acgiwn
func (*Client) TbkModifyPageJs ¶
TbkModifyPageJs 更新页面js, 详细查看 https://www.yuque.com/kuaizhan_help/ndcqmp/kahcrz
func (*Client) TbkPublishPage ¶
TbkPublishPage 发布页面, 详细查看 https://www.yuque.com/kuaizhan_help/ndcqmp/tbrdea
func (*Client) TbkPublishSite ¶
TbkPublishSite 发布站点, 详细查看 https://www.yuque.com/kuaizhan_help/ndcqmp/max5xw
func (*Client) TbkRevertShortURL ¶
func (c *Client) TbkRevertShortURL(shortURL string) (*RevertedShortURLInfo, error)
TbkRevertShortURL 快码短链还原长链, 详细查看 https://www.yuque.com/kuaizhan_help/ndcqmp/gywhwq
func (*Client) TbkSitePvUvBySiteId ¶ added in v1.0.5
func (c *Client) TbkSitePvUvBySiteId(siteID, fromDate, toDate string) (*SiteTraffic, error)
TbkSitePvUvBySiteId 根据时间获取站点的流量, 详细查看 https://www.yuque.com/kuaizhan_help/ndcqmp/mphtng
func (*Client) TbkSiteTraffic ¶
func (c *Client) TbkSiteTraffic(domain string) (*SiteTraffic, error)
TbkSiteTraffic 根据域名获取站点的流量信息, 详细查看 https://www.yuque.com/kuaizhan_help/ndcqmp/riha7l
func (*Client) TbkUpdateSiteSetting ¶
TbkUpdateSiteSetting 修改站点基本信息, 详细查看 https://www.yuque.com/kuaizhan_help/ndcqmp/motq6t
type Response ¶
type Response struct { Code int `json:"code"` Msg string `json:"msg"` Data json.RawMessage `json:"data"` }
Response 公共返回结构体