Skip to main content
Legacy API

The examples on this page use the legacy contract. They are not v2 fallbacks. Operations without a v2 equivalent remain legacy-only. See the Configure v2 migration guide.

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.