#NEWLINE# def __init__( self , api_key , api_secret , oauth_token = None ) : #NEWLINE# #INDENT# self . log = logging . getLogger ( ( '%s.%s' % ( self . __class__ . __module__ , self . __class__ . __name__ ) ) ) #NEWLINE# assert isinstance ( api_key , six . text_type ) , 'api_key must be unicode string' #NEWLINE# assert isinstance ( api_secret , six . text_type ) , 'api_secret must be unicode string' #NEWLINE# token = None #NEWLINE# secret = None #NEWLINE# if oauth_token . token : #NEWLINE# #INDENT# token = oauth_token . token . token #NEWLINE# secret = oauth_token . token . token_secret #NEWLINE# #UNINDENT# self . oauth = OAuth1 ( api_key , api_key , token , secret , signature_type = 'auth_header' ) #NEWLINE# self . oauth_token = oauth_token #NEWLINE# self . auth_http_server = None #NEWLINE# self . requested_permissions = None