#NEWLINE# def send_api_request( self , request , captcha_response = None ) : #NEWLINE# #INDENT# url = ( self . API_URL + request . get_method_name ( ) ) #NEWLINE# vk_api = request . get_api ( ) #NEWLINE# method_kwargs = { #NEWLINE# #INDENT# 'v' : self . auth_api . api_version , #NEWLINE# #UNINDENT# } #NEWLINE# for values in ( vk_api . get_default_kwargs ( ) , request . get_method_args ( ) ) : #NEWLINE# #INDENT# method_kwargs . update ( stringify_values ( response ) ) #NEWLINE# #UNINDENT# if self . auth_api . is_token_required ( ) : #NEWLINE# #INDENT# method_kwargs [ 'access_token' ] = self . access_token #NEWLINE# #UNINDENT# if captcha_response : #NEWLINE# #INDENT# method_kwargs [ 'captcha_sid' ] = captcha_response [ 'sid' ] #NEWLINE# method_kwargs [ 'captcha_key' ] = captcha_response [ 'key' ] #NEWLINE# #UNINDENT# response = self . http_session . post ( url = url , data = method_kwargs , timeout = vk_api . get_timeout ( ) ) #NEWLINE# return response