twitter

package
v0.0.0-...-cc2f434 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2018 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

Package twitter is the layer that connects trumpet to Twitter so that other parts of the program don't need to directly interact with the Twitter API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFriends

func GetFriends() ([]string, error)

GetFriends returns a list of user IDs that are followed by the account we connected with.

func GetPastTweets

func GetPastTweets(userIDs []string, c chan<- string, sched trumpet.Scheduler)

GetPastTweets grabs past tweets from the given userIDs and sends them through c in addition to giving the times of the tweets to sched.

func Init

func Init() error

Init prepares the twitter variable for use.

func ListenForTweets

func ListenForTweets(userIDs []string, c chan<- string, sched trumpet.Scheduler)

ListenForTweets returns a channel of new tweets posted by the given user IDs.

func Tweet

func Tweet(s string) error

Tweet posts a tweet with contents of s.

Types

This section is empty.

Directories

Path Synopsis
Package logger provides a simple anaconda.Logger that uses the standard library's log package.
Package logger provides a simple anaconda.Logger that uses the standard library's log package.

Jump to

Keyboard shortcuts

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