twitter

package
v0.0.0-...-b3686c0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2018 License: Apache-2.0 Imports: 5 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
}

Client represents the twitter api client

func NewFromConfig

func NewFromConfig(accCfg *config.AccountConfig, debug bool) *Client

NewFromConfig returns a new twitter Client from accountConfig

func (*Client) CreateFavorite

func (c *Client) CreateFavorite(opts *CreateFavoriteOptions)

CreateFavorite likes a tweet

func (*Client) CreateFriendship

func (c *Client) CreateFriendship(opts *CreateFriendshipOptions)

CreateFriendship follows a user

func (*Client) HomeTimeline

func (c *Client) HomeTimeline(opts *HomeTimelineOptions)

HomeTimeline shows your home timeline

func (*Client) IncomingFriendship

func (c *Client) IncomingFriendship(opts *IncomingFriendshipOptions)

IncomingFriendship shows incoming friendships

func (*Client) ListFavorites

func (c *Client) ListFavorites(opts *ListFavoriteOptions)

ListFavorites lists favorites

func (*Client) ListFollowers

func (c *Client) ListFollowers(opts *ListFollowersOptions)

ListFollowers lists followersof a given user

func (*Client) LookupTweet

func (c *Client) LookupTweet(opts *LookupStatusOptions)

LookupTweet returns a slice of tweets for a list of IDs

func (*Client) MentionsTimeline

func (c *Client) MentionsTimeline(opts *MentionsTimelineOptions)

MentionsTimeline returns latest mentions of you by other users

func (*Client) OutgoingFriendships

func (c *Client) OutgoingFriendships(opts *OutgoingFriendshipOptions)

OutgoingFriendships shows outgoing friendship relations

func (*Client) RemoveFavorite

func (c *Client) RemoveFavorite(opts *RemoveFavoriteOptions)

RemoveFavorite dislikes a tweet

func (*Client) RemoveFriendship

func (c *Client) RemoveFriendship(opts *RemoveFriendshipOptions)

RemoveFriendship unfollows a user

func (*Client) RemoveTweet

func (c *Client) RemoveTweet(opts *RemoveStatusOptions)

RemoveTweet deletes a tweet

func (*Client) RetweetTweet

func (c *Client) RetweetTweet(opts *RetweetStatusOptions)

RetweetTweet represents options for the retweet action

func (*Client) RetweetsOfMeTimeline

func (c *Client) RetweetsOfMeTimeline(opts *RetweetsOfMeTimelineOptions)

RetweetsOfMeTimeline shows retweets of your tweets

func (*Client) RetweetsOfTweet

func (c *Client) RetweetsOfTweet(opts *RetweetsStatusOptions)

RetweetsOfTweet shows all retweets of a given tweet

func (*Client) SearchTweet

func (c *Client) SearchTweet(opts *TweetSearchOptions)

SearchTweet searches for tweets by a given query

func (*Client) SearchUser

func (c *Client) SearchUser(opts *UserSearchOptions)

SearchUser searches for users by a given query

func (*Client) ShowFriendship

func (c *Client) ShowFriendship(opts *ShowFriendshipOptions)

ShowFriendship shows friendship information

func (*Client) UnretweetTweet

func (c *Client) UnretweetTweet(opts *UnretweetStatusOptions)

UnretweetTweet unretweets a tweet

func (*Client) UpdateTweet

func (c *Client) UpdateTweet(opts *UpdateStatusOptions)

UpdateTweet sends a new tweet

func (*Client) UserTimeline

func (c *Client) UserTimeline(opts *UserTimelineOptions)

UserTimeline returns the timeline of a given user

func (*Client) WhoisUser

func (c *Client) WhoisUser(opts *WhoisUserOptions)

WhoisUser provides detailed user information

type CreateFavoriteOptions

type CreateFavoriteOptions struct {
	Output  string
	AsList  bool
	File    bool
	ID      int64
	SkipYes bool
	Verbose bool
}

CreateFavoriteOptions represents the create favorite command line options

type CreateFriendshipOptions

type CreateFriendshipOptions struct {
	Output     string
	SkipYes    bool
	File       bool
	UserID     int64
	ScreenName string
	Follow     bool
	Verbose    bool
}

CreateFriendshipOptions represents user follow options

type HomeTimelineOptions

type HomeTimelineOptions struct {
	Tail           int
	Head           int
	AsList         bool
	Output         string
	File           string
	Follow         bool
	Count          int
	TrimUser       bool
	ExcludeReplies bool
	Sort           string
}

HomeTimelineOptions represents show hometimeline options

type IncomingFriendshipOptions

type IncomingFriendshipOptions struct {
	Output  string
	AsList  bool
	SkipYes bool
	File    bool
}

