def adddeploykey(self, project_id, title, key):
        """
        Creates a new deploy key for a project.

        :param project_id: project id
        :param title: title of the key
        :param key: the key itself
        :return: true if success, false if not
        """
        data = {'id': project_id, 'title': title, 'key': key}

        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=self.timeout)

        if request.status_code == 201:
            return request.json()
        else:
            return False
def adddeploykey ( self , project_id , title , key ) : data = { 'id' : project_id , 'title' : title , 'key' : key } 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 = self . timeout ) if request . status_code == 201 : return request . json ( ) else : return False
Creates a new deploy key for a project.

        :param project_id: project id
        :param title: title of the key
        :param key: the key itself
        :return: true if success, false if not