Skip to content

Instantly share code, notes, and snippets.

@aspose-cloud
Created July 3, 2020 16:57
// For complete examples and data files, please go to https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-node
const fileName = "Project2016.mpp";
const localPath = "./Data/" + fileName;
const remotePath = "Temp/Data";
const remoteFullPath = remotePath + "/" + fileName;
await tasksApi.uploadFileToStorage(remoteFullPath, localPath);
const request = new GetTaskRequest();
request.name = fileName;
request.folder = remotePath;
request.taskUid = 5;
const result = await tasksApi.getTask(request);
expect(result.response.statusCode).to.equal(200);
expect(result.body.task).is.not.undefined.and.not.null;
expect(result.body.task.uid).to.equal(5);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment