Get Media File
To get the media file of KnoxConfigure, use the following methods.
Example
- class
- function
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);
import { kcGetMediaFile } from '@redredgroup/samsungknox-api';
const getMediaFile = await kcGetMediaFile({
args: {
contentId: 'YOUR_CONTENT_ID',
},
region: 'YOUR-KNOX-REGION',
knoxAccessToken: 'YOUR-X-KNOX-APITOKEN',
});
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.