From: Harmon Date: Tue, 28 Sep 2021 04:36:58 +0000 (-0500) Subject: Update oauth example to use API.verify_credentials X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5ec4558643ab425edd1348b601f5342e89772c2b;p=tweepy.git Update oauth example to use API.verify_credentials --- diff --git a/examples/oauth.py b/examples/oauth.py index 33960e3..e6c3b1e 100644 --- a/examples/oauth.py +++ b/examples/oauth.py @@ -23,7 +23,7 @@ api = tweepy.API(auth) # If the authentication was successful, you should # see the name of the account print out -print(api.me().name) +print(api.verify_credentials().name) # If the application settings are set for "Read and Write" then # this line should tweet out the message to your account's