SlyTwitter.twitter#
Twitter API v1.1
Functions
|
Classes
|
Following relationship between two users, four possible states |
|
|
|
Twitter V1.1 API Client |
|
Twitter user, can be hydrated from a variety of sources |
- class SlyTwitter.twitter.User(source)[source]#
Bases:
object
Twitter user, can be hydrated from a variety of sources
- created_at: datetime.datetime | None = None#
- class SlyTwitter.twitter.Following(source)[source]#
Bases:
object
Following relationship between two users, four possible states
- SlyTwitter.twitter.get_tweet_id(tweet)[source]#
- Parameters:
tweet (SlyTwitter.twitter.Tweet | int | str) –
- Return type:
- class SlyTwitter.twitter.Twitter(auth)[source]#
Bases:
WebAPI
Twitter V1.1 API Client
- Parameters:
auth (OAuth1) –
- await tweet(body, media=None)[source]#
Post a tweet. Media can be: - a file path - a URL - some media already uploaded - a bytes-like obj a tupled with a file extension
- await check_follow(a, b)[source]#
Get the relationship between two users.
- Parameters:
a (SlyTwitter.twitter.User | str) –
b (SlyTwitter.twitter.User | str) –
- await delete(tweet)[source]#
Delete a tweet.
- Parameters:
tweet (SlyTwitter.twitter.Tweet | int | str) –
- await retweet(tweet)[source]#
Retweet a tweet.
- Parameters:
tweet (SlyTwitter.twitter.Tweet | int | str) –
- await quote_tweet(body, quoting, media=None)[source]#
Post a tweet quoting another tweet.
- Parameters:
body (str) –
quoting (SlyTwitter.twitter.Tweet | str) –
media (list[SlyTwitter.twitter_upload.Media] | str | tuple[bytes, str] | None) –
- Return type: