FileAudio

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

// FileAudio holds image data in .mp3 format
const file = new FileAudio('your-fileaudio-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);
});