gateway

package
v0.0.0-...-916f8e4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutobaseGateway

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

func NewAutobaseGateway

func NewAutobaseGateway(cfg config.TwitterKey) *AutobaseGateway

func (*AutobaseGateway) DeleteMessage

func (g *AutobaseGateway) DeleteMessage(messageID string) error

func (*AutobaseGateway) DownloadMedia

func (g *AutobaseGateway) DownloadMedia(url string, mediaType string) ([]byte, error)

func (*AutobaseGateway) GetCurrentUserInfo

func (g *AutobaseGateway) GetCurrentUserInfo() (twitter.User, error)

func (*AutobaseGateway) GetUserInfoByID

func (g *AutobaseGateway) GetUserInfoByID(userID string) (twitter.User, error)

func (*AutobaseGateway) ReadBatchMessage

func (g *AutobaseGateway) ReadBatchMessage(count int) ([]twitter.DirectMessageEvent, error)

func (*AutobaseGateway) ReadMessage

func (g *AutobaseGateway) ReadMessage(messageID string) (twitter.DirectMessageEvent, error)

func (*AutobaseGateway) SendMessage

func (g *AutobaseGateway) SendMessage(params twitter.DirectMessageEventMessage) error

func (*AutobaseGateway) Tweet

func (g *AutobaseGateway) Tweet(text string, params *twitter.StatusUpdateParams) (twitter.Tweet, error)

func (*AutobaseGateway) UploadMedia

func (g *AutobaseGateway) UploadMedia(file []byte, mimetype string) (media.Media, error)

Jump to

Keyboard shortcuts

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