package
0.0.0-20171123105752-47f9c6541481
Repository: https://github.com/lucasjones/go-twitter.git
Documentation: pkg.go.dev

# Functions

Bool returns a new pointer to the given bool value.
Float returns a new pointer to the given float64 value.
NewClient returns a new Client.
NewSwitchDemux returns a new SwitchMux which has NoOp handler functions.

# Structs

AccountService provides a method for account credential verification.
AccountVerifyParams are the params for AccountService.VerifyCredentials.
APIError represents a Twitter API Error response https://dev.twitter.com/overview/api/response-codes.
BoundingBox represents the bounding coordinates (longitude, latitutde) defining the bounds of a box containing a Place entity.
Client is a Twitter client for making Twitter API requests.
ClosestParams are the parameters for Trends.Closest.
Coordinates are pairs of longitude and latitude locations.
DirectMessage is a direct message to a single recipient.
DirectMessageDestroyParams are the parameters for DirectMessageService.Destroy.
DirectMessageGetParams are the parameters for DirectMessageService.Get.
DirectMessageNewParams are the parameters for DirectMessageService.New.
DirectMessageSentParams are the parameters for DirectMessageService.Sent.
DirectMessageService provides methods for accessing Twitter direct message API endpoints.
Entities represent metadata and context info parsed from Twitter components.
ErrorDetail represents an individual item in an APIError.
Event is a non-Tweet notification message (e.g.
ExtendedEntity contains media information.
ExtendedTweet represents fields embedded in extended Tweets when served in compatibility mode (default).
FavoriteCreateParams are the parameters for FavoriteService.Create.
FavoriteDestroyParams are the parameters for FavoriteService.Destroy.
FavoriteListParams are the parameters for FavoriteService.List.
FavoriteService provides methods for accessing Twitter favorite API endpoints.
FollowerIDParams are the parameters for FollowerService.Ids.
FollowerIDs is a cursored collection of follower ids.
FollowerListParams are the parameters for FollowerService.List.
Followers is a cursored collection of followers.
FollowerService provides methods for accessing Twitter followers endpoints.
FriendIDParams are the parameters for FriendService.Ids.
FriendIDs is a cursored collection of friend ids.
FriendListParams are the parameters for FriendService.List.
Friends is a cursored collection of friends.
FriendService provides methods for accessing Twitter friends endpoints.
FriendshipCreateParams are parameters for FriendshipService.Create.
FriendshipDestroyParams are paramenters for FriendshipService.Destroy.
FriendshipPendingParams are paramenters for FriendshipService.Outgoing.
FriendshipService provides methods for accessing Twitter friendship API endpoints.
FriendshipShowParams are paramenters for FriendshipService.Show.
FriendsList is a list of some of a user's friends.
HashtagEntity represents a hashtag which has been parsed from text.
HomeTimelineParams are the parameters for TimelineService.HomeTimeline.
Location reporesents a twitter Location.
LocationDeletion indicates geolocation data must be stripped from a range of Tweets.
Media is the structure received from Twitter after upload.
MediaEntity represents media elements associated with a Tweet.
MediaImage is the structure within Media that contains image information.
MediaParams is the struct expected by Twitter for uploading.
MediaService provides methods for accessing Twitter upload API endpoints.
MediaSize describes the height, width, and resizing method used.
MediaSizes contain the different size media that are available.
MentionEntity represents Twitter user mentions parsed from text.
MentionTimelineParams are the parameters for TimelineService.MentionTimeline.
OEmbedTweet represents a Tweet in oEmbed format.
Place represents a Twitter Place / Location https://dev.twitter.com/overview/api/places.
PlaceType represents a twitter trends PlaceType.
Relationship represents the relation between a source user and target user.
RelationshipResponse contains a relationship.
RelationshipSource represents the source user.
RelationshipTarget represents the target user.
RetweetsOfMeTimelineParams are the parameters for TimelineService.RetweetsOfMeTimeline.
Search represents the result of a Tweet search.
SearchMetadata describes a Search result.
SearchService provides methods for accessing Twitter search API endpoints.
SearchTweetParams are the parameters for SearchService.Tweets.
StallWarning indicates the client is falling behind in the stream.
StatusDeletion indicates that a given Tweet has been deleted.
StatusDestroyParams are the parameters for StatusService.Destroy.
StatusLookupParams are the parameters for StatusService.Lookup.
StatusOEmbedParams are the parameters for StatusService.OEmbed.
StatusRetweetParams are the parameters for StatusService.Retweet.
StatusRetweetsParams are the parameters for StatusService.Retweets.
StatusService provides methods for accessing Twitter status API endpoints.
StatusShowParams are the parameters for StatusService.Show.
StatusUnretweetParams are the parameters for StatusService.Unretweet.
StatusUpdateParams are the parameters for StatusService.Update.
StatusWithheld indicates a Tweet with the given ID, belonging to UserId, has been withheld in certain countries.
Stream maintains a connection to the Twitter Streaming API, receives messages from the streaming response, and sends them on the Messages channel from a goroutine.
StreamDisconnect indicates the stream has been shutdown for some reason.
StreamFilterParams are parameters for StreamService.Filter.
StreamFirehoseParams are the parameters for StreamService.Firehose.
StreamLimit indicates a stream matched more statuses than its rate limit allowed.
StreamSampleParams are the parameters for StreamService.Sample.
StreamService provides methods for accessing the Twitter Streaming API.
StreamSiteParams are the parameters for StreamService.Site.
StreamUserParams are the parameters for StreamService.User.
SwitchDemux receives messages and uses a type switch to send each typed message to a handler function.
TimelineService provides methods for accessing Twitter status timeline API endpoints.
Trend represents a twitter trend.
TrendsList represents a list of twitter trends.
TrendsLocation represents a twitter trend location.
TrendsPlaceParams are the parameters for Trends.Place.
TrendsService provides methods for accessing Twitter trends API endpoints.
Tweet represents a Twitter Tweet, previously called a status.
TweetIdentifier represents the id by which a Tweet can be identified.
URLEntity represents a URL which has been parsed from text.
User represents a Twitter User.
UserEntities contain Entities parsed from User url and description fields.
UserLookupParams are the parameters for UserService.Lookup.
UserSearchParams are the parameters for UserService.Search.
UserService provides methods for accessing Twitter user API endpoints.
UserShowParams are the parameters for UserService.Show.
UserTimelineParams are the parameters for TimelineService.UserTimeline.
UserWithheld indicates a User with the given ID has been withheld in certain countries.
VideoInfo is available on video media objects.
VideoVariant describes one of the available video formats.

# Interfaces

A Demux receives interface{} messages individually or from a channel and sends those messages to one or more outputs determined by the implementation.

# Type aliases

Indices represent the start and end offsets within text.