Skip to main content
GET
/
v1
/
scorm
/
{id}
/
download
Download a SCORM package
curl --request GET \
  --url https://api.example.com/v1/scorm/{id}/download

Documentation Index

Fetch the complete documentation index at: https://docs.hawkings.education/llms.txt

Use this file to discover all available pages before exploring further.

Path parameters

id
string
required

Examples

import { createWriteStream } from "node:fs";

const stream = await hk.scorm.download("pak_123");
stream.pipe(createWriteStream("./course.zip"));
In the browser:
const stream = await hk.scorm.download("pak_123");
const blob = await stream.blob();
const url = URL.createObjectURL(blob);

Returns

A ReadableStream of application/zip.

See also