def create_contact(self, email, name):
        """
        Create a new contact
        :param email: user email
        :param name: user name
        """
        params = {'email': email, 'name': name}

        url = self.CONTACTS_URL

        connection = Connection(self.token)
        connection.set_url(self.production, url)
        connection.add_header('Content-Type', 'application/json')
        connection.add_params(params, json_format=True)

        return connection.post_request()
def create_contact ( self , email , name ) : params = { 'email' : email , 'name' : name } url = self . CONTACTS_URL connection = Connection ( self . token ) connection . set_url ( self . production , url ) connection . add_header ( 'Content-Type' , 'application/json' ) connection . add_params ( params , json_format = True ) return connection . post_request ( )
Create a new contact
        :param email: user email
        :param name: user name