Skip to content

Commit 3583f20

Browse files
Merge remote-tracking branch 'origin/master' into release
2 parents 79d2b23 + afb0cd8 commit 3583f20

File tree

833 files changed

+174354
-31
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

833 files changed

+174354
-31
lines changed

README.md

Lines changed: 21 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -400,35 +400,27 @@ Config.json file:
400400
Go code:
401401

402402
```
403-
// Start README example
404-
405-
// init words cloud api
406-
config, _ := models.NewConfiguration(configFilePath)
407-
wordsApi, ctx, _ := api.CreateWordsApi(config)
408-
409-
// upload test.docx to a cloud
410-
// remote.docx is a name in the cloud
411-
file, _ := os.Open(localFilePath)
412-
uploadRequest := &models.UploadFileRequest{
413-
FileContent: file,
414-
Path: &remotePath,
415-
}
416-
wordsApi.UploadFile(ctx, uploadRequest)
417-
418-
// get a text for the first paragraph of the first section
419-
options := map[string]interface{}{
420-
"folder": remoteFolder,
421-
}
422-
request := &models.GetParagraphsRequest{
423-
Name: &remoteName,
424-
Optionals: options,
425-
}
426-
427-
result, _, _ := wordsApi.GetParagraphs(ctx, request)
428-
429-
fmt.Println(result.Paragraphs.GetParagraphLinkList()[0].GetText())
430-
431-
// End README example
403+
// Start README example
404+
405+
// init words cloud api
406+
config, _ := models.NewConfiguration(configFilePath)
407+
wordsApi, ctx, _ := api.CreateWordsApi(config)
408+
409+
// upload test.docx to a cloud
410+
// remote.docx is a name in the cloud
411+
file, _ := os.Open(localFilePath)
412+
wordsApi.UploadFile(ctx, file, remotePath, nil)
413+
414+
// get a text for the first paragraph of the first section
415+
options := map[string]interface{}{
416+
"folder": remoteFolder,
417+
}
418+
419+
result, _, _ := wordsApi.GetParagraphs(ctx, remoteName, options)
420+
421+
fmt.Println(result.Paragraphs.GetParagraphLinkList()[0].GetText())
422+
423+
// End README example
432424
```
433425

434426
[Product Page](https://products.aspose.cloud/words/go) | [Documentation](https://docs.aspose.cloud/display/wordscloud/Home) | [API Reference](https://apireference.aspose.cloud/words/) | [Code Samples](https://github.com/aspose-words-cloud/aspose-words-cloud-go) | [Blog](https://blog.aspose.cloud/category/words/) | [Free Support](https://forum.aspose.cloud/c/words) | [Free Trial](https://dashboard.aspose.cloud/#/apps)

dev/api/api_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ var (
6565
xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)")
6666
)
6767

68-
// APIClient manages communication with the Aspose.Words for Cloud API Reference API v24.9
68+
// APIClient manages communication with the Aspose.Words for Cloud API Reference API v24.10
6969
// In most cases there should be only one, shared, APIClient.
7070
type APIClient struct {
7171
cfg *models.Configuration

dev/api/models/configuration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func NewConfiguration(configFilePath string) (pConfig *Configuration, err error)
9999
cfg := Configuration{
100100
BaseUrl: "https://api.aspose.cloud",
101101
DebugMode: false,
102-
DefaultHeader: map[string]string{"x-aspose-client": "go sdk", "x-aspose-client-version": "24.9"},
102+
DefaultHeader: map[string]string{"x-aspose-client": "go sdk", "x-aspose-client-version": "24.10"},
103103
}
104104
err = json.Unmarshal(data, &cfg)
105105

v2410/.vscode/launch.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Launch",
9+
"type": "go",
10+
"request": "launch",
11+
"mode": "auto",
12+
"program": "${fileDirname}",
13+
"env": {},
14+
"args": []
15+
}
16+
]
17+
}

v2410/LICENSE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2020 Aspose
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)