generate barcode

Programmatically generate in node.js

Aspose.Tasks Cloud

Aspose.Tasks Cloud is a REST API for manipulating Microsoft Project documents in the cloud. It is a true REST API that can be used with any language: .NET, Java, PHP, Ruby, Rails, Python, Node.js and many more. You can use it with any platform — web, desktop, mobile, and cloud. Aspose.Tasks Cloud allows developers to manipulate project data including Tasks, Resources, Task links, and Assignments. Aspose.Tasks Cloud is a complete solution that allows you to work with all aspects of a Project document including conversion and manipulation of project’s tasks, task links, resources, resource assignments and extended attribute data. For further information, please take a look over Product overview.

This is a major revamp release for Aspose.Tasks Cloud SDK for Node.js. It covers all the features supported in Aspose.Tasks Cloud API. It’s a complete solution for integrating Microsoft and Primavera Project Document in Node.js, so you can manipulate project data including tasks, resources, task links, and assignments in the cloud seamlessly. In order to get access to latest release version, please visit the release page and in order to install the latest release version, please execute the following command:

npm install @asposecloud/aspose-tasks-cloud
  • The release updates can also be found as npm package.
  • The complete source code of cloud SDK can be downloaded from GitHub.
  • In order to manipulate any file, we first need to upload it to the Aspose cloud storage or 3rd party cloud storage. For further details, please visit Working with Files and Storage.
 var fs = require('fs');
var assert = require('assert');
var StorageApi =require("asposestoragecloud")
var TasksApi = require("asposetaskscloud");

var AppSID = 'XXX'; //sepcify App SID
var AppKey = 'XXX'; //sepcify App Key
var config = {'appSid':AppSID,'apiKey':AppKey};
var data_path = '../data/';

try {
//Instantiate Aspose.Storage API SDK
var storageApi = new StorageApi(config);

//Instantiate Aspose.Tasks API SDK
var tasksApi = new TasksApi(config);

//set input file name
var fileName = "sample-project";
var name = fileName + ".mpp";
var format = "pdf";
var versionId = null;
var storage = null;
var folder = null;

//upload file to aspose cloud storage
storageApi.PutCreate(name, versionId, storage, data_path + name , function(responseMessage) {
	assert.equal(responseMessage.status, 'OK');
	//invoke Aspose.Tasks Cloud SDK API to convert project document to other formats
	tasksApi.GetTaskDocumentWithFormat(name, format, storage, folder, function(responseMessage) {
			assert.equal(responseMessage.status, 'OK');		
			//download converted proj doc from api response
			var outfilename = filename + '.' + format;
			var writeStream = fs.createWriteStream('c:/temp/' + outfilename);
			writeStream.write(responseMessage.body);
			});
	});

}catch (e) {
  console.log("exception in example");
  console.log(e);
} 

The Developer guide is available to guide you in getting familiar with the specific resources and operations within the Aspose.Tasks Cloud REST API. The code examples of Aspose.Tasks Cloud SDK for Node.js also help you to get familiar with SDK and its usage to invoke resources and operations using the Aspose.Tasks Cloud REST API. We also recommend visiting the following links to learn more about:

Start a Free Trial Today Start a free trial today – all you need is to sign up with the Aspose Cloud service. Once you have signed up, you are ready to try the powerful file processing features offered by Aspose Cloud.

  • In case you encounter any issue or, you have any suggestion of improvements, please feel free to contact via free product support forum.