You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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).
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