get_asset
Fetch a Skilljar asset by ID and receive a working download link. Use this to get the actual file directly, with a presigned URL that requires no additional credentials.
Instructions
Fetch one asset, INCLUDING A WORKING DOWNLOAD LINK.
`id` is the asset id, as `list_assets` returns and as a lesson's
`content_asset_id` refers to.
THE RETURNED download_url IS THE FILE, NOT A REFERENCE TO IT. It is a presigned
link that needs NO Skilljar credentials and works for roughly an hour, and it is
different every time this is called.
Anyone who can read the URL can download the content.
So: do not put it anywhere it will be seen by someone who should not have the
file, and do not store or cache it - a saved URL expires and then looks like a
broken asset rather than an expired link.
If you only need to know an asset exists, or what type it is, use `list_assets`,
which returns no link at all.
Requires `CSA_SKILLJAR_V1_API_KEY`, a separate credential from the v2 client.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | No | ||
| warning | No | ||
| asset_type | No | ||
| download_url | No | ||
| embed_link_url | No | ||
| sync_completion | No |