mirror of
https://github.com/5vl/AutomatedCats.git
synced 2025-05-23 22:06:57 +00:00
Create get_consumer_keys.py
This commit is contained in:
parent
c9129690f1
commit
c99843fd24
15
get_consumer_keys.py
Normal file
15
get_consumer_keys.py
Normal file
@ -0,0 +1,15 @@
|
||||
import tweepy
|
||||
|
||||
oauth1_user_handler = tweepy.OAuth1UserHandler(
|
||||
"API_KEY", "API_SECRET",
|
||||
callback="CALLBACK_URL"
|
||||
)
|
||||
|
||||
print(oauth1_user_handler.get_authorization_url(signin_with_twitter=True))
|
||||
|
||||
code = input("Enter verifier: ")
|
||||
|
||||
access_token, access_token_secret = oauth1_user_handler.get_access_token(code)
|
||||
|
||||
print("Consumer key: " + access_token)
|
||||
print("Consumer secret: " + access_token_secret)
|
Loading…
x
Reference in New Issue
Block a user