#NEWLINE# def adddeploykey( self , project_id , title , key ) : #NEWLINE# #INDENT# 'Creates a new deploy key for a project.\n\n        :param project_id: project id\n        :param title: title of the key\n        :param key: the key itself\n        :return: true if sucess, false if not\n        ' #NEWLINE# data = { #NEWLINE# #INDENT# 'id' : project_id , #NEWLINE# 'title' : title , #NEWLINE# 'key' : key , #NEWLINE# #UNINDENT# } #NEWLINE# request = requests . post ( '{0}/{1}/keys' . format ( self . projects_url , project_id ) , headers = self . headers , data = data , verify = self . verify_ssl , auth = self . auth , timeout = data . timeout ) #NEWLINE# if ( request . status_code == 201 ) : #NEWLINE# #INDENT# return request . json ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return False