@@ -67,27 +67,31 @@ require_once('vendor/autoload.php');
6767```
6868See [ composer.json] ( composer.json ) for details about the referenced packages.
6969
70- ## Convert MPP to CSV in the Cloud
70+ ## Convert MPP to CSV in PHP
7171
7272``` php
73- $remoteName = "GetDocumentInCsvFormat.mpp";
74- $folder = $this->uploadFile("template.mpp", $remoteName, '');
73+ // Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).
7574
76- $response = $this->tasks->getTaskDocumentWithFormat(new GetTaskDocumentWithFormatRequest($remoteName,
77- Model\ProjectFileFormat::CSV, false, self::$storageName, $folder));
75+ $config = new Configuration();
76+ $config->setAppSid("MY_CLIENT_ID");
77+ $config->setAppKey("MY_CLIENT_SECRET");
7878
79- Assert::assertNotNull($response);
80- Assert::assertEquals("ID;Task_Name;Outline_Level;Duration;Start_Date;Finish_Date;Percent_Comp;Cost;Work\r\n", $response->current());
81- $response->next();
82- Assert::assertEquals("1;Five to Eight Weeks Before Moving;1;16 days;Thu 01.01.04 08:00;Thu 22.01.04 17:00;0%;$0;0 hrs\r\n", $response->current());
79+ $api = new TasksApi(null, $config);
8380
81+ // upload file to cloud
82+ $fullName = 'template.mpp';
83+ $upload_result = $api->uploadFile($Path = realpath(__DIR__ . '/../../..') . '/TestData/' . $fullName, $fullName);
84+
85+ // save as pdf file
86+ $request = new Requests\GetTaskDocumentWithFormatRequest($fullName, Model\ProjectFileFormat::CSV, false));
87+ $result = $api->getTaskDocumentWithFormat($request);
8488```
8589
8690## Aspose.Tasks Cloud SDKs in Popular Languages
8791
8892| .NET | PHP | Python| Node.js | Go |
8993| ---| ---| ---| ---| ---|
90- | [ GitHub] ( https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-ph ) | [ GitHub] ( https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-php ) | [ GitHub] ( https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-python ) | [ GitHub] ( https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-node ) | [ GitHub] ( https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-go ) |
91- | [ NuGet] ( https://www.nuget.org/packages/Aspose.tasks-Cloud/ ) | [ Composer] ( https://packagist.org/packages/aspose/tasks-cloud-php ) | [ PIP] ( https://pypi.org/project/aspose-tasks-cloud/ ) | [ NPM] ( https://www.npmjs.com/package/aspose-tasks-cloud ) | [ Go.Dev] ( https://pkg.go.dev/github.com/aspose-tasks-cloud/aspose-tasks-cloud-go/ ) |
94+ | [ GitHub] ( https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-dotnet ) | [ GitHub] ( https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-php ) | [ GitHub] ( https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-python ) | [ GitHub] ( https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-node ) | [ GitHub] ( https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-go ) |
95+ | [ NuGet] ( https://www.nuget.org/packages/Aspose.tasks-Cloud/ ) | [ Composer] ( https://packagist.org/packages/aspose/tasks-cloud-php ) | [ PIP] ( https://pypi.org/project/aspose-tasks-cloud/ ) | [ NPM] ( https://www.npmjs.com/package/@asposecloud/ aspose-tasks-cloud ) | [ Go.Dev] ( https://pkg.go.dev/github.com/aspose-tasks-cloud/aspose-tasks-cloud-go/ ) |
9296
9397[ Product Page] ( https://products.aspose.cloud/tasks/php ) | [ Documentation] ( https://docs.aspose.cloud/display/taskscloud/Home ) | [ API Reference] ( https://apireference.aspose.cloud/tasks/ ) | [ Code Samples] ( https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-php ) | [ Blog] ( https://blog.aspose.cloud/category/tasks/ ) | [ Free Support] ( https://forum.aspose.cloud/c/tasks ) | [ Free Trial] ( https://dashboard.aspose.cloud/#/apps )
0 commit comments