Skip to content

Add a Task to Project

asposeforcloud edited this page Jun 23, 2014 · 1 revision

This example allows you to add a task to a Project using Aspose.Tasks for Cloud API in your applications.

The following Aspose.Tasks for Cloud REST API resource has been used in the examples: tasks

  • Set the base product URI, App SID, App Key and output location.
  • Upload the input file to aspose cloud storage.
  • Create an object of the tasks class.

Following is the complete code.

var AsposeCloud = require('../lib/aspose-cloud');
var AsposeStorage = require('../lib/aspose-storage');
var AsposeTasks = require('../lib/aspose-tasks');

var AppSID = '3395ba5c-****';
var AppKey = 'e8dd1b027****';

var BaseProductUri = 'http://api.aspose.com/v1.1/';

var config = {'appSID':AppSID,'appKey':AppKey,'baseURI':BaseProductUri};
var aspose = new AsposeCloud(config);


# Create object of tasks
var tasks = aspose.Tasks();
tasks.addTask('path/to/Project.mmp','Hello Task',function(data){ console.log(data); });
Clone this wiki locally