Lists all projects in the account
It's possible to search for projects by providing part of the name, and to order the returned list using 'asc' or 'desc'
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 ready 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/projects', '43601159-5921-4369-0777-3923967ADBCB', 'A67122DE-D66F-F632-D669-1C2CEDA2A5C0');
$headers = auth_headers('43601159-5921-4369-0777-3923967ADBCB', $nonce);
$fields = array(
'simulation_mode'=>'simulation',
'search' => $arg1,
'order' => $arg2
);
$result = call_elucidat($headers, $fields, 'GET', 'https://api.elucidat.com/v2/projects', '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 = {
'simulation_mode' => 'simulation',
'search' => arg1,
'order' => arg2
}
pp client.call_elucidat(headers, fields, 'GET', '/v2/projects')
Python
nonce = get_nonce('https://api.elucidat.com/v2/projects', '43601159-5921-4369-0777-3923967ADBCB', 'A67122DE-D66F-F632-D669-1C2CEDA2A5C0')
headers = auth_headers('43601159-5921-4369-0777-3923967ADBCB', nonce);
fields = [
('simulation_mode', 'simulation'),
('search', arg1),
('order', arg2)
]
print call_elucidat(headers, fields, 'GET', 'https://api.elucidat.com/v2/projects', 'A67122DE-D66F-F632-D669-1C2CEDA2A5C0')
Response
[
{
"project_code": "60b64d4492fa6",
"name": "Audio Test",
"created": "2021-06-01 15:07:48",
"project_views": "0",
"project_views_this_month": "0",
"project_passes": "0",
"project_fails": "0",
"theme_skin_id": "27895",
"name_in_release": "",
"language": "en-GB",
"theme": "master_theme",
"theme_version_number": "1",
"scorm_mode": "1.2",
"lrs_endpoint": null,
"lrs_endpoint_username": null,
"learner_access": "any",
"project_description": null,
"use_learner_service": "0",
"edit_url": "https://app.elucidat.com/projects/edit/60b64d4492fa6",
"type": "project"
}
]