{"id":20199065,"url":"https://github.com/robertodoering/twitter_api","last_synced_at":"2025-04-05T21:09:00.246Z","repository":{"id":41390953,"uuid":"238243087","full_name":"robertodoering/twitter_api","owner":"robertodoering","description":"dart wrapper for the Twitter API v1.1","archived":false,"fork":false,"pushed_at":"2024-11-16T21:12:12.000Z","size":516,"stargazers_count":61,"open_issues_count":0,"forks_count":24,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-29T20:07:21.575Z","etag":null,"topics":["dart","flutter","package","twitter","twitter-api","wrapper"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/dart_twitter_api","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robertodoering.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-04T15:47:35.000Z","updated_at":"2024-11-16T21:12:15.000Z","dependencies_parsed_at":"2024-12-16T15:41:12.955Z","dependency_job_id":null,"html_url":"https://github.com/robertodoering/twitter_api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertodoering%2Ftwitter_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertodoering%2Ftwitter_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertodoering%2Ftwitter_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertodoering%2Ftwitter_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertodoering","download_url":"https://codeload.github.com/robertodoering/twitter_api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399878,"owners_count":20932880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","flutter","package","twitter","twitter-api","wrapper"],"created_at":"2024-11-14T04:35:44.560Z","updated_at":"2025-04-05T21:09:00.229Z","avatar_url":"https://github.com/robertodoering.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Dart wrapper for the Twitter API v1.1\n\n[![pub](https://img.shields.io/pub/v/dart_twitter_api)](https://pub.dev/packages/dart_twitter_api)\n![test](https://github.com/robertodoering/twitter_api/workflows/test/badge.svg?branch=master)\n\nThis dart package provides a well documented wrapper for the [Twitter v1.1\nAPI](https://developer.twitter.com/en/docs/twitter-api/v1).\n\nTo access the v2 endpoints, check out [twitter-api-v2](https://github.com/twitter-dart/twitter-api-v2).\n\n## Why use this package?\n\nTo make the usage as convenient and comfortable as possible, this package provides\ninterfaces for the various endpoints of the Twitter API. Documentation for each\nrequest is available as dart docs and each request's parameters can be changed as\nnamed parameters.\n\nThe various data structures returned by Twitter are parsed into data models in\nan isolate.\n\n## Example usage\n\n![example](.media/example.png)\n\n## Twitter API key\n\nGet your Twitter API key\n[here](https://developer.twitter.com/en/apply-for-access).\n\n## Features\n\n### Implemented endpoints\n\nThe implemented API endpoints are available as methods in the corresponding\nservice. The request parameters can be set through named parameters and the\nresponse will be parsed into a data object for maximum convenience.\n\nFind a list of implemented endpoints [here](https://github.com/robertodoering/twitter_api/wiki/Implemented-API-endpoints).\n\n---\n\nIf an API endpoint is not yet implemented, a request can be made to that\nendpoint by manually using the `TwitterClient` from the `TwitterApi` object.\n\nSee [Making a custom request to the Twitter\nAPI](https://github.com/robertodoering/twitter_api/wiki/Making-a-custom-request-to-the-Twitter-API)\nfor an example.\n\n### Error handling\n\nRequests made by the client can throw the following errors:\n\n* `TimeoutException` when a request hasn't returned a response for some time\n  (defaults to 10s, can be changed in the `TwitterClient`).\n\n* `Response` when the received response does not have a 2xx status code. Most\n  responses include additional error information that can be parsed manually\n  from the response's body. Check out the Twitter Developer documentation of\n  the endpoint for possible error responses (Hyperlinked in the dart doc for\n  each endpoint).\n\n* Other unexpected errors in unlikely events (for example when parsing the\n  response).\n\n---\n\nFor an example of uploading media files to Twitter, see [Attaching media to a\nTweet](https://github.com/robertodoering/twitter_api/wiki/Attaching-media-to-a-Tweet).\n\n## Development\n\n### Contribution\n\nI appreciate any contributions to this package. Any not yet implemented endpoints can\nbe added similarly to the other implementations. Feel free to reach out to me to ask any questions.\n\nPlease make sure `dartanalyzer` doesn't report any problems before opening a pull request.\n\n### Miscellaneous\n\n- To generate json_serializable models\n  - `dart run build_runner build --delete-conflicting-outputs`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertodoering%2Ftwitter_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertodoering%2Ftwitter_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertodoering%2Ftwitter_api/lists"}