Skip to content

Instantly share code, notes, and snippets.

@aspose-cloud
Created July 3, 2020 17:33
// For complete examples and data files, please go to https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-node
const fileName = "NewProductDev.mpp";
const localPath = "./Data/" + fileName;
const remotePath = "Temp/Data";
const remoteFullPath = remotePath + "/" + fileName;
await tasksApi.uploadFileToStorage(remoteFullPath, localPath);
const request = new GetOutlineCodeByIndexRequest();
request.name = fileName;
request.folder = remotePath;
request.index = 1;
const result = await tasksApi.getOutlineCodeByIndex(request);
expect(result.response.statusCode).to.equal(200);
expect(result.body.outlineCode).not.undefined.and.not.null;
expect(result.body.outlineCode.guid).to.equal("F45D601B-70C5-E311-A5BA-D43D7E937F92");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment