twitter

package
v0.0.0-...-b88c27a Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package twitter implements a Timeliner service for importing and downloading data from Twitter.

Index

Constants

View Source
const (
	DataSourceName = "Twitter"
	DataSourceID   = "twitter"
)

Service name and ID.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Retweets bool // whether to include retweets
	Replies  bool // whether to include replies to tweets that are not our own; i.e. are not a continuation of thought

	HTTPClient *http.Client
	// contains filtered or unexported fields
}

Client implements the timeliner.Client interface.

func (*Client) ListItems

func (c *Client) ListItems(ctx context.Context, itemChan chan<- *timeliner.ItemGraph, opt timeliner.ListingOptions) error

ListItems lists items from opt.Filename if specified, or from the API otherwise.

Jump to

Keyboard shortcuts

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