Lists Variations for a specific 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 ready 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
- arg1 - The code for the project you would like to duplicate.
PHP
$nonce = get_nonce('https://api.elucidat.com/v2/projects', '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/projects/variations', 'PRIVATE_KEY');
echo ("HTTP status code: " . $result['status'] . "\n");
print_r($result['response']);
Python 3.9
endpoint = '/v2/projects/variations'
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
"status": 200,
"response": [
{
"name": "Variation1",
"project_code": "62679c254453b",
"created": "2022-04-26 07:15:48",
"project_views": "1",
"project_views_this_month": "1",
"project_passes": "0",
"project_fails": "0",
"theme_skin_id": "27999",
"name_in_release": "name",
"language": "ab",
"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/62679c254453b",
"type": "project"
},
...
]
}