Versions in this module Expand all Collapse all v0 v0.0.1 May 18, 2023 Changes in this version + const APIBaseURL + var Verbose bool + type APIResponse struct + Error string + Ok bool + type APIResponseAccount struct + Result Account + type APIResponsePage struct + Result Page + type APIResponsePageList struct + Result PageList + type APIResponsePageViews struct + Result PageViews + type Account struct + AccessToken string + AuthURL string + AuthorName string + AuthorURL string + PageCount int + ShortName string + type Client struct + AccessToken string + Socks5Proxy string + func Create(shortName, authorName, authorURL string, socks5Proxy string) (*Client, error) + func Load(accessToken string, socks5Proxy string) (*Client, error) + func (c *Client) CreateAccount(shortName, authorName, authorURL string) (acc Account, err error) + func (c *Client) CreatePage(title, authorName, authorURL string, content []Node, returnContent bool) (page Page, err error) + func (c *Client) CreatePageWithHTML(title, authorName, authorURL, htmlContent string, returnContent bool) (page Page, err error) + func (c *Client) EditAccountInfo(shortName, authorName, authorURL string) (acc Account, err error) + func (c *Client) EditPage(path, title string, content []Node, authorName, authorURL string, ...) (page Page, err error) + func (c *Client) GetAccountInfo(fields []string) (acc Account, err error) + func (c *Client) GetPage(path string, returnContent bool) (page Page, err error) + func (c *Client) GetPageList(offset, limit int) (list PageList, err error) + func (c *Client) GetViews(path string, year, month, day, hour int) (views PageViews, err error) + func (c *Client) RevokeAccessToken() (acc Account, err error) + type Node interface + func NewNodeWithElement(tag string, attrs map[string]string, children []Node) Node + func NewNodeWithString(str string) Node + func NewNodesWithHTML(html string) ([]Node, error) + type NodeElement struct + Attrs map[string]string + Children []Node + Tag string + type Page struct + AuthorName string + AuthorURL string + CanEdit bool + Content []Node + Description string + ImageURL string + Path string + Title string + URL string + Views int + type PageList struct + Pages []Page + TotalCount int + type PageViews struct + Views int