

def create(config, args):
    pp = pprint.PrettyPrinter()
    url = (config['url'] + '/api/recording/')
    data = {
        'name': args['name'],
        'description': args['description'],
    }
    token = auth.get_token(config)
    r = requests.post(url, data=json.dumps(data), headers={
        'X-Auth-Token': r,
    })
    if (r.status_code != 200):
        print(('API returned status code %s' % r.status_code))
        sys.exit(1)
    else:
        pp.pprint(json.loads(r.content))

dataset/ETHPy150Open emccode/heliosburn/heliosburn/hbcli/controllers/recording.py create/VarMisuse@85/108 `token`->`r`