All Projects → robertodoering → twitter_api

robertodoering / twitter_api

Licence: BSD-3-Clause license
A Dart wrapper for the Twitter API v1.1

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to twitter api

Csscreatures
Make a creature by tweeting to @csscreatures
Stars: ✭ 144 (+157.14%)
Mutual labels:  twitter-api
Tweetledee
A PHP library that provides an incredibly easy way to access Twitter data as JSON or RSS feed by URL or standard CLI syntax.
Stars: ✭ 208 (+271.43%)
Mutual labels:  twitter-api
twitter-status
Twitter Status Web Component
Stars: ✭ 59 (+5.36%)
Mutual labels:  twitter-api
Midare
🕒 ツイートを使って生活習慣の乱れを可視化するWebアプリ
Stars: ✭ 153 (+173.21%)
Mutual labels:  twitter-api
Twitter To Sqlite
Save data from Twitter to a SQLite database
Stars: ✭ 203 (+262.5%)
Mutual labels:  twitter-api
Harpy
A Twitter app built with Flutter
Stars: ✭ 211 (+276.79%)
Mutual labels:  twitter-api
Cancel Culture
Tools for fighting abuse on Twitter
Stars: ✭ 136 (+142.86%)
Mutual labels:  twitter-api
terraform-provider-twitter
No description or website provided.
Stars: ✭ 24 (-57.14%)
Mutual labels:  twitter-api
Jekyll Twitter Plugin
A Liquid tag plugin for the Jekyll blogging engine that embeds Tweets, Timelines and more from Twitter API
Stars: ✭ 204 (+264.29%)
Mutual labels:  twitter-api
ublog.el
🗿 elisp artifact – worked as a twitter client briefly
Stars: ✭ 18 (-67.86%)
Mutual labels:  twitter-api
Albert
这个是我个人网站的项目,欢迎贡献代码,力求能够应用到实际工作中java相关的大多数技术栈。有兴趣请Star一下,非常感谢。qq交流群:587577705 这个项目将不断地更新!生产环境:
Stars: ✭ 168 (+200%)
Mutual labels:  twitter-api
Twitter Bot
Node js twitter bot to send auto welcome message for your new followers
Stars: ✭ 184 (+228.57%)
Mutual labels:  twitter-api
Twitterdelete
💀 Delete your old, unpopular tweets.
Stars: ✭ 231 (+312.5%)
Mutual labels:  twitter-api
Twitter Api Php
The simplest PHP Wrapper for Twitter API v1.1 calls
Stars: ✭ 1,808 (+3128.57%)
Mutual labels:  twitter-api
mokkapps
My GitHub profile README which is automatically updated. Please ⭐️ if you like it
Stars: ✭ 63 (+12.5%)
Mutual labels:  twitter-api
Node Twitter Api
Simple module for using Twitter's API in node.js
Stars: ✭ 138 (+146.43%)
Mutual labels:  twitter-api
100daysofcode Twitter Bot
Twitter bot for #100DaysOfCode
Stars: ✭ 214 (+282.14%)
Mutual labels:  twitter-api
tweet png
A flutter app to generate beautiful, high-quality screenshots of tweets from twitter.
Stars: ✭ 51 (-8.93%)
Mutual labels:  twitter-api
TwitterScraper
Scrape a User's Twitter data! Bypass the 3,200 tweet API limit for a User!
Stars: ✭ 80 (+42.86%)
Mutual labels:  twitter-api
Egg Mode
a twitter api crate for rust
Stars: ✭ 249 (+344.64%)
Mutual labels:  twitter-api

A Dart wrapper for the Twitter API v1.1

pub test

This dart package provides a well documented wrapper for the Twitter v1.1 API.

To access the v2 endpoints, check out twitter-api-v2.

Why use this package?

To make the usage as convenient and comfortable as possible, this package provides interfaces for the various endpoints of the Twitter API. Documentation for each request is available as dart docs and each request's parameters can be changed as named parameters.

The various data structures returned by Twitter are parsed into data models in an isolate.

Example usage

example

Twitter API key

Get your Twitter API key here.

Features

Implemented endpoints

The implemented API endpoints are available as methods in the corresponding service. The request parameters can be set through named parameters and the response will be parsed into a data object for maximum convenience.

Find a list of implemented endpoints here.


If an API endpoint is not yet implemented, a request can be made to that endpoint by manually using the TwitterClient from the TwitterApi object.

See Making a custom request to the Twitter API for an example.

Error handling

Requests made by the client can throw the following errors:

  • TimeoutException when a request hasn't returned a response for some time (defaults to 10s, can be changed in the TwitterClient).

  • Response when the received response does not have a 2xx status code. Most responses include additional error information that can be parsed manually from the response's body. Check out the Twitter Developer documentation of the endpoint for possible error responses (Hyperlinked in the dart doc for each endpoint).

  • Other unexpected errors in unlikely events (for example when parsing the response).


For an example of uploading media files to Twitter, see Attaching media to a Tweet.

Development

Contribution

I appreciate any contributions to this package. Any not yet implemented endpoints can be added similarly to the other implementations. Feel free to reach out to me to ask any questions.

Please make sure dartanalyzer doesn't report any problems before opening a pull request.

Miscellaneous

  • To generate json_serializable models
    • dart run build_runner build --delete-conflicting-outputs
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].