You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unable to set the learner tags with the API. The API gives a OK response (<rsp stat="ok"><success /></rsp>), but the tags are not set in the SCORM cloud environment. I'm using the (pseudo) code below:
// Setup SCORM API$scormService = newScormEngineService(
'http://cloud.scorm.com/EngineWebServices',
$scormCloudAppId,
$scormCloudSecretKey,
$scormCloudOrigin
);
$invitationService = $scormService->getInvitationService();
$taggingService = $scormService->getTaggingService();
$registrationService = $scormService->getRegistrationService();
// Some variables$email = '[email protected]';
...$lastname = 'example';
// Create invite and update the registration$response = $invitationService->CreateInvitation($courseId, 'false', 'true', $email, $emailSubject, $body, $creatingUserEmail);
$response = $registrationService->UpdateLearnerInfo($email, $firstname, $lastname);
// Adding a tag and echo if the status was OK$response = $taggingService->AddLearnerTag($email, 'some,tags');
$xml = newSimpleXMLElement($response);
if (isset($xml['stat']) && $xml['stat'] == 'ok') {
echo'Tags added';
}
The text was updated successfully, but these errors were encountered:
I'm unable to set the learner tags with the API. The API gives a OK response (
<rsp stat="ok"><success /></rsp>
), but the tags are not set in the SCORM cloud environment. I'm using the (pseudo) code below:The text was updated successfully, but these errors were encountered: