jetblack_tweeter.types
class AbstractTweeterSession ¶
Summary¶
The abstract class for Tweeter sessions.
Description¶
Implement this class to provide clients for the http library of your choice.
async method AbstractTweeterSession.close ¶
Summary¶
Close the connection.
async method AbstractTweeterSession.delete ¶
Summary¶
Delete data in Twitter
Parameters¶
url: strThe url
headers: Mapping[str, str]The HTTP headers
body: Optional[str]The body (if any),
timeout: Optional[float]An optional timeout.
async method AbstractTweeterSession.get ¶
Summary¶
Get data from Twitter
Parameters¶
url: strThe url
headers: Mapping[str, str]The HTTP headers.
timeout: Optional[float]An optional timeout.
async method AbstractTweeterSession.post ¶
Summary¶
Post data to Twitter
Parameters¶
url: strThe url
headers: Mapping[str, str]The HTTP headers.
body: Optional[str]The body (if any).
timeout: Optional[float]An optional timeout.
async method AbstractTweeterSession.put ¶
Summary¶
Put data to Twitter
Parameters¶
url: strThe url
headers: Mapping[str, str]The HTTP headers
body: Optional[str]The body (if any)
timeout: Optional[float]An optional timeout.
method AbstractTweeterSession.stream ¶
Summary¶
Stream data
Parameters¶
url: strThe url
method: strThe HTTP method
headers: Mapping[str, str]The HTTP headers
body: Optional[str]The body (if any)
Returns¶
AsyncIterator[Union[List[Any], Mapping[str, Any]]]: An async iterator of the unpacked JSON message.
class AbstractHttpClient ¶
Summary¶
The abstract class for HTTP clients.
async method AbstractHttpClient.close ¶
Summary¶
Close the connection.
async method AbstractHttpClient.delete ¶
Summary¶
Delete data from Twitter.
Parameters¶
url: strThe url
params: Optional[Mapping[str, Any]] (optional)The params if any. Defaults to None.
timeout: Optional[float] (optional)The timeout if any. Defaults to None.
async method AbstractHttpClient.get ¶
Summary¶
Gets data from Twitter.
Parameters¶
url: strThe url.
params: Optional[Mapping[str, Any]] (optional)The parameters if any. Defaults to None.
timeout: Optional[float] (optional)The timeout if any. Defaults to None.
async method AbstractHttpClient.post ¶
Summary¶
Post data to Twitter.
Parameters¶
url: strThe url
params: Optional[Mapping[str, Any]] (optional)The params if any. Defaults to None.
timeout: Optional[float] (optional)async method AbstractHttpClient.put ¶
Summary¶
Put data to Twitter.
Parameters¶
url: strThe url
params: Optional[Mapping[str, Any]] (optional)The params if any. Defaults to None.
timeout: Optional[float] (optional)method AbstractHttpClient.stream ¶
Summary¶
Stream data from Twitter
Parameters¶
url: strThe url
data: Optional[Mapping[str, Any]] (optional)The data. Defaults to None.
method: str (optional)The HTTP method. Defaults to 'post'.