Documentation
¶
Index ¶
- func WithApiKey(apiKey string) func(*Client)
- func WithBaseUrl(baseUrl string) func(*Client)
- func WithMediaUrl(mediaUrl string) func(*Client)
- type Client
- func (c *Client) CreateComment(parentId int, text string) (int, error)
- func (c *Client) CreateInvoice(args *t.CreateInvoiceArgs) (*t.Invoice, error)
- func (c *Client) Dupes(url string) (*[]t.Dupe, error)
- func (c *Client) GetRssFeed() (*t.Rss, error)
- func (c *Client) HasDupes(url string) (bool, error)
- func (c *Client) Item(id int) (*t.Item, error)
- func (c *Client) Items(query *t.ItemsQuery) (*t.ItemsCursor, error)
- func (c *Client) Me() (*t.User, error)
- func (c *Client) Mentions() ([]t.Notification, error)
- func (c *Client) Notifications() (*t.NotificationsCursor, error)
- func (c *Client) PostDiscussion(title string, text string, subNames []string) (int, error)
- func (c *Client) PostLink(url string, title string, text string, subNames []string) (int, error)
- func (c *Client) Replies() ([]t.Notification, error)
- func (c *Client) UploadImage(img *image.RGBA) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithApiKey ¶
func WithBaseUrl ¶
func WithMediaUrl ¶
Types ¶
type Client ¶
func (*Client) CreateComment ¶
func (*Client) CreateInvoice ¶
func (*Client) Items ¶
func (c *Client) Items(query *t.ItemsQuery) (*t.ItemsCursor, error)
func (*Client) Notifications ¶
func (c *Client) Notifications() (*t.NotificationsCursor, error)
func (*Client) PostDiscussion ¶
Click to show internal directories.
Click to hide internal directories.