newsblur

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 10 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 New

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

func (*Client) GetSharedStories

func (c *Client) GetSharedStories(ctx context.Context, pageNum int) ([]*Story, error)

func (*Client) SharedStoriesIterator

func (c *Client) SharedStoriesIterator(ctx context.Context, newerThan time.Time) (*SharedStoriesIterator, error)

type LoginResponse

type LoginResponse struct {
	Authenticated bool `json:"authenticated"`
	UserID        int  `json:"user_id"`
}

type SharedStoriesIterator

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

func (*SharedStoriesIterator) Next

func (it *SharedStoriesIterator) Next(ctx context.Context) (*Story, error)

type StoriesInfoResponse

type StoriesInfoResponse struct {
	Authenticated bool     `json:"authenticated"`
	Stories       []*Story `json:"stories"`
}

type Story

type Story struct {
	ID         string
	Title      string
	Permalink  string
	Comment    string
	SharedDate time.Time
}

func (*Story) UnmarshalJSON

func (s *Story) UnmarshalJSON(bytes []byte) error

Jump to

Keyboard shortcuts

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