Skip to content

Commit 270f4fd

Browse files
Update README.md
1 parent fde7e3c commit 270f4fd

File tree

1 file changed

+13
-20
lines changed

1 file changed

+13
-20
lines changed

README.md

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -69,25 +69,21 @@ The complete source code is available at [GitHub Repository](https://github.com/
6969

7070
The examples below show how your application have to initiate and get assignments from you project file using Aspose.Tasks-Cloud library:
7171

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
8173

8274
```
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")
8784
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
9187
file, _ := os.Open("sample.mpp")
9288
9389
tasksApi.UploadFile(ctx, &requests.UploadFileOpts{
@@ -105,17 +101,14 @@ Go code:
105101
if err != nil {
106102
//error handling
107103
}
108-
109104
fmt.Println(result.Assignments.AssignmentItem[0].Uid)
110-
111-
// End README example
112105
```
113106

114107
## Aspose.Tasks Cloud SDKs in Popular Languages
115108

116109
| .NET | PHP | Python| Node.js | Go |
117110
|---|---|---|---|---|
118111
| [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/) |
120113

121114
[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

Comments
 (0)