.. _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
