New Node.js SDK for Integrating Microsoft and Primavera Project Document Using Powerful Aspose.Tasks Cloud APIs

Aspose.Tasks Cloud

Aspose.Tasks CloudAspose.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. Learn More What’s new in the latest release This is a major revamp release for Aspose.Tasks Cloud SDK for Node.js. It covers all the Aspose.Tasks Cloud APIs. This SDK provides a complete solution for integrating Microsoft and Primavera Project Document in Node.js using powerful Aspose.Tasks Cloud APIs, so you can manipulate project data including tasks, resources, task links, and assignments in the cloud seamlessly. Source Code Repository Complete source code of this release of Aspose.Tasks Cloud SDK for Node.js is freely available on your favorite GitHub and Codeplex repositories. Setup Aspose.Tasks Cloud SDK for Node.js is also available as a released package in the npm (package manager for javascript) . You can bypass GitHub source code repository and depend directly on the released package by installing from npm: Aspose.Tasks Cloud SDK for Node.js – npm installation

npm i asposetaskscloud
Data In order to manipulate any files, you first need to upload them to the Aspose cloud storage or 3rd party cloud storage using Aspose.Storage Cloud SDK for Node.js. Quick SDK Tutorial

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);
}
Aspose.Tasks Cloud API Documentation Aspose.Tasks Cloud Documentation is available to guide developers to get familiar with the specific resources and operations within the Aspose.Tasks Cloud REST API. Aspose.Tasks Cloud SDK for Node.js Examples Aspose.Tasks Cloud SDK for Node.js Examples are also available to guide developers to get familiar with SDK and its usage to invoke resources and operations using the Aspose.Tasks Cloud REST API. Please see the SDK examples of following categories. 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.