Lists all releases for a given project
Before using this call, you'll need to authenticate against the API as detailed here.
All of these examples have simulation mode turned on. Once you are read to use in a production environment, you can remove the simulation parameter. Any changes will then affect your account.
PHP
$nonce = get_nonce('https://api.elucidat.com/v2/releases', '43601159-5921-4369-0777-3923967ADBCB', 'A67122DE-D66F-F632-D669-1C2CEDA2A5C0');
$headers = auth_headers('43601159-5921-4369-0777-3923967ADBCB', $nonce);
$fields = array(
'project_code'=>$arg1,
'simulation_mode'=>'simulation');
$result = call_elucidat($headers, $fields, 'GET', 'https://api.elucidat.com/v2/releases', 'A67122DE-D66F-F632-D669-1C2CEDA2A5C0');
echo ("HTTP status code: " . $result['status'] . "\n");
print_r($result['response']);
Ruby
nonce = client.get_nonce;
headers = client.auth_headers(nonce)
fields = {
'project_code' => arg1,
'simulation_mode' => 'simulation'
}
pp client.call_elucidat(headers, fields, 'GET', '/v2/releases')
Python
nonce = get_nonce('https://api.elucidat.com/v2/releases', '43601159-5921-4369-0777-3923967ADBCB', 'A67122DE-D66F-F632-D669-1C2CEDA2A5C0')
headers = auth_headers('43601159-5921-4369-0777-3923967ADBCB', nonce);
fields = [
('project_code', arg1),
('simulation_mode', 'simulation')]
print call_elucidat(headers, fields, 'GET', 'https://api.elucidat.com/v2/releases', 'A67122DE-D66F-F632-D669-1C2CEDA2A5C0')
Response
[
{
"release_code": "6087d634515c6",
"created": "2021-04-27 09:15:32",
"modified": "2021-04-27 09:18:40",
"status": "complete",
"description": "",
"release_views": "1",
"release_views_this_month": "0",
"release_passes": "0",
"release_fails": "0",
"release_last_view": "2021-08-24 09:52:01",
"version_number": "1",
"release_mode": "offline-backup",
"lrs_endpoint": "",
"lrs_endpoint_username": "",
"learner_access": "any",
"release_type": "standard",
"project": {
"name": "Home Automation on a Budget",
"project_code": "6033d7b58ca1f"
},
"timezone": "UTC",
"edit_url": "https://app.elucidat.com/projects/edit/6033d7b58ca1f"
}
]