jetblack_tweeter
class Tweeter ¶
Summary¶
Initialise the Twitter client.
Parameters¶
session: AbstractTweeterSessionThe Twitter session implementation.
app_key: strThe app-key.
app_key_secret: strThe app-key-secret
access_token: Optional[str] (optional)An optional access token. Defaults to None.
access_token_secret: Optional[str] (optional)An optional access token secret. Defaults to None.
Attributes¶
account: AccountAccess to the account end point.
search: SearchAccess to the search end point.
statuses: StatusesAccess to the statuses end point.
stream: StreamAccess to the stream end point.
tweets: TweetsAccess to the tweets end point.
users: StatusesAccess to the users end point.
class AuthenticatedHttpClient(AbstractHttpClient) ¶
Summary¶
Initialise the authenticated HTTP client.
Parameters¶
tweeter_session: AbstractTweeterSessionThe tweeter session implementation.
consumer_key: strTHe OAuth1 consumer key
consumer_secret: strThe OAuth1 consumer secret.
access_token: Optional[str] (optional)The OAuth1 access token. Defaults to None.
access_token_secret: Optional[str] (optional)The Oauth1 access token secret. Defaults to None.
async method AuthenticatedHttpClient.close ¶
Summary¶
Close the connection.
async method AuthenticatedHttpClient.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 AuthenticatedHttpClient.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 AuthenticatedHttpClient.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 AuthenticatedHttpClient.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 AuthenticatedHttpClient.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'.