Update usage of AppAuthHandler in pagination documentation
authorHarmon <Harmon758@gmail.com>
Wed, 9 Feb 2022 21:42:10 +0000 (15:42 -0600)
committerHarmon <Harmon758@gmail.com>
Wed, 9 Feb 2022 21:42:10 +0000 (15:42 -0600)
Update usage of AppAuthHandler to OAuth2AppHandler in pagination documentation

docs/pagination.rst

index a96f36a0d0123a0ededdeeaf1458edb3b3158fbe..0f6b690d5194e74a92cf25300f9219cf31909dde 100644 (file)
@@ -29,7 +29,7 @@ Example
 
             import tweepy
 
-            auth = tweepy.AppAuthHandler("Consumer Key here", "Consumer Secret here")
+            auth = tweepy.OAuth2AppHandler("Consumer Key here", "Consumer Secret here")
             api = tweepy.API(auth)
 
             for status in tweepy.Cursor(api.search_tweets, "Tweepy",