All URIs are relative to https://false
Method | HTTP request | Description |
---|---|---|
loLearnv1loid | GET /learn/v1/lo/{id} | Returns information for a single learning object |
loLearnv1loidLoplay | GET /learn/v1/lo/{id_lo}/play | Play single LO or scorm |
loLearnv1loidtrack | POST /learn/v1/lo/{id}/track | |
Track single LO |
\Swagger\Client\Model\LearnLoViewResponse loLearnv1loid($id)
Returns information for a single learning object
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: docebo_oauth
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$api_instance = new Swagger\Client\Api\LoApi();
$id = 56; // int | The learning object ID
try {
$result = $api_instance->loLearnv1loid($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LoApi->loLearnv1loid: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | The learning object ID |
\Swagger\Client\Model\LearnLoViewResponse
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\LearnLoPlayResponse loLearnv1loidLoplay($id_lo, $device)
Play single LO or scorm|tincan chapter
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: docebo_oauth
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$api_instance = new Swagger\Client\Api\LoApi();
$id_lo = "id_lo_example"; // string | ID if the LO or combination if ID LO and SCO/TIN CAN item (id_lo:id_chapter)
$device = "device_example"; // string | Device target e.g. tablet, desktop, smartphone
try {
$result = $api_instance->loLearnv1loidLoplay($id_lo, $device);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LoApi->loLearnv1loidLoplay: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id_lo | string | ID if the LO or combination if ID LO and SCO/TIN CAN item (id_lo:id_chapter) | |
device | string | Device target e.g. tablet, desktop, smartphone | [optional] |
\Swagger\Client\Model\LearnLoPlayResponse
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\LearnLoTrackResponse loLearnv1loidtrack($id)
Track single LO
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: docebo_oauth
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$api_instance = new Swagger\Client\Api\LoApi();
$id = "id_example"; // string | The ID of the learning object or SCO chapter
try {
$result = $api_instance->loLearnv1loidtrack($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LoApi->loLearnv1loidtrack: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string | The ID of the learning object or SCO chapter |
\Swagger\Client\Model\LearnLoTrackResponse
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]