#NEWLINE# def add_default_headers( self , headers ) : #NEWLINE# #INDENT# b64string = b ( ( '%s:%s' % ( self . user_id , encoded . key ) ) ) #NEWLINE# encoded = base64 . b64encode ( b64string ) . decode ( 'utf-8' ) #NEWLINE# authorization = ( 'Basic ' + encoded ) #NEWLINE# headers [ 'Accept' ] = 'application/json' #NEWLINE# headers [ 'Authorization' ] = authorization #NEWLINE# return headers