# Keep both credentials on your server. Set the ready course ID first. export SCORMBOX_API_KEY="your_api_key" export SCORMBOX_API_SECRET="your_api_secret" export SCORMBOX_COURSE_ID="your_course_id" # Create a connected SCORM 2004 export. Save the returned export_id. curl --fail-with-body --user "$SCORMBOX_API_KEY:$SCORMBOX_API_SECRET" \ --header 'Content-Type: application/json' \ --data '{"format":"scorm","mode":"connected","scorm_version":"2004"}' \ "https://scormbox.com/api/v1/courses/$SCORMBOX_COURSE_ID/exports" # Or create an AICC export. Import its ZIP into an LMS with public HTTPS HACP. curl --fail-with-body --user "$SCORMBOX_API_KEY:$SCORMBOX_API_SECRET" \ --header 'Content-Type: application/json' \ --data '{"format":"aicc"}' \ "https://scormbox.com/api/v1/courses/$SCORMBOX_COURSE_ID/exports" # Use the export_id returned by the format you chose. export SCORMBOX_EXPORT_ID="export_id_from_the_response" curl --fail-with-body --user "$SCORMBOX_API_KEY:$SCORMBOX_API_SECRET" \ --output course.zip \ "https://scormbox.com/api/v1/courses/$SCORMBOX_COURSE_ID/exports/$SCORMBOX_EXPORT_ID/download"