twitter

package
v0.0.0-...-557c218 Latest Latest
Warning

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

Go to latest
Published: May 7, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TwitterApiClient

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

func NewTwitterApiClient

func NewTwitterApiClient() *TwitterApiClient

func (*TwitterApiClient) GetTweetText

func (c *TwitterApiClient) GetTweetText(tweetID uint64) (string, error)

func (*TwitterApiClient) Initialize

func (c *TwitterApiClient) Initialize(config *TwitterClientConfig) error

func (*TwitterApiClient) ReplyToTweet

func (c *TwitterApiClient) ReplyToTweet(tweetID uint64, reply string) error

func (*TwitterApiClient) SendTweet

func (c *TwitterApiClient) SendTweet(tweet string) error

type TwitterClient

type TwitterClient interface {
	Initialize(config *TwitterClientConfig) error
	GetTweetText(tweetID uint64) (string, error)
	ReplyToTweet(tweetID uint64, reply string) error
	SendTweet(tweet string) error
}

type TwitterClientConfig

type TwitterClientConfig struct {
	Username          string
	Password          string
	Email             string
	ConsumerKey       string
	ConsumerSecret    string
	AccessToken       string
	AccessTokenSecret string
}

type TwitterProxy

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

func NewTwitterProxy

func NewTwitterProxy(url string, client *http.Client) *TwitterProxy

func (*TwitterProxy) GetTweetText

func (p *TwitterProxy) GetTweetText(tweetID uint64) (string, error)

func (*TwitterProxy) Initialize

func (p *TwitterProxy) Initialize(config *TwitterClientConfig) error

func (*TwitterProxy) ReplyToTweet

func (p *TwitterProxy) ReplyToTweet(tweetID uint64, reply string) error

func (*TwitterProxy) SendTweet

func (p *TwitterProxy) SendTweet(tweet string) error

Jump to

Keyboard shortcuts

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