onedrive/api_v5.py
def auth_user_process_url(self, url):
		'Process tokens and errors from redirect_uri.'
		url = urlparse.urlparse(url)
		url_qs = dict(it.chain.from_iterable(
			urlparse.parse_qsl(v) for v in [url.query, url.fragment] ))
		if url_qs.get('error'):
			raise APIAuthError(
				'{} :: {}'.format(url_qs['error'], url_qs.get('error_description')) )
		self.auth_code = url_qs['code']
		return self.auth_code
def auth_user_process_url(self, url):
		'Process tokens and errors from redirect_uri.'
		url = urlparse.urlparse(url)
		url_qs = dict(it.chain.from_iterable(
			urlparse.parse_qsl(v) for v in [url.query, url.fragment] ))
		if url_qs.get('error'):
			raise APIAuthError(
				'{} :: {}'.format(url_qs['error'], url_qs.get('error_description')) )
		self.auth_code = url_qs['code']
		return self.auth_code
def auth_user_process_url ( self , url ) : url = urlparse . urlparse ( url ) url_qs = dict ( it . chain . from_iterable ( urlparse . parse_qsl ( v ) for v in [ url . query , url . fragment ] ) ) if url_qs . get ( 'error' ) : raise APIAuthError ( '{} :: {}' . format ( url_qs [ 'error' ] , url_qs . get ( 'error_description' ) ) ) self . auth_code = url_qs [ 'code' ] return self . auth_code
Process tokens and errors from redirect_uri.
Process tokens and errors from redirect_uri .