def create_account(user_id, project_id, domain_id): body = dict(user_id=user_id, project_id=project_id, domain_id=domain_id, consumption='0', balance='0', level=3, currency='CNY') client.post('/accounts', body=body)
def generate_coupons(number, price): body = dict(number=number, price=price) client.post('/precharge', body=body)
def create_project(user_id, project_id, domain_id): body = dict(user_id=user_id, project_id=project_id, domain_id=domain_id, consumption='0') client.post('/projects', body=body)