Skip to content

Commit d6cf24b

Browse files
Updated README.md
1 parent 01c7928 commit d6cf24b

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 Aspose.Tasks for Cloud
3+
Copyright (c) 2021 Aspose.Tasks Cloud
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
![](https://img.shields.io/badge/api-v3.0-lightgrey) ![npm (scoped)](https://img.shields.io/npm/v/@asposecloud/aspose-tasks-cloud) ![npm bundle size](https://img.shields.io/bundlephobia/min/@asposecloud/aspose-tasks-cloud) ![node-current](https://img.shields.io/node/v/@asposecloud/aspose-tasks-cloud) [![GitHub license](https://img.shields.io/github/license/aspose-tasks-cloud/aspose-tasks-cloud-node)](LICENSE) ![GitHub last commit](https://img.shields.io/github/last-commit/Aspose-tasks-Cloud/aspose-tasks-cloud-node)
22

3-
# Manipulate Project Files via Node.js Cloud REST API
3+
# Manipulate MS Project Files in Node.js via Cloud REST API
44

5-
Aspose.Tasks for Cloud offers the ability to manipulate and convert Microsoft Project MPT, MPP, MPX & Oracle Primavera XER, XML, and PrimaveraP6XML files in the Cloud. [Aspose.Tasks Cloud SDK for Go](https://products.aspose.cloud/tasks/go) wraps the REST API to make it easier for the developers to integrate Task Management features in their own cloud-based Go applications.
5+
Aspose.Tasks for Cloud offers the ability to manipulate and convert Microsoft Project MPT, MPP, MPX & Oracle Primavera XER, XML, and PrimaveraP6XML files in Node.js. [Aspose.Tasks Cloud SDK for Node.js](https://products.aspose.cloud/tasks/nodejs) wraps the REST API to make it easier for the developers to integrate MS Project Task Management features in their own cloud-based Node.js applications on Linux, MacOS, Windows or Android.
66

77
Feel free to explore the [Developer's Guide](https://docs.aspose.cloud/display/taskscloud/Developer+Guide) & [API Reference](https://apireference.aspose.cloud/tasks/) to know all about Aspose.Tasks Cloud API.
88

@@ -54,19 +54,19 @@ XER, XLSX, HTML, XML, TXT, TIF, SVG, PNG, JPEG
5454
Register an account at [Aspose Cloud Dashboard](https://dashboard.aspose.cloud/#/apps) to get you application information. Next, execute `npm i @asposecloud/aspose-tasks-cloud` from the command line to install Aspose.Tasks Cloud SDK for Node.js via NPM.
5555

5656

57-
## Get All Tasks from MPP Project File in Node.Js
57+
## Convert MS Project MPP to PDF in Node.Js
5858

5959
```js
6060
// Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).
6161
const tasksApi = new TasksApi("MY_CLIENT_ID", "MY_CLIENT_SECRET");
6262

63-
const request: GetTasksRequest = { name: "template.mpp", folder: "documents", storage: ""}
63+
const request: GetReportPdfRequest = { name: "template.mpp", folder: "documents", storage: "", type: ReportType.Milestones}
6464

65-
tasksApi.getTasks(request)
65+
tasksApi.getReportPdf(request)
6666
.then((result) => {
6767
// Deal with a result
6868
console.log(result.response.statusCode);
69-
console.log(result.body);
69+
console.log(result.body.buffer);
7070
})
7171
.catch(function(err) {
7272
// Deal with an error

src/internal/requestHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
*
3-
* Copyright (c) 2019 Aspose.Pdf for Cloud
3+
* Copyright (c) 2021 Aspose.Tasks Cloud
44
* Permission is hereby granted, free of charge, to any person obtaining a copy
55
* of this software and associated documentation files (the "Software"), to deal
66
* in the Software without restriction, including without limitation the rights

test/tasksExtendedAttributesTests.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ describe("putExtendedAttribute with putTask functions", () => {
4747
secondValue.description = "descr2";
4848
secondValue.val = "External";
4949
secondValue.id = 112;
50-
const newExtendedAttributeDef = new ExtendedAttributeDefinition
51-
newExtendedAttributeDef.calculationType = CalculationType.Lookup,
52-
newExtendedAttributeDef.cfType = CustomFieldType.Text,
53-
newExtendedAttributeDef.fieldName = "Text3",
54-
newExtendedAttributeDef.elementType = ElementType.Task,
55-
newExtendedAttributeDef.alias = "New Field",
50+
const newExtendedAttributeDef = new ExtendedAttributeDefinition();
51+
newExtendedAttributeDef.calculationType = CalculationType.Lookup;
52+
newExtendedAttributeDef.cfType = CustomFieldType.Text;
53+
newExtendedAttributeDef.fieldName = "Text3";
54+
newExtendedAttributeDef.elementType = ElementType.Task;
55+
newExtendedAttributeDef.alias = "New Field";
5656
newExtendedAttributeDef.valueList = [firstValue, secondValue];
5757

5858
const request1 = new PutExtendedAttributeRequest();

0 commit comments

Comments
 (0)