twitter_openapi_dart 0.0.11 copy "twitter_openapi_dart: ^0.0.11" to clipboard
twitter_openapi_dart: ^0.0.11 copied to clipboard

It is a Dart implementation of Twitter's internal API. It is available without special API tokens and also supports GraphQL endpoints.

twitter_openapi_dart #

Human-friendly Twitter OpenAPI

Sample app #

Setup #

dart pub add twitter_openapi_dart

Usage #

import 'package:twitter_openapi_dart/twitter_openapi_dart.dart';

Login #

Flutter (Recommendation)

Load cookie from flutter_inappwebview.

import 'package:twitter_openapi_dart/twitter_openapi_dart.dart';
final api = TwitterOpenapiDart():
final client = api.getTwitterOpenapiDartClient(FlutterInappwebviewDio());

Other Login

import 'package:twitter_openapi_dart/twitter_openapi_dart.dart';
final api = TwitterOpenapiDart():
final client = api.getClientFromCookies({"authToken": "<auth token here>", "ct0": "<csrf token here>"});

Guest Mode

import 'package:twitter_openapi_dart/twitter_openapi_dart.dart';
final api = TwitterOpenapiDart():
final client = api.getGuestClient();

API #

test may be able to help you.

// https://twitter.com/elonmusk/status/1349129669258448897
final result = await client.getTweetApi().getTweetDetail(focalTweetId: "1349129669258448897");
if (result.cursor.bottom?.value == null) return;
final bottom = await client.getTweetApi().getTweetDetail(focalTweetId: "1349129669258448897", cursor: result.cursor.bottom?.value);
0
likes
110
points
59
downloads

Publisher

verified publisheryuki0311.com

Weekly Downloads

It is a Dart implementation of Twitter's internal API. It is available without special API tokens and also supports GraphQL endpoints.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

built_collection, built_value, collection, cookie_jar, dio, dio_cookie_manager, intl, twitter_openapi_dart_generated

More

Packages that depend on twitter_openapi_dart