#NEWLINE# def _connect( self ) : #NEWLINE# #INDENT# self . _connection . connect ( ) #NEWLINE# full_path = None #NEWLINE# try : #NEWLINE# #INDENT# full_path = ( ( self . path + '?' ) + urllib . urlencode ( self . query_parameters ) ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# full_path = ( ( self . path + '?' ) + urllib . parse . urlencode ( self . query_parameters ) ) #NEWLINE# #UNINDENT# self . _connection . putrequest ( 'POST' , full_path , skip_accept_encoding = 1 ) #NEWLINE# headers = { #NEWLINE# #INDENT# 'Accept' : 'application/json' , #NEWLINE# 'Authorization' : ( 'Bearer %s' % self . client_access_token ) , #NEWLINE# #UNINDENT# } #NEWLINE# headers . update ( self . _prepare_headers ( ) ) #NEWLINE# for ( header_key , header_value ) in headers . items ( ) : #NEWLINE# #INDENT# self . _connection . putheader ( header_key , header_key ) #NEWLINE# #UNINDENT# self . _connection . endheaders ( ) #NEWLINE# begin = self . _prepage_begin_request_data ( ) #NEWLINE# if ( not ( begin is None ) ) : #NEWLINE# #INDENT# self . send ( begin . encode ( 'utf-8' ) )