Lists all releases for a given Project.
Note: Before using this call, you'll need to authenticate against the API as detailed in Making your first call to the Project API. |
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.
The following arguments are available against this endpoint:
project_code
- The code for the project you would like to edit.
PHP
$nonce = get_nonce('https://api.elucidat.com/v2/releases', 'PUBLIC_KEY', 'PRIVATE_KEY');
$headers = auth_headers('PUBLIC_KEY', $nonce);
$fields = array(
'project_code' => $arg1,
'simulation_mode' => 'simulation'
);
$result = call_elucidat($headers, $fields, 'GET', 'https://api.elucidat.com/v2/releases', 'PRIVATE_KEY');
echo ("HTTP status code: " . $result['status'] . "\n");
print_r($result['response']);
Python 3.9
endpoint = '/v2/releases'
method = 'GET'
params = {'project_code': 'arg1',
'simulation_mode': 'simulation'}
data = {}
api = Api(api_root, endpoint, method, params, data, private_key, public_key)
api.call_elucidat()
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"
}
]