

def add(self, client_id, email_address, name, access_level, password):
    'Adds a person to a client. Password is optional and if not supplied, an invitation will be emailed to the person'
    body = {
        'EmailAddress': email_address,
        'Name': name,
        'AccessLevel': access_level,
        'Password': password,
    }
    response = self._post(('/clients/%s/people.json' % client_id), json.dumps(body))
    return json_to_py(response)

dataset/ETHPy150Open campaignmonitor/createsend-python/createsend/person.py Person.add/original