This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -v "https://api.aspose.cloud/v4.0/words/MailMerge?documentFileName=Out_PostDocumentExecuteMailMergeWithHTMLData.docx" \
-X PUT \
-H "Content-Type: multipart/form-data" \
-H "Authorization: Bearer ####################" \
-F Template="@template.doc" \
-F Data="@TestPostDocumentExecuteMailMerge.txt"
To get a JWT token use this instruction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{
"info": {
"name": "ExecuteMailMergeOnline_2",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"auth": {
"type": "oauth2",
"oauth2": [
{
"key": "clientSecret",
"value": "{{CLIENT_SECRET}}",
"type": "string"
},
{
"key": "clientId",
"value": "{{CLIENT_ID}}",
"type": "string"
},
{
"key": "addTokenTo",
"value": "header",
"type": "string"
},
{
"key": "client_authentication",
"value": "body",
"type": "string"
},
{
"key": "accessTokenUrl",
"value": "https://api.aspose.cloud/connect/token",
"type": "string"
},
{
"key": "grant_type",
"value": "client_credentials",
"type": "string"
},
{
"key": "tokenName",
"value": "Access Token",
"type": "string"
}
]
},
"item": [
{
"name": "mailMergeRequest",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "PUT",
"header": [
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "Template",
"type": "file",
"src": "template.doc"
},
{
"key": "Data",
"type": "file",
"src": "TestPostDocumentExecuteMailMerge.txt"
}
]
},
"url": {
"raw": "https://api.aspose.cloud/v4.0/words/MailMerge?documentFileName=Out_PostDocumentExecuteMailMergeWithHTMLData.docx",
"protocol": "https",
"host": [
"api",
"aspose",
"cloud"
],
"path": [
"v4.0",
"words",
"MailMerge"
],
"query": [
{
"key": "DocumentFileName",
"value": "Out_PostDocumentExecuteMailMergeWithHTMLData.docx",
"description": ""
}
]
}
},
"response": []
}
],
"variable": [
]
}
To get a JWT token use this instruction
{
“Document”: {
“Links”: [
{
“Href”: “TestPostDocumentExecuteMailMerge.docx”,
“Rel”: “self”,
“Type”: null,
“Title”: null
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx?format=doc ”,
“Rel”: “alternate”,
“Type”: “application/msword”,
“Title”: “Download as DOC”
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx?format=dot ”,
“Rel”: “alternate”,
“Type”: “application/msword”,
“Title”: “Download as DOT”
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx?format=docx ”,
“Rel”: “alternate”,
“Type”: “application/vnd.openxmlformats-officedocument.wordprocessingml.document”,
“Title”: “Download as DOCX”
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx?format=docm ”,
“Rel”: “alternate”,
“Type”: “application/vnd.ms-word.document.macroEnabled.12”,
“Title”: “Download as DOCM”
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx?format=dotx ”,
“Rel”: “alternate”,
“Type”: “application/vnd.openxmlformats-officedocument.wordprocessingml.template”,
“Title”: “Download as DOTX”
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx?format=dotm ”,
“Rel”: “alternate”,
“Type”: “application/vnd.ms-word.template.macroEnabled.12”,
“Title”: “Download as DOTM”
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx?format=flatopc ”,
“Rel”: “alternate”,
“Type”: “application/vnd.openxmlformats-officedocument.wordprocessingml.document”,
“Title”: “Download as FLATOPC”
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx?format=rtf ”,
“Rel”: “alternate”,
“Type”: “application/rtf”,
“Title”: “Download as RTF”
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx?format=wml ”,
“Rel”: “alternate”,
“Type”: “text/xml”,
“Title”: “Download as WML”
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx?format=odt ”,
“Rel”: “alternate”,
“Type”: “application/vnd.oasis.opendocument.text”,
“Title”: “Download as ODT”
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx?format=ott ”,
“Rel”: “alternate”,
“Type”: “application/vnd.oasis.opendocument.text-template”,
“Title”: “Download as OTT”
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx?format=txt ”,
“Rel”: “alternate”,
“Type”: “text/plain”,
“Title”: “Download as TXT”
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx?format=mhtml ”,
“Rel”: “alternate”,
“Type”: “multipart/related”,
“Title”: “Download as MHTML”
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx?format=epub ”,
“Rel”: “alternate”,
“Type”: “application/epub+zip”,
“Title”: “Download as EPUB”
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx?format=pdf ”,
“Rel”: “alternate”,
“Type”: “application/pdf”,
“Title”: “Download as PDF”
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx?format=xps ”,
“Rel”: “alternate”,
“Type”: “application/vnd.ms-xpsdocument”,
“Title”: “Download as XPS”
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx?format=tiff ”,
“Rel”: “alternate”,
“Type”: “image/tiff”,
“Title”: “Download as TIFF”
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx?format=png ”,
“Rel”: “alternate”,
“Type”: “image/png”,
“Title”: “Download as PNG”
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx?format=jpeg ”,
“Rel”: “alternate”,
“Type”: “image/jpeg”,
“Title”: “Download as JPEG”
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx?format=bmp ”,
“Rel”: “alternate”,
“Type”: “image/bmp”,
“Title”: “Download as BMP”
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx?format=gif ”,
“Rel”: “alternate”,
“Type”: “image/gif”,
“Title”: “Download as GIF”
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx?format=svg ”,
“Rel”: “alternate”,
“Type”: “image/svg+xml”,
“Title”: “Download as SVG”
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge* Connection #0 to host api.aspose.cloud left intact .docx?format=html”,
“Rel”: “alternate”,
“Type”: “text/html”,
“Title”: “Download as HTML”
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx?format=htmlfixed ”,
“Rel”: “alternate”,
“Type”: “text/html”,
“Title”: “Download as HTMLFIXED”
},
{
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx?format=pcl ”,
“Rel”: “alternate”,
“Type”: “application/x-pcl”,
“Title”: “Download as PCL”
}
],
“FileName”: “TestPostDocumentExecuteMailMerge.docx”,
“SourceFormat”: 1,
“IsEncrypted”: false,
“IsSigned”: false,
“DocumentProperties”: {
“List”: null,
“link”: {
“Href”: “
https://api.aspose.cloud/v4.0/words/TestPostDocumentExecuteMailMerge.docx/documentProperties ”,
“Rel”: “self”,
“Type”: null,
“Title”: null
}
}
},
“Code”: 200,
“Status”: “OK”
}