twitter_api_core library
Classes
- BaseResponse
- The base class for HTTP responses.
- ClientContext
- MultipartFile
-
A file to be uploaded as part of a
MultipartRequest
. - OAuthTokens
- This class represents an access token used for OAuth 1.0a authentication.
- OAuthUtils
- Provides the convenience utils for OAuth.
- Response
- An HTTP response where the entire response body is known in advance.
- RetryConfig
- This class represents an automatic retry configuration.
- Serializable
- ServiceHelper
- StreamedResponse
- An HTTP response where the response body is received asynchronously after the headers have been received.
- StreamResponse
Enums
Functions
-
lookupMimeType(
String path, {List< int> ? headerBytes}) → String? -
Extract the extension from
path
and use that for MIME-type lookup, using the default extension map. -
tryJsonDecode(
BaseResponse response, String body) → dynamic
Exceptions / Errors
- DataNotFoundException
- This object is thrown to indicate that the data associated with a particular condition does not exist on Twitter's server.
- RateLimitExceededException
- This exception indicates that the number of requests for a particular endpoint exceeds the rate limit defined by the Twitter API.
- TwitterException
- This exception indicates that an unexpected error occurred when communicating with the Twitter API.
- TwitterUploadException
- This class indicates that an exception occurred during a file upload to Twitter.
- This exception is thrown to indicate that the specified access token was not authorized by the server as a result of its use in the request.