twitter_openapi_dart_generated 0.0.1 twitter_openapi_dart_generated: ^0.0.1 copied to clipboard
Twitter OpenAPI Dart
twitter_openapi_dart_generated (EXPERIMENTAL) #
Twitter OpenAPI(Swagger) specification
This Dart package is automatically generated by the OpenAPI Generator project:
- API version: 0.0.1
- Build package: org.openapitools.codegen.languages.DartDioClientCodegen
Requirements #
- Dart 2.15.0+ or Flutter 2.8.0+
- Dio 5.0.0+ (https://pub.dev/packages/dio)
Installation & Usage #
pub.dev #
To use the package from pub.dev, please include the following in pubspec.yaml
dependencies:
twitter_openapi_dart_generated: 0.0.1
Github #
If this Dart package is published to Github, please include the following in pubspec.yaml
dependencies:
twitter_openapi_dart_generated:
git:
url: https://github.com/GIT_USER_ID/GIT_REPO_ID.git
#ref: main
Local development #
To use the package from your local drive, please include the following in pubspec.yaml
dependencies:
twitter_openapi_dart_generated:
path: /path/to/twitter_openapi_dart_generated
Getting Started #
Please follow the installation procedure and then run the following:
import 'package:twitter_openapi_dart_generated/twitter_openapi_dart_generated.dart';
final api = TwitterOpenapiDartGenerated().getDefaultApi();
final String userAgent = userAgent_example; // String |
final String authorization = authorization_example; // String |
final String xTwitterActiveUser = xTwitterActiveUser_example; // String |
final String xTwitterClientLanguage = xTwitterClientLanguage_example; // String |
final String queryId = "9zwVLJ48lmVUk8u_Gh9DmA"; // String |
final String variables = {"screen_name": "elonmusk"}; // String |
final String features = {}; // String |
try {
final response = await api.getProfileSpotlightsQuery(userAgent, authorization, xTwitterActiveUser, xTwitterClientLanguage, queryId, variables, features);
print(response);
} catch on DioError (e) {
print("Exception when calling DefaultApi->getProfileSpotlightsQuery: $e\n");
}
Documentation for API Endpoints #
All URIs are relative to https://twitter.com/i/api
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | getProfileSpotlightsQuery | GET /graphql/9zwVLJ48lmVUk8u_Gh9DmA/ProfileSpotlightsQuery | |
OtherApi | other | GET /other | |
PostApi | postCreateRetweet | POST /graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet | |
PostApi | postCreateTweet | POST /graphql/1RyAhNwby-gzGCRVsMxKbQ/CreateTweet | |
PostApi | postDeleteRetweet | POST /graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet | |
PostApi | postDeleteTweet | POST /graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet | |
PostApi | postFavoriteTweet | POST /graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet | |
PostApi | postUnfavoriteTweet | POST /graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet | |
TweetApi | getBookmarks | GET /graphql/tmd4ifV8RHltzn8ymGg1aw/Bookmarks | |
TweetApi | getHomeLatestTimeline | GET /graphql/zhX91JE87mWvfprhYE97xA/HomeLatestTimeline | |
TweetApi | getHomeTimeline | GET /graphql/HCosKfLNW1AcOo3la3mMgg/HomeTimeline | |
TweetApi | getLikes | GET /graphql/5fmEkRT-1AdHqEsbVgehMg/Likes | |
TweetApi | getListLatestTweetsTimeline | GET /graphql/2TemLyqrMpTeAmysdbnVqw/ListLatestTweetsTimeline | |
TweetApi | getTweetDetail | GET /graphql/wNNG8DBB8EaXw1lq4vFWGA/TweetDetail | |
TweetApi | getUserMedia | GET /graphql/YqiE3JL1KNgf9nSljYdxaA/UserMedia | |
TweetApi | getUserTweets | GET /graphql/HuTx74BxAnezK1gWvYY7zg/UserTweets | |
TweetApi | getUserTweetsAndReplies | GET /graphql/RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies | |
UserApi | getUserByScreenName | GET /graphql/sLVLhk0bGj3MVFEKTdax1w/UserByScreenName | |
UserListApi | getFollowers | GET /graphql/djdTXDIk2qhd4OStqlUFeQ/Followers | |
UserListApi | getFollowing | GET /graphql/IWP6Zt14sARO29lJT35bBw/Following | |
V11GetApi | getFriendsFollowingList | GET /1.1/friends/following/list.json | |
V11GetApi | getSearchTypeahead | GET /1.1/search/typeahead.json | |
V11PostApi | postCreateFriendships | POST /1.1/friendships/create.json | |
V11PostApi | postDestroyFriendships | POST /1.1/friendships/destroy.json | |
V20GetApi | getSearchAdaptive | GET /2/search/adaptive.json |
Documentation For Models #
- BookmarksResponse
- BookmarksResponseData
- BookmarksTimeline
- CommunitiesActions
- ContentEntryType
- ContentItemType
- ContentUnion
- CreateRetweet
- CreateRetweetResponse
- CreateRetweetResponseData
- CreateRetweetResponseResult
- CreateTweet
- CreateTweetResponse
- CreateTweetResponseData
- CreateTweetResponseResult
- DeleteRetweetResponse
- DeleteRetweetResponseData
- DeleteTweetResponse
- DeleteTweetResponseData
- DeleteTweetResponseResult
- Entities
- ExtendedEntities
- FavoriteTweet
- FavoriteTweetResponseData
- FollowResponse
- FollowResponseData
- FollowResponseResult
- FollowResponseUser
- FollowTimeline
- HomeTimelineHome
- HomeTimelineResponseData
- InstructionType
- InstructionUnion
- ItemContentUnion
- ItemResult
- ListTweetsTimeline
- ListTweetsTimelineData
- ListTweetsTimelineList
- ListTweetsTimelineResponse
- Media
- MediaOriginalInfo
- ModuleEntry
- ModuleItem
- OneFactorLoginEligibility
- OtherResponse
- PostCreateRetweetRequest
- PostCreateTweetRequest
- PostCreateTweetRequestFeatures
- PostCreateTweetRequestVariables
- PostCreateTweetRequestVariablesMedia
- PostDeleteRetweetRequest
- PostDeleteRetweetRequestVariables
- PostDeleteTweetRequest
- PostDeleteTweetRequestVariables
- PostFavoriteTweetRequest
- PostUnfavoriteTweetRequest
- ProfileResponse
- ProfileResponseData
- Retweet
- RetweetLegacy
- Session
- SocialContext
- Timeline
- TimelineAddEntries
- TimelineAddEntry
- TimelineClearCache
- TimelinePinEntry
- TimelineResponse
- TimelineTerminateTimeline
- TimelineTimelineCursor
- TimelineTimelineItem
- TimelineTimelineModule
- TimelineTweet
- TimelineUser
- TimelineV2
- Tweet
- TweetDetailResponse
- TweetDetailResponseData
- TweetEditControl
- TweetEditPrespective
- TweetLegacy
- TweetTombstone
- TweetUnion
- TweetViews
- TweetWithVisibilityResults
- TypeName
- UnfavoriteTweet
- UnfavoriteTweetResponseData
- User
- UserFeatures
- UserLegacy
- UserResponse
- UserResponseData
- UserResultByScreenName
- UserResultByScreenNameLegacy
- UserResultByScreenNameResult
- UserResultCore
- UserResults
- UserTweetsData
- UserTweetsResponse
- UserTweetsResult
- UserTweetsUser
Documentation For Authorization #
Authentication schemes defined for the API:
AuthType #
- Type: API key
- API key parameter name: x-twitter-auth-type
- Location: HTTP header
CookieAuthToken #
- Type: API key
- API key parameter name: auth_token
- Location:
CookieCt0 #
- Type: API key
- API key parameter name: ct0
- Location:
CsrfToken #
- Type: API key
- API key parameter name: x-csrf-token
- Location: HTTP header
GuestToken #
- Type: API key
- API key parameter name: x-guest-token
- Location: HTTP header