FileModel

Parent
Relationships
File Access
Initialise the FileModel Object
const {
  	FileModel
} = require('@plattar/plattar-api');

// FileModel holds image data in .gltf, .glb, .usdz, .reality formats
const file = new FileModel('your-filemodel-id');

file.get().then((file) => {
	// this is the full url path to download this file
	const downloadPath = file.path;

	// this is the full url path to download the backup zip of this file
	const backupPath = file.backupPath;
}).catch((error) => {
	console.error(error);
});