Perl SDK for Integrating Microsoft and Primavera Project Document Using Powerful Aspose.Tasks Cloud APIs

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

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, Perl, 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 release for Aspose.Tasks Cloud SDK for Perl. It covers all the Aspose.Tasks Cloud APIs. This SDK provides a complete solution for integrating Microsoft and Primavera Project Document in perl 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 Perl is freely available on your favorite GitHub and Codeplex repositories.

Setup

Aspose.Tasks Cloud SDK for Perl is also available as a released package in the CPAN (Perl Archive Network) . You can bypass GitHub source code repository and depend directly on the released package by installing from cpan:

Aspose.Tasks Cloud SDK for Perl – CPAN installation


sudo cpan AsposeTasksCloud-TasksApi

You can also manually build the module by downloading the code and executing the following in the root directory of the download:


perl Build.PL
./Build
./Build test
./Build install

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 Perl.

Quick SDK Tutorial


use lib 'lib';
use strict;
use warnings;
use File::Slurp; # From CPAN

use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;

use AsposeTasksCloud::TasksApi;
use AsposeTasksCloud::ApiClient;
use AsposeTasksCloud::Configuration;

$AsposeTasksCloud::Configuration::app_sid = 'XXX';
$AsposeTasksCloud::Configuration::api_key = 'XXX';

$AsposeTasksCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $AsposeTasksCloud::Configuration::app_sid;
$AsposeStorageCloud::Configuration::api_key = $AsposeTasksCloud::Configuration::api_key;

#Instantiate Aspose.Storage API SDK 
my $storageApi = AsposeStorageCloud::StorageApi->new();

#Instantiate Aspose.Tasks API SDK
my $tasksApi = AsposeTasksCloud::TasksApi->new();

my $data_path = '../data/';

#set input file name
my $filename = 'sample-project';
my $name = $filename . '.mpp';
my $format = "pdf";

#upload file to aspose cloud storage 
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);

#invoke Aspose.Tasks Cloud SDK API to convert project document to other formats                                   
$response = $tasksApi->GetTaskDocumentWithFormat(name => $name, format => $format);

if($response->{'Status'} eq 'OK'){
	#save converted format file from response stream
    my $output_file = 'C:/temp/'. $filename . '.' . $format;
	write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}

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 Perl Examples

Aspose.Tasks Cloud SDK for Perl 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.


To keep up with our news, you can follow us on Twitter or follow our Facebook page.