client

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithApiKey

func WithApiKey(apiKey string) func(*Client)

func WithBaseUrl

func WithBaseUrl(baseUrl string) func(*Client)

func WithMediaUrl

func WithMediaUrl(mediaUrl string) func(*Client)

Types

type Client

type Client struct {
	BaseUrl  string
	ApiUrl   string
	ApiKey   string
	MediaUrl string
}

func NewClient

func NewClient(options ...func(*Client)) *Client

func (*Client) CreateComment

func (c *Client) CreateComment(parentId int, text string) (int, error)

func (*Client) CreateInvoice

func (c *Client) CreateInvoice(args *t.CreateInvoiceArgs) (*t.Invoice, error)

func (*Client) Dupes

func (c *Client) Dupes(url string) (*[]t.Dupe, error)

func (*Client) GetRssFeed

func (c *Client) GetRssFeed() (*t.Rss, error)

func (*Client) HasDupes

func (c *Client) HasDupes(url string) (bool, error)

func (*Client) Item

func (c *Client) Item(id int) (*t.Item, error)

func (*Client) Items

func (c *Client) Items(query *t.ItemsQuery) (*t.ItemsCursor, error)

func (*Client) Me

func (c *Client) Me() (*t.User, error)

func (*Client) Mentions

func (c *Client) Mentions() ([]t.Notification, error)

func (*Client) Notifications

func (c *Client) Notifications() (*t.NotificationsCursor, error)

func (*Client) PostDiscussion

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 (*Client) Replies

func (c *Client) Replies() ([]t.Notification, error)

func (*Client) UploadImage

func (c *Client) UploadImage(img *image.RGBA) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL