Hey,
I am trying to use cURL api in postman but it is not working. Each time I send request to server using Json format it says file not found.
image.png (7.6 KB)
I have internal storage in dashboard. Storage name is - eSign and then I have docs file there.
Can anyone please help me fix the error
@bharghus
Please check the following sample code to merge multiple MS Word documents in cURL. You will notice that GroupDocs.Merger Cloud API provides two separate parameters for file path(folder/file.ext) and storage name; FilePath and StorageName. So you need to pass storage name and file path in respective parameters to resolve the issue.
Steps to Combine Multiple Word Files into One Word File
- Register with aspose.cloud to get credentials
- Get JSON Web Token(JWT) to authorize your request
- Upload your input documents to cloud storage
- Merge Word Documents using Join API method of GroupDocs.Merger Cloud
Code to Combine Multiple Word Files into One Word File
* First get JSON Web Token
* Please get your Client Id and Client Secret from https://dashboard.groupdocs.cloud/applications. Kindly place Client Id in "client_id" and Client Secret in "client_secret" argument.
curl -v "https://api.groupdocs.cloud/connect/token" \
-X POST \
-d "grant_type=client_credentials&client_id=xxxx&client_secret=xxxx" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json"
* cURL example to join several documents into one
curl -v "https://api.groupdocs.cloud/v1.0/merger/join" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer [JWT Access Token]"
-d "{
"JoinItems":
[
{
"FileInfo":
{
"FilePath": "document1.docx",
"StorageName": "MyDb_Storage"
}
},
{
"FileInfo":
{
"FilePath": "document2.docx"
"StorageName": "MyDb_Storage"
}
}
],
"OutputPath': "joined.docx"
}"
2 Likes