@@ -69,25 +69,21 @@ The complete source code is available at [GitHub Repository](https://github.com/
69
69
70
70
The examples below show how your application have to initiate and get assignments from you project file using Aspose.Tasks-Cloud library:
71
71
72
- Config.json file:
73
- ``` csharp
74
- {
75
- " AppKey" : " your app key" ,
76
- " AppSid" : " your app sid" ,
77
- " BaseUrl" : " https://api.aspose.cloud"
78
- }
79
- ```
80
- Go code:
72
+ ## Get MPP Project Assignments in GO
81
73
82
74
```
83
- // Start README example
84
-
85
- // init tasks cloud api
86
- config, _ := models.NewConfiguration(configFilePath)
75
+ // Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).
76
+ // myconfig.json
77
+ {
78
+ "AppSid": "MY_CLIENT_ID",
79
+ "AppKey": "MY_CLIENT_SECRET",
80
+ "BaseUrl": "https://api.aspose.cloud"
81
+ }
82
+
83
+ config, _ := models.NewConfiguration("myconfig.json")
87
84
tasksApi, ctx, _ := api.CreateTasksApi(config)
88
-
89
- // upload sample.mpp to a cloud
90
- // uploaded_sample.mpp is a name in the cloud
85
+
86
+ // upload file to a cloud
91
87
file, _ := os.Open("sample.mpp")
92
88
93
89
tasksApi.UploadFile(ctx, &requests.UploadFileOpts{
@@ -105,17 +101,14 @@ Go code:
105
101
if err != nil {
106
102
//error handling
107
103
}
108
-
109
104
fmt.Println(result.Assignments.AssignmentItem[0].Uid)
110
-
111
- // End README example
112
105
```
113
106
114
107
## Aspose.Tasks Cloud SDKs in Popular Languages
115
108
116
109
| .NET | PHP | Python| Node.js | Go |
117
110
| ---| ---| ---| ---| ---|
118
111
| [ 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 ) |
119
- | [ 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/ ) |
112
+ | [ 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/ ) |
120
113
121
114
[ 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