@auth_required
def create_user(username, password=""):
    endpoint = KICKFLIP_API_URL + '/user/new'
    payload = {'username': username}

    if password:
        payload['password'] = password

    user_response = kickflip_session.post(endpoint, payload)

    return user_response.json()
Uses the `/user/new` endpoint taking the username as a parameter.
dataset/ETHPy150Open Kickflip/python-kickflip/kickflip/kickflip.py/create_user