Skip to main content

Get Media File

To get the media file of KnoxConfigure, use the following methods.

Example

import { KnoxInstance } from '@redredgroup/samsungknox-api';
const instance = new KnoxInstance({
region: 'YOUR_KNOX_REGION',
knoxAccessToken: 'YOUR_JWT_TOKEN',
});

const getMediaFile = await instance.kcContentManagementAsset.getMediaFile({
args: {
contentId: 'YOUR_CONTENT_ID',
},
});

console.log(getMediaFile);

Input parameters:

  • args: Insert parameters for the media file (required) contentId.
  • region: Insert the Knox region. Most of them are EU (case insensitive)
  • knoxAccessToken: Your X-KNOX-APITOKEN.

Output:

  • The asset download address is responded to as downloadUrl.