pocketcli

package module
v0.0.0-...-37212e4 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: Apache-2.0 Imports: 6 Imported by: 1

README

pocketcli

A minimal implementation written in Go for retrieving bookmarks from Pocket API

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bookmark

type Bookmark struct {
	ID    int    `json:"item_id,string"`
	Title string `json:"resolved_title"`
	URL   string `json:"resolved_url"`
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(httpCli httpClient, host, consumerKey, accessToken, username string) (*Client, error)

func (*Client) Retrieve

func (c *Client) Retrieve(ctx context.Context) (map[string]Bookmark, error)

type RetrieveResult

type RetrieveResult struct {
	List map[string]Bookmark `json:"list"`
}

Jump to

Keyboard shortcuts

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