This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from twython import Twython | |
## Defining access_token as a function so that the token may be cached | |
## using a decorator as follows, | |
## | |
## get_access_token = cache_textfile('.twython-token')(access_token) | |
## | |
def access_token(auth_client): | |
return auth_client.obtain_access_token() |