Versions in this module Expand all Collapse all v0 v0.0.3 Feb 18, 2020 v0.0.2 Feb 7, 2019 v0.0.1 Feb 7, 2019 Changes in this version + func Bool(v bool) *bool + func Float(v float64) *float64 + func NewTestServer(handlers map[string]func(w http.ResponseWriter, r *http.Request)) (*http.Client, *httptest.Server) + type APIError struct + Errors []ErrorDetail + func (e APIError) Empty() bool + func (e APIError) Error() string + type AccountService struct + func (s *AccountService) VerifyCredentials(params *AccountVerifyParams) (*User, *http.Response, error) + type AccountVerifyParams struct + IncludeEmail *bool + IncludeEntities *bool + SkipStatus *bool + type BoundingBox struct + Coordinates [][][2]float64 + Type string + type Client struct + Accounts *AccountService + DirectMessages *DirectMessageService + Favorites *FavoriteService + Followers *FollowerService + Friends *FriendService + Friendships *FriendshipService + Search *SearchService + Statuses *StatusService + Streams *StreamService + Timelines *TimelineService + Trends *TrendsService + Users *UserService + func NewClient(httpClient *http.Client) *Client + type ClosestParams struct + Lat float64 + Long float64 + type Coordinates struct + Coordinates [2]float64 + Type string + type Demux interface + Handle func(message interface{}) + HandleChan func(messages <-chan interface{}) + type DirectMessage struct + CreatedAt string + Entities *Entities + ID int64 + IDStr string + Recipient *User + RecipientID int64 + RecipientScreenName string + Sender *User + SenderID int64 + SenderScreenName string + Text string + type DirectMessageDestroyParams struct + ID int64 + IncludeEntities *bool + type DirectMessageGetParams struct + Count int + IncludeEntities *bool + MaxID int64 + SinceID int64 + SkipStatus *bool + type DirectMessageNewParams struct + ScreenName string + Text string + UserID int64 + type DirectMessageSentParams struct + Count int + IncludeEntities *bool + MaxID int64 + Page int + SinceID int64 + type DirectMessageService struct + func (s *DirectMessageService) Destroy(id int64, params *DirectMessageDestroyParams) (*DirectMessage, *http.Response, error) + func (s *DirectMessageService) Get(params *DirectMessageGetParams) ([]DirectMessage, *http.Response, error) + func (s *DirectMessageService) New(params *DirectMessageNewParams) (*DirectMessage, *http.Response, error) + func (s *DirectMessageService) Sent(params *DirectMessageSentParams) ([]DirectMessage, *http.Response, error) + func (s *DirectMessageService) Show(id int64) (*DirectMessage, *http.Response, error) + type Entities struct + Hashtags []HashtagEntity + Media []MediaEntity + Urls []URLEntity + UserMentions []MentionEntity + type ErrorDetail struct + Code int + Message string + type Event struct + CreatedAt string + Event string + Source *User + Target *User + TargetObject *Tweet + type ExtendedEntity struct + Media []MediaEntity + type ExtendedTweet struct + DisplayTextRange Indices + Entities *Entities + ExtendedEntities *ExtendedEntity + FullText string + type FavoriteCreateParams struct + ID int64 + type FavoriteDestroyParams struct + ID int64 + type FavoriteListParams struct + Count int + IncludeEntities *bool + MaxID int64 + ScreenName string + SinceID int64 + TweetMode string + UserID int64 + type FavoriteService struct + func (s *FavoriteService) Create(params *FavoriteCreateParams) (*Tweet, *http.Response, error) + func (s *FavoriteService) Destroy(params *FavoriteDestroyParams) (*Tweet, *http.Response, error) + func (s *FavoriteService) List(params *FavoriteListParams) ([]Tweet, *http.Response, error) + type FollowerIDParams struct + Count int + Cursor int64 + ScreenName string + UserID int64 + type FollowerIDs struct + IDs []int64 + NextCursor int64 + NextCursorStr string + PreviousCursor int64 + PreviousCursorStr string + type FollowerListParams struct + Count int + Cursor int64 + IncludeUserEntities *bool + ScreenName string + SkipStatus *bool + UserID int64 + type FollowerService struct + func (s *FollowerService) IDs(params *FollowerIDParams) (*FollowerIDs, *http.Response, error) + func (s *FollowerService) List(params *FollowerListParams) (*Followers, *http.Response, error) + type Followers struct + NextCursor int64 + NextCursorStr string + PreviousCursor int64 + PreviousCursorStr string + Users []User + type FriendIDParams struct + Count int + Cursor int64 + ScreenName string + UserID int64 + type FriendIDs struct + IDs []int64 + NextCursor int64 + NextCursorStr string + PreviousCursor int64 + PreviousCursorStr string + type FriendListParams struct + Count int + Cursor int64 + IncludeUserEntities *bool + ScreenName string + SkipStatus *bool + UserID int64 + type FriendService struct + func (s *FriendService) IDs(params *FriendIDParams) (*FriendIDs, *http.Response, error) + func (s *FriendService) List(params *FriendListParams) (*Friends, *http.Response, error) + type Friends struct + NextCursor int64 + NextCursorStr string + PreviousCursor int64 + PreviousCursorStr string + Users []User + type FriendsList struct + Friends []int64 + type FriendshipCreateParams struct + Follow *bool + ScreenName string + UserID int64 + type FriendshipDestroyParams struct + ScreenName string + UserID int64 + type FriendshipPendingParams struct + Cursor int64 + type FriendshipService struct + func (s *FriendshipService) Create(params *FriendshipCreateParams) (*User, *http.Response, error) + func (s *FriendshipService) Destroy(params *FriendshipDestroyParams) (*User, *http.Response, error) + func (s *FriendshipService) Incoming(params *FriendshipPendingParams) (*FriendIDs, *http.Response, error) + func (s *FriendshipService) Outgoing(params *FriendshipPendingParams) (*FriendIDs, *http.Response, error) + func (s *FriendshipService) Show(params *FriendshipShowParams) (*Relationship, *http.Response, error) + type FriendshipShowParams struct + SourceID int64 + SourceScreenName string + TargetID int64 + TargetScreenName string + type HashtagEntity struct + Indices Indices + Text string + type HomeTimelineParams struct + ContributorDetails *bool + Count int + ExcludeReplies *bool + IncludeEntities *bool + MaxID int64 + SinceID int64 + TrimUser *bool + TweetMode string + type Indices [2]int + func (i Indices) End() int + func (i Indices) Start() int + type Location struct + Country string + CountryCode string + Name string + ParentID int + PlaceType PlaceType + URL string + WOEID int64 + type LocationDeletion struct + UpToStatusID int64 + UpToStatusIDStr string + UserID int64 + UserIDStr string + type MediaEntity struct + ID int64 + IDStr string + MediaURL string + MediaURLHttps string + Sizes MediaSizes + SourceStatusID int64 + SourceStatusIDStr string + Type string + VideoInfo VideoInfo + type MediaSize struct + Height int + Resize string + Width int + type MediaSizes struct + Large MediaSize + Medium MediaSize + Small MediaSize + Thumb MediaSize + type MentionEntity struct + ID int64 + IDStr string + Indices Indices + Name string + ScreenName string + type MentionTimelineParams struct + ContributorDetails *bool + Count int + IncludeEntities *bool + MaxID int64 + SinceID int64 + TrimUser *bool + TweetMode string + type OEmbedTweet struct + AuthorName string + AuthorURL string + CacheAge string + HTML string + Height int64 + ProviderName string + ProviderURL string + Type string + URL string + Version string + Width int64 + type Place struct + Attributes map[string]string + BoundingBox *BoundingBox + Country string + CountryCode string + FullName string + Geometry *BoundingBox + ID string + Name string + PlaceType string + Polylines []string + URL string + type PlaceType struct + Code int + Name string + type Relationship struct + Source RelationshipSource + Target RelationshipTarget + type RelationshipResponse struct + Relationship *Relationship + type RelationshipSource struct + AllReplies bool + Blocking bool + CanDM bool + FollowedBy bool + Following bool + ID int64 + IDStr string + MarkedSpam bool + Muting bool + NotificationsEnabled bool + ScreenName string + WantRetweets bool + type RelationshipTarget struct + FollowedBy bool + Following bool + ID int64 + IDStr string + ScreenName string + type RetweetsOfMeTimelineParams struct + Count int + IncludeEntities *bool + IncludeUserEntities *bool + MaxID int64 + SinceID int64 + TrimUser *bool + TweetMode string + type RewriteTransport struct + Transport http.RoundTripper + func (t *RewriteTransport) RoundTrip(req *http.Request) (*http.Response, error) + type Search struct + Metadata *SearchMetadata + Statuses []Tweet + type SearchMetadata struct + CompletedIn float64 + Count int + MaxID int64 + MaxIDStr string + NextResults string + Query string + RefreshURL string + SinceID int64 + SinceIDStr string + type SearchService struct + func (s *SearchService) Tweets(params *SearchTweetParams) (*Search, *http.Response, error) + type SearchTweetParams struct + Count int + Geocode string + IncludeEntities *bool + Lang string + Locale string + MaxID int64 + Query string + ResultType string + SinceID int64 + TweetMode string + Until string + type StallWarning struct + Code string + Message string + PercentFull int + type StatusDeletion struct + ID int64 + IDStr string + UserID int64 + UserIDStr string + type StatusDestroyParams struct + ID int64 + TrimUser *bool + TweetMode string + type StatusLookupParams struct + ID []int64 + IncludeEntities *bool + Map *bool + TrimUser *bool + TweetMode string + type StatusOEmbedParams struct + Align string + HideMedia *bool + HideThread *bool + HideTweet *bool + ID int64 + MaxWidth int64 + OmitScript *bool + URL string + WidgetType string + type StatusRetweetParams struct + ID int64 + TrimUser *bool + TweetMode string + type StatusRetweetsParams struct + Count int + ID int64 + TrimUser *bool + TweetMode string + type StatusService struct + func (s *StatusService) Destroy(id int64, params *StatusDestroyParams) (*Tweet, *http.Response, error) + func (s *StatusService) Lookup(ids []int64, params *StatusLookupParams) ([]Tweet, *http.Response, error) + func (s *StatusService) OEmbed(params *StatusOEmbedParams) (*OEmbedTweet, *http.Response, error) + func (s *StatusService) Retweet(id int64, params *StatusRetweetParams) (*Tweet, *http.Response, error) + func (s *StatusService) Retweets(id int64, params *StatusRetweetsParams) ([]Tweet, *http.Response, error) + func (s *StatusService) Show(id int64, params *StatusShowParams) (*Tweet, *http.Response, error) + func (s *StatusService) Unretweet(id int64, params *StatusUnretweetParams) (*Tweet, *http.Response, error) + func (s *StatusService) Update(status string, params *StatusUpdateParams) (*Tweet, *http.Response, error) + type StatusShowParams struct + ID int64 + IncludeEntities *bool + IncludeMyRetweet *bool + TrimUser *bool + TweetMode string + type StatusUnretweetParams struct + ID int64 + TrimUser *bool + TweetMode string + type StatusUpdateParams struct + DisplayCoordinates *bool + InReplyToStatusID int64 + Lat *float64 + Long *float64 + MediaIds []int64 + PlaceID string + PossiblySensitive *bool + Status string + TrimUser *bool + TweetMode string + type StatusWithheld struct + ID int64 + UserID int64 + WithheldInCountries []string + type Stream struct + Messages chan interface{} + func NewTestStream(messages chan interface{}) *Stream + func (s *Stream) ExpectedStop() bool + func (s *Stream) Stop() + type StreamDisconnect struct + Code int64 + Reason string + StreamName string + type StreamFilterParams struct + FilterLevel string + Follow []string + Language []string + Locations []string + StallWarnings *bool + Track []string + type StreamFirehoseParams struct + Count int + FilterLevel string + Language []string + StallWarnings *bool + type StreamLimit struct + Track int64 + type StreamSampleParams struct + Language []string + StallWarnings *bool + type StreamService struct + func (srv *StreamService) Filter(params *StreamFilterParams) (*Stream, error) + func (srv *StreamService) Firehose(params *StreamFirehoseParams) (*Stream, error) + func (srv *StreamService) Sample(params *StreamSampleParams) (*Stream, error) + func (srv *StreamService) Site(params *StreamSiteParams) (*Stream, error) + func (srv *StreamService) User(params *StreamUserParams) (*Stream, error) + type StreamSiteParams struct + FilterLevel string + Follow []string + Language []string + Replies string + StallWarnings *bool + With string + type StreamUserParams struct + FilterLevel string + Language []string + Locations []string + Replies string + StallWarnings *bool + Track []string + With string + type SwitchDemux struct + APIError func(apiError *APIError) + All func(message interface{}) + DM func(dm *DirectMessage) + Event func(event *Event) + FriendsList func(friendsList *FriendsList) + LocationDeletion func(LocationDeletion *LocationDeletion) + Other func(message interface{}) + StatusDeletion func(deletion *StatusDeletion) + StatusWithheld func(statusWithheld *StatusWithheld) + StreamDisconnect func(disconnect *StreamDisconnect) + StreamLimit func(limit *StreamLimit) + Tweet func(tweet *Tweet) + UserWithheld func(userWithheld *UserWithheld) + Warning func(warning *StallWarning) + func NewSwitchDemux() SwitchDemux + func (d SwitchDemux) Handle(message interface{}) + func (d SwitchDemux) HandleChan(messages <-chan interface{}) + type TimelineService struct + func (s *TimelineService) HomeTimeline(params *HomeTimelineParams) ([]Tweet, *http.Response, error) + func (s *TimelineService) MentionTimeline(params *MentionTimelineParams) ([]Tweet, *http.Response, error) + func (s *TimelineService) RetweetsOfMeTimeline(params *RetweetsOfMeTimelineParams) ([]Tweet, *http.Response, error) + func (s *TimelineService) UserTimeline(params *UserTimelineParams) ([]Tweet, *http.Response, error) + type Trend struct + Name string + PromotedContent string + Query string + TweetVolume int64 + URL string + type TrendsList struct + AsOf string + CreatedAt string + Locations []TrendsLocation + Trends []Trend + type TrendsLocation struct + Name string + WOEID int64 + type TrendsPlaceParams struct + Exclude string + WOEID int64 + type TrendsService struct + func (s *TrendsService) Available() ([]Location, *http.Response, error) + func (s *TrendsService) Closest(params *ClosestParams) ([]Location, *http.Response, error) + func (s *TrendsService) Place(woeid int64, params *TrendsPlaceParams) ([]TrendsList, *http.Response, error) + type Tweet struct + Coordinates *Coordinates + CreatedAt string + CurrentUserRetweet *TweetIdentifier + DisplayTextRange Indices + Entities *Entities + ExtendedEntities *ExtendedEntity + ExtendedTweet *ExtendedTweet + FavoriteCount int + Favorited bool + FilterLevel string + FullText string + ID int64 + IDStr string + InReplyToScreenName string + InReplyToStatusID int64 + InReplyToStatusIDStr string + InReplyToUserID int64 + InReplyToUserIDStr string + Lang string + Place *Place + PossiblySensitive bool + QuotedStatus *Tweet + QuotedStatusID int64 + QuotedStatusIDStr string + RetweetCount int + Retweeted bool + RetweetedStatus *Tweet + Scopes map[string]interface{} + Source string + Text string + Truncated bool + User *User + WithheldCopyright bool + WithheldInCountries []string + WithheldScope string + func (t Tweet) CreatedAtTime() (time.Time, error) + type TweetIdentifier struct + ID int64 + IDStr string + type URLEntity struct + DisplayURL string + ExpandedURL string + Indices Indices + URL string + type User struct + ContributorsEnabled bool + CreatedAt string + DefaultProfile bool + DefaultProfileImage bool + Description string + Email string + Entities *UserEntities + FavouritesCount int + FollowRequestSent bool + FollowersCount int + Following bool + FriendsCount int + GeoEnabled bool + ID int64 + IDStr string + IsTranslator bool + Lang string + ListedCount int + Location string + Name string + Notifications bool + ProfileBackgroundColor string + ProfileBackgroundImageURL string + ProfileBackgroundImageURLHttps string + ProfileBackgroundTile bool + ProfileBannerURL string + ProfileImageURL string + ProfileImageURLHttps string + ProfileLinkColor string + ProfileSidebarBorderColor string + ProfileSidebarFillColor string + ProfileTextColor string + ProfileUseBackgroundImage bool + Protected bool + ScreenName string + ShowAllInlineMedia bool + Status *Tweet + StatusesCount int + Timezone string + URL string + UtcOffset int + Verified bool + WithheldInCountries []string + WithholdScope string + type UserEntities struct + Description Entities + URL Entities + type UserLookupParams struct + IncludeEntities *bool + ScreenName []string + UserID []int64 + type UserSearchParams struct + Count int + IncludeEntities *bool + Page int + Query string + type UserService struct + func (s *UserService) Lookup(params *UserLookupParams) ([]User, *http.Response, error) + func (s *UserService) Search(query string, params *UserSearchParams) ([]User, *http.Response, error) + func (s *UserService) Show(params *UserShowParams) (*User, *http.Response, error) + type UserShowParams struct + IncludeEntities *bool + ScreenName string + UserID int64 + type UserTimelineParams struct + Count int + ExcludeReplies *bool + IncludeRetweets *bool + MaxID int64 + ScreenName string + SinceID int64 + TrimUser *bool + TweetMode string + UserID int64 + type UserWithheld struct + ID int64 + WithheldInCountries []string + type VideoInfo struct + AspectRatio [2]int + DurationMillis int + Variants []VideoVariant + type VideoVariant struct + Bitrate int + ContentType string + URL string