#NEWLINE# def access_token( self , token ) : #NEWLINE# #INDENT# 'Return request for access token value' #NEWLINE# try : #NEWLINE# #INDENT# return self . get_querystring ( self . ACCESS_TOKEN_URL , auth = self . oauth_auth ( token ) ) #NEWLINE# #UNINDENT# except HTTPError as err : #NEWLINE# #INDENT# if ( err . response . status_code == 401 ) : #NEWLINE# #INDENT# raise AuthCanceled ( self , response = err . response ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise