import GboxSDK from "gbox-sdk";const gboxSDK = new GboxSDK({ apiKey: process.env["GBOX_API_KEY"] // This is the default and can be omitted});async function main() { const box = await gboxSDK.create({ type: "android" }); // Get supported media extensions const supportExtensions = await box.media.getMediaSupport(); console.log("Supported photo extensions:", supportExtensions.photo); console.log("Supported video extensions:", supportExtensions.video);}main();
Get supported media file extensions for photos and videos
GET
/
boxes
/
{boxId}
/
media
/
support
JavaScript
Copy
import GboxSDK from "gbox-sdk";const gboxSDK = new GboxSDK({ apiKey: process.env["GBOX_API_KEY"] // This is the default and can be omitted});async function main() { const box = await gboxSDK.create({ type: "android" }); // Get supported media extensions const supportExtensions = await box.media.getMediaSupport(); console.log("Supported photo extensions:", supportExtensions.photo); console.log("Supported video extensions:", supportExtensions.video);}main();