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