pkg

package
v0.0.0-...-1988d28 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(apiKey string) *Client

func (*Client) SummarizeTweets

func (c *Client) SummarizeTweets(tweets []string) (string, error)

type TwitterClient

type TwitterClient struct {
	Client *twitter.Client
}

func NewTwitterClient

func NewTwitterClient(consumerKey, consumerSecret string) *TwitterClient

func (*TwitterClient) GetPopularTweets

func (t *TwitterClient) GetPopularTweets(query string) ([]twitter.Tweet, error)

func (*TwitterClient) PostTweet

func (t *TwitterClient) PostTweet(text string) (*twitter.Tweet, error)

Jump to

Keyboard shortcuts

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