twitter_api library
The TwitterApi provides interfaces for requests to the Twitter API and parses the returned data models.
Authentication is done via the TwitterClient.
Classes
- AbstractTwitterClient
- An abstraction to make http calls to the Twitter API used by the services.
- AdditionalMediaInfo
- BoundingBox
- Coordinates
- Derived
- DirectMessagesService
- Entities
- Friendship
- Hashtag
- ListsService
- A list is a curated group of Twitter accounts. You can create your own lists or subscribe to lists created by others for the authenticated user.
- Location
- Media
- MediaService
- Option
- PaginatedTwitterLists
- PaginatedUsers
- Place
- PlaceType
- Poll
- ProcessingInfo
- QuotedStatusPermalink
- SearchMetadata
- Size
- Sizes
- Symbol
- TimelineService
- Trend
- TrendLocation
-
The
trends/place
response only contains name and woeid in its TrendLocations. - Trends
- TrendsService
- Tweet
- TweetSearch
- TweetSearchService
- TweetService
- TwitterApi
- The TwitterApi provides the services used to make requests to the Twitter API.
- TwitterClient
- The default implementation for AbstractTwitterClient.
- TwitterList
- UploadFinalize
- UploadInit
- UploadStatus
- Url
- User
- UserEntities
- UserEntityUrl
- UserMention
- UserService
- Variant
- VideoInfo
Functions
-
defaultFriendshipsTransform(
Response response) → Future< List< Friendship> > -
Parses the
response
into a list of Friendship objects in an isolate. -
defaultIntListTransform(
Response response) → Future< List< int> > -
defaultPaginatedIdsTransform(
Response response) → Future< PaginatedIds> -
Parse the
response
into aPaginatedFollowersIds
object in an isolate. -
defaultPaginatedTwitterListsTransform(
Response response) → Future< PaginatedTwitterLists> -
defaultPaginatedUsersTransform(
Response response) → Future< PaginatedUsers> -
Parses the
response
into a PaginatedUsers object in an isolate. -
defaultRelationshipTransform(
Response response) → Future< Relationship> -
Parses the
response
into a Relationship object in an isolate. -
defaultTrendLocationsTransform(
Response response) → Future< List< TrendLocation> > -
defaultTrendsListTransform(
Response response) → Future< List< Trends> > -
Parses the
response
into a list of Trends objects in an isolate. -
defaultTweetListTransform(
Response response) → Future< List< Tweet> > -
Parses the
response
into a list of Tweet objects in an isolate. -
defaultTweetSearchTransform(
Response response) → Future< TweetSearch> -
Parses the
response
into a TweetSearch object in an isolate. -
defaultTweetTransform(
Response response) → Future< Tweet> -
Parses the
response
into a Tweet object in an isolate. -
defaultTwitterListsTransform(
Response response) → Future< List< TwitterList> > -
defaultTwitterListTransform(
Response response) → Future< TwitterList> -
defaultUploadFinalizeTransform(
Response response) → Future< UploadFinalize> -
Parses the
response
into a UploadFinalize object in an isolate. -
defaultUploadInitTransform(
Response response) → Future< UploadInit> -
Parses the
response
into a UploadInit object in an isolate. -
defaultUploadStatusTransform(
Response response) → Future< UploadStatus> -
Parses the
response
into a UploadStatus object in an isolate. -
defaultUserListTransform(
Response response) → Future< List< User> > -
Parses the
response
into a list of User objects in an isolate. -
defaultUserTransform(
Response response) → Future< User> -
Parses the
response
into a User object in an isolate.
Typedefs
-
TransformResponse<
T> = FutureOr< T> Function(Response response) - A function used to transform the response.