[U] Update usage in tweepy login
This commit is contained in:
+2
-2
@@ -51,7 +51,7 @@ def tweepy_login(conf: Config) -> tweepy.API:
|
|||||||
:param conf: Config from load_config()
|
:param conf: Config from load_config()
|
||||||
:return: Tweepy API object
|
:return: Tweepy API object
|
||||||
"""
|
"""
|
||||||
auth = tweepy.OAuthHandler(conf['consumer_key'], conf['consumer_secret'])
|
auth = tweepy.OAuthHandler(conf.consumer_key, conf.consumer_secret)
|
||||||
auth.set_access_token(conf['access_token'], conf['access_secret'])
|
auth.set_access_token(conf.access_token, conf.access_secret)
|
||||||
api: tweepy.API = tweepy.API(auth)
|
api: tweepy.API = tweepy.API(auth)
|
||||||
return api
|
return api
|
||||||
|
|||||||
Reference in New Issue
Block a user