const { SquareCloudAPI } = require("@squarecloud/api");
const api = new SquareCloudAPI("Your API Key");
// Specify the content and name of the zip file you want to upload
const { join } = require("node:path");
const fileName = "application.zip";
const filePath = join(__dirname, fileName);
// Perform the upload operation
const success = await api.applications.create(filePath);
// Handle the result accordingly
if (success) {
console.log(`Application uploaded successfully.`, success);
// Return the application uploaded information (id, tag, description, etc.)
} else {
console.error(`Failed to upload application.`);
}