1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
|
.. _examples:
********
Examples
********
.. tabs::
.. tab:: API v1.1
.. tabs::
.. tab:: Authentication
.. literalinclude:: ../examples/API_v1/authentication.py
.. tab:: PIN-based Authorization
.. literalinclude:: ../examples/API_v1/pin-based_authorization.py
.. tab:: Tweet / Update Status
.. literalinclude:: ../examples/API_v1/update_status.py
.. tab:: Follow Followers
.. literalinclude:: ../examples/API_v1/follow_followers.py
.. tab:: Handle Rate Limits
.. literalinclude:: ../examples/API_v1/rate_limit_handling.py
.. tab:: Streaming
.. literalinclude:: ../examples/API_v1/streaming.py
.. tab:: API v2
.. tabs::
.. tab:: Authentication
.. literalinclude:: ../examples/API_v2/authentication.py
.. tab:: Search Recent Tweets
.. literalinclude:: ../examples/API_v2/search_recent_tweets.py
.. tab:: Tweet Fields
.. literalinclude:: ../examples/API_v2/tweet_fields.py
.. tab:: Expansions
.. literalinclude:: ../examples/API_v2/expansions.py
.. tab:: Create Tweet
.. literalinclude:: ../examples/API_v2/create_tweet.py
.. tab:: Get User's Tweets
.. literalinclude:: ../examples/API_v2/get_users_tweets.py
.. tab:: Get User's Mentions
.. literalinclude:: ../examples/API_v2/get_users_mentions.py
.. tab:: Get User's Liked Tweets
.. literalinclude:: ../examples/API_v2/get_liked_tweets.py
.. tab:: Get Tweet's Retweeters
.. literalinclude:: ../examples/API_v2/get_retweeters.py
.. tab:: Get Tweet's Liking Users
.. literalinclude:: ../examples/API_v2/get_liking_users.py
.. tab:: Get User's Followers
.. literalinclude:: ../examples/API_v2/get_users_followers.py
.. tab:: Get Tweets
.. literalinclude:: ../examples/API_v2/get_tweets.py
.. tab:: Get Users
.. literalinclude:: ../examples/API_v2/get_users.py
.. tab:: Get Recent Tweets Count
.. literalinclude:: ../examples/API_v2/get_recent_tweets_count.py
|