|
| 1 | +# Go SDK to Manage Tasks in the Cloud |
| 2 | + |
| 3 | +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. |
| 4 | + |
| 5 | +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. |
| 6 | + |
| 7 | +## REST API for Task Management |
| 8 | + |
| 9 | +- [Convert project documents](https://docs.aspose.cloud/tasks/convert-project-document-to-the-specified-format/) to other formats. |
| 10 | +- Manipulate task data. |
| 11 | +- [Manage project's resources](https://docs.aspose.cloud/tasks/working-with-resources/). |
| 12 | +- Handle task links & task assignments. |
| 13 | +- Work with project's extended attributes. |
| 14 | +- [Read Microsoft Project’s document properties](https://docs.aspose.cloud/tasks/working-with-calendars/) such as start and finish date, tasks scheduling types and so on. |
| 15 | +- [Read Microsoft Project’s Calendars](https://docs.aspose.cloud/tasks/working-with-calendars/) and Calendar Exceptions information. |
| 16 | + |
| 17 | +## Read & Write Project Data |
| 18 | + |
| 19 | +**Microsoft Project** MPP, XML, MPT **Primavera** MPX |
| 20 | + |
| 21 | +## Save Project Data As |
| 22 | + |
| 23 | +XER, XLSX, HTML, XML, TXT, TIF, SVG, PNG, JPEG |
| 24 | + |
| 25 | +## Getting Started with Aspose.Tasks Cloud SDK for Go |
| 26 | + |
| 27 | +Firstly, create an account at [Aspose for Cloud](https://dashboard.aspose.cloud/#/apps) to get your application information and free quota to use the API. |
| 28 | + |
| 29 | +#### Install Aspose.Tasks-Cloud |
| 30 | + |
| 31 | +From Visual Stuio Code: |
| 32 | + |
| 33 | + Add "github.com/aspose-tasks-cloud/aspose-tasks-cloud-go/api" and "github.com/aspose-tasks-cloud/aspose-tasks-cloud-go/api/models" in the import section of your code |
| 34 | + |
| 35 | +From the command line: |
| 36 | + |
| 37 | + go get -v github.com/aspose-tasks-cloud/aspose-tasks-cloud-go/api |
| 38 | + |
| 39 | +The complete source code is available at [GitHub Repository](https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-go). |
| 40 | + |
| 41 | +## Sample usage via the SDK |
| 42 | + |
| 43 | +The examples below show how your application have to initiate and get a text of the first paragraph using Aspose.Tasks-Cloud library: |
| 44 | + |
| 45 | +Config.json file: |
| 46 | +```csharp |
| 47 | +{ |
| 48 | + "AppKey": "your app key", |
| 49 | + "AppSid": "your app sid", |
| 50 | + "BaseUrl": "https://api.aspose.cloud" |
| 51 | +} |
| 52 | +``` |
| 53 | +Go code: |
| 54 | + |
| 55 | +``` |
| 56 | + // Start README example |
| 57 | +
|
| 58 | + // init tasks cloud api |
| 59 | + config, _ := models.NewConfiguration(configFilePath) |
| 60 | + tasksApi, ctx, _ := api.CreateTasksApi(config) |
| 61 | +
|
| 62 | + // upload sample.mpp to a cloud |
| 63 | + // uploaded_sample.mpp is a name in the cloud |
| 64 | + file, _ := os.Open("sample.mpp") |
| 65 | +
|
| 66 | + tasksApi.UploadFile(ctx, &requests.UploadFileOpts{ |
| 67 | + File: file, |
| 68 | + Path: "uploaded_sample.mpp", |
| 69 | + })) |
| 70 | +
|
| 71 | + // get assignments from the project file |
| 72 | + options := &requests.GetAssignmentsOpts{ |
| 73 | + Name: "uploaded_sample.mpp", |
| 74 | + } |
| 75 | +
|
| 76 | + result, _, err := tasksApi.GetParagraphs(ctx, remoteName, options) |
| 77 | +
|
| 78 | + if err != nil { |
| 79 | + //error handling |
| 80 | + } |
| 81 | +
|
| 82 | + fmt.Println(result.Assignments.AssignmentItem[0].Uid) |
| 83 | +
|
| 84 | + // End README example |
| 85 | +``` |
| 86 | + |
| 87 | +[Product Page](https://products.aspose.cloud/tasks/go) | [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-go) | [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