twitter

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoTwitter

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

GoTwitter uses https://github.com/dghubble/go-twitter.

func NewGoTwitter

func NewGoTwitter(consumerKey, consumerSecret, accessToken, accessTokenSecret string) *GoTwitter

NewGoTwitter initializes a go-twitter client.

func (*GoTwitter) GetFollowerIDs

func (g *GoTwitter) GetFollowerIDs() ([]int64, error)

func (*GoTwitter) GetUserByID

func (g *GoTwitter) GetUserByID(id int64) (TwitterProfile, error)

func (*GoTwitter) Self

func (g *GoTwitter) Self() (TwitterProfile, error)

func (*GoTwitter) SendDM

func (g *GoTwitter) SendDM(to, message string) error

type Twitter

type Twitter interface {
	Self() (TwitterProfile, error)
	GetFollowerIDs() ([]int64, error)
	SendDM(toID, message string) error
	GetUserByID(id int64) (TwitterProfile, error)
}

type TwitterProfile

type TwitterProfile struct {
	IDStr      string
	ScreenName string
}

Jump to

Keyboard shortcuts

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