twitter

package
v0.0.0-...-e3952f1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirectMessage

type DirectMessage struct {
	CreatedAt           string `json:"created_at"`
	ID                  int64  `json:"id"`
	IDStr               string `json:"id_str"`
	RecipientID         int64  `json:"recipient_id"`
	RecipientScreenName string `json:"recipient_screen_name"`
	SenderID            int64  `json:"sender_id"`
	SenderScreenName    string `json:"sender_screen_name"`
	Text                string `json:"text"`
}

type Event

type Event struct {
	Event        string `json:"event"`
	CreatedAt    string `json:"created_at"`
	TargetObject *Tweet `json:"target_object"`
}

type FriendsList

type FriendsList struct {
	Friends []int64 `json:"friends"`
}

type LocationDeletion

type LocationDeletion struct {
	UserID          int64  `json:"user_id"`
	UserIDStr       string `json:"user_id_str"`
	UpToStatusID    int64  `json:"up_to_status_id"`
	UpToStatusIDStr string `json:"up_to_status_id_str"`
}

type StallWarning

type StallWarning struct {
	Code        string `json:"code"`
	Message     string `json:"message"`
	PercentFull int    `json:"percent_full"`
}

type StatusDeletion

type StatusDeletion struct {
	ID        int64  `json:"id"`
	IDStr     string `json:"id_str"`
	UserID    int64  `json:"user_id"`
	UserIDStr string `json:"user_id_str"`
}

type StatusService

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

type StatusWithheld

type StatusWithheld struct {
	ID                  int64    `json:"id"`
	UserID              int64    `json:"user_id"`
	WithheldInCountries []string `json:"withheld_in_countries"`
}

type Stream

type Stream struct {
	Messages chan interface{}
	// contains filtered or unexported fields
}

func (*Stream) Stop

func (s *Stream) Stop()

type StreamDisconnect

type StreamDisconnect struct {
	Code       int64  `json:"code"`
	StreamName string `json:"stream_name"`
	Reason     string `json:"reason"`
}

type StreamFilterParams

type StreamFilterParams struct {
	Localtion []string `url:"locations,omitempty,comma"`
	Track     []string `url:"track,omitempty,comma"`
}

Stream filter . I just need language right now

type StreamLimit

type StreamLimit struct {
	Track int64 `json:"track"`
}

type StreamService

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

func (*StreamService) Filter

func (s *StreamService) Filter(p *StreamFilterParams) (*Stream, error)

func (*StreamService) Sample

func (s *StreamService) Sample() (*Stream, error)

type Tweet

type Tweet struct {
	CreatedAt            string   `json:"created_at"`
	FavoriteCount        int      `json:"favorite_count"`
	Favorited            bool     `json:"favorited"`
	FilterLevel          string   `json:"filter_level"`
	ID                   int64    `json:"id"`
	IDStr                string   `json:"id_str"`
	InReplyToScreenName  string   `json:"in_reply_to_screen_name"`
	InReplyToStatusID    int64    `json:"in_reply_to_status_id"`
	InReplyToStatusIDStr string   `json:"in_reply_to_status_id_str"`
	InReplyToUserID      int64    `json:"in_reply_to_user_id"`
	InReplyToUserIDStr   string   `json:"in_reply_to_user_id_str"`
	Lang                 string   `json:"lang"`
	PossiblySensitive    bool     `json:"possibly_sensitive"`
	RetweetCount         int      `json:"retweet_count"`
	Retweeted            bool     `json:"retweeted"`
	RetweetedStatus      *Tweet   `json:"retweeted_status"`
	Source               string   `json:"source"`
	Text                 string   `json:"text"`
	Truncated            bool     `json:"truncated"`
	WithheldCopyright    bool     `json:"withheld_copyright"`
	WithheldInCountries  []string `json:"withheld_in_countries"`
	WithheldScope        string   `json:"withheld_scope"`
	QuotedStatusID       int64    `json:"quoted_status_id"`
	QuotedStatusIDStr    string   `json:"quoted_status_id_str"`
	QuotedStatus         *Tweet   `json:"quoted_status"`
}

type TwitterClient

type TwitterClient struct {
	Streams *StreamService
	// contains filtered or unexported fields
}

func NewClient

func NewClient(conf *conf.TwitterKey) (*TwitterClient, error)

type UserWithheld

type UserWithheld struct {
	ID                  int64    `json:"id"`
	WithheldInCountries []string `json:"withheld_in_countries"`
}

Jump to

Keyboard shortcuts

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