anylist

package
v0.0.0-...-a903834 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

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
}

func FromRefreshToken

func FromRefreshToken(ctx context.Context, rTkn string) (*Client, error)

func New

func New(ctx context.Context, email, password string) (*Client, error)

func (*Client) AddItem

func (c *Client) AddItem(ctx context.Context, listID string, itemName string) error

func (*Client) Listen

func (c *Client) Listen(cb func(string)) error

Note: This doesn't work yet, something wrong with the way I'm making the request. I've had two separate websocket client libraries fail on the handshake.

func (*Client) Lists

func (c *Client) Lists(ctx context.Context) (*pb.PBUserDataResponse, error)

func (*Client) RemoveItem

func (c *Client) RemoveItem(ctx context.Context, listID, itemID string) error

func (*Client) SetChecked

func (c *Client) SetChecked(ctx context.Context, listID, itemID string, checked bool) error

Jump to

Keyboard shortcuts

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