IncomingFriendshipOptions represents incoming friendship options

type ListFavoriteOptions

type ListFavoriteOptions struct {
	Output     string
	AsList     bool
	File       bool
	UserID     int64
	ScreenName string
	Count      int
	Head       int
	Tail       int
	Sort       string
}

ListFavoriteOptions represents list favorites options

type ListFollowersOptions

type ListFollowersOptions struct {
	Output     string
	AsList     bool
	File       bool
	UserID     int64
	ScreenName string
	Head       int
	Tail       int
	Sort       string
}

ListFollowersOptions represents list follower options

type LookupStatusOptions

type LookupStatusOptions struct {
	Output string
	AsList bool

	File     string
	ID       []int64
	TrimUser bool
	// contains filtered or unexported fields
}

LookupStatusOptions represents options for the lookup action

type MentionsTimelineOptions

type MentionsTimelineOptions struct {
	Tail     int
	Head     int
	AsList   bool
	Output   string
	Follow   bool
	Count    int
	TrimUser bool
	Sort     string
}

MentionsTimelineOptions represents mentions timeline options

type OutgoingFriendshipOptions

type OutgoingFriendshipOptions struct {
	Output  string
	AsList  bool
	SkipYes bool
	File    bool
}

OutgoingFriendshipOptions represents outgoing friendship options

type RemoveFavoriteOptions

type RemoveFavoriteOptions struct {
	Output  string
	AsList  bool
	SkipYes bool
	File    bool
	ID      int64
	Verbose bool
}

RemoveFavoriteOptions remove favorite options

type RemoveFriendshipOptions

type RemoveFriendshipOptions struct {
	Output     string
	AsList     bool
	SkipYes    bool
	File       bool
	UserID     int64
	ScreenName string
	Verbose    bool
}

RemoveFriendshipOptions represents remove friendship options

type RemoveStatusOptions

type RemoveStatusOptions struct {
	Output   string
	AsList   bool
	SkipYes  bool
	File     bool
	ID       int64
	TrimUser bool
	Verbose  bool
}

RemoveStatusOptions represents options for the remove action

type RetweetStatusOptions

type RetweetStatusOptions struct {
	Output   string
	AsList   bool
	SkipYes  bool
	File     bool
	ID       int64
	TrimUser bool
	Verbose  bool
}

RetweetStatusOptions represents options for the retweet action

type RetweetsOfMeTimelineOptions

type RetweetsOfMeTimelineOptions struct {
	Tail     int
	Head     int
	AsList   bool
	Output   string
	Follow   bool
	Count    int
	TrimUser bool
	Sort     string
}

RetweetsOfMeTimelineOptions represents retweets of your tweets display options

type RetweetsStatusOptions

type RetweetsStatusOptions struct {
	Output   string
	AsList   bool
	File     bool
	ID       int64
	TrimUser bool
	Count    int
	Head     int
	Tail     int
	Sort     string
}

RetweetsStatusOptions represents options for the retweet action

type ShowFriendshipOptions

type ShowFriendshipOptions struct {
	Output           string
	SourceID         int64
	TargetID         int64
	SourceScreenName string
	SourceTargetName string
}

ShowFriendshipOptions represents show friendship options

type TweetSearchOptions

type TweetSearchOptions struct {
	Output string
	AsList bool
	File   bool
	Query  string
	Count  int
	Head   int
	Tail   int
}

TweetSearchOptions represents search options for different tweets

type UnretweetStatusOptions

type UnretweetStatusOptions struct {
	Output   string
	AsList   bool
	File     bool
	ID       int64
	TrimUser bool
	SkipYes  bool
	Verbose  bool
}

UnretweetStatusOptions represents options for the unretweet action

type UpdateStatusOptions

type UpdateStatusOptions struct {
	Output  string
	AsList  bool
	SkipYes bool
	Status  string
	Verbose bool
}

UpdateStatusOptions represents options for the update action

type UserSearchOptions

type UserSearchOptions struct {
	Output string
	AsList bool
	File   bool
	Query  string
	Page   int
	Count  int
	Head   int
	Tail   int
}

UserSearchOptions represents the user search options

type UserTimelineOptions

type UserTimelineOptions struct {
	Tail            int
	Head            int
	AsList          bool
	Sort            string
	Output          string
	File            string
	Follow          bool
	Count           int
	TrimUser        bool
	ScreenName      string
	UserID          int64
	ExcludeReplies  bool
	IncludeRetweets bool
}

UserTimelineOptions represents user timeline options

type WhoisUserOptions

type WhoisUserOptions struct {
	Output     string
	AsList     bool
	File       bool
	UserID     []int64
	ScreenName []string
	Head       int
	Tail       int
	Count      int
}

WhoisUserOptions represents whois user options

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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