Attachment Information
HTML Representation of Email Attachment Information
Sometimes it is required to get email attachment information for HTML representation. Info API helps to retrieves attachment information. It returns an object that contains information about file format and file size. It also includes information about attachment pages and attachments
Resource
The following GroupDocs.Viewer Cloud REST API resource has been used in the attachment Information (HTML representation).
cURL REST Example
curl -v "https://api.groupdocs.cloud/v1/viewer/Test.msg/html/attachments/Test.pdf/info" \
-X GET \
-H "Content-Type: application/json" \
-H "authorization: Bearer pTPAHbcNbrMcerjvtBpYgfkSh44oB9uWBEhoLNLiJ3KYWTZ-LjDK1OhIiSkiFnpwEDvAENURIo6NndadzqbW7Di4ZKIKC6DOlEGoFI2hfiNBaXEAGDE00knZePkCNsupU48qe1N_eGluq4urBAX3VBFiIdwz1yEPlPrqWG1DOAWYglUo5Nc9TdwZroBiDJ00A0oKjWoEJ_mRsI_VYK-NnZlNqrUiPGd6918ivV-vTtN2VvqGGUAosz26F7NZe0uEDf5GZszp-bxQ4_-JimHUgOD3z2M4gldo58oYp-6NBGCEjA312kqpxYZs22MJ_Ma-fSgT8yMDqgixItd0JxciHUCmSR8XVG803g1UgUF3-rfoWOn0FJAYLkZ3SFrjqMwjcJAsxcpWc-vm2eLneOPAh8R08ATyhemGBNCh3Ke3jJhaMf92"
{
"fileName": "Test.pdf",
"extension": ".pdf",
"fileFormat": "Portable Document Format",
"size": 298902,
"dateModified": "2017-12-19T12:16:55.2103401Z",
"pages": [
{
"number": 1,
"name": null,
"width": 595,
"height": 792,
"angle": 0,
"visible": true,
"rows": null
},
{
"number": 2,
"name": null,
"width": 595,
"height": 792,
"angle": 0,
"visible": true,
"rows": null
},
{
"number": 3,
"name": null,
"width": 595,
"height": 792,
"angle": 0,
"visible": true,
"rows": null
},
{
"number": 4,
"name": null,
"width": 595,
"height": 792,
"angle": 0,
"visible": true,
"rows": null
}
],
"attachments": []
}
SDKs
The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.
Get Attachment Information for HTML Representation
Image Representation of Email Attachment Information
GroupDocs.Viewer Cloud also supports to get email attachment information for Image representation. Info API helps to retrieves attachment information. It returns an object that contains information about file format and file size. It also includes information about attachment pages and attachments.
Resource
The following GroupDocs.Viewer Cloud REST API resource has been used in the attachment information (Image representation).
cURL REST Example
curl -v "https://api.groupdocs.cloud/v1/viewer/Test.msg/image/attachments/Test.pdf/info" \
-X GET \
-H "Content-Type: application/json" \-H "authorization: Bearer pTPAHbcNbrMcerjvtBpYgfkSh44oB9uWBEhoLNLiJ3KYWTZ-LjDK1OhIiSkiFnpwEDvAENURIo6NndadzqbW7Di4ZKIKC6DOlEGoFI2hfiNBaXEAGDE00knZePkCNsupU48qe1N_eGluq4urBAX3VBFiIdwz1yEPlPrqWG1DOAWYglUo5Nc9TdwZroBiDJ00A0oKjWoEJ_mRsI_VYK-NnZlNqrUiPGd6918ivV-vTtN2VvqGGUAosz26F7NZe0uEDf5GZszp-bxQ4_-JimHUgOD3z2M4gldo58oYp-6NBGCEjA312kqpxYZs22MJ_Ma-fSgT8yMDqgixItd0JxciHUCmSR8XVG803g1UgUF3-rfoWOn0FJAYLkZ3SFrjqMwjcJAsxcpWc-vm2eLneOPAh8R08ATyhemGBNCh3Ke3jJhaMf92"
{
"fileName": "Test.pdf",
"extension": ".pdf",
"fileFormat": "Portable Document Format",
"size": 298902,
"dateModified": "2017-12-19T12:16:55.2103401Z",
"pages": [
{
"number": 1,
"name": null,
"width": 595,
"height": 792,
"angle": 0,
"visible": true,
"rows": null
},
{
"number": 2,
"name": null,
"width": 595,
"height": 792,
"angle": 0,
"visible": true,
"rows": null
},
{
"number": 3,
"name": null,
"width": 595,
"height": 792,
"angle": 0,
"visible": true,
"rows": null
},
{
"number": 4,
"name": null,
"width": 595,
"height": 792,
"angle": 0,
"visible": true,
"rows": null
}
],
"attachments": []
}
SDKs
The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.
Get Attachment Information for Image Representation
HTML Representation of Email Attachment Info with Document Information Options
You can retrieve attachment information with specified DocumentInfoOptionscommon-resources/options-objects/#HDocumentInfoOptionsObject) for HTML representation. API expects DocumentInfoOptions common-resources/options-objects/#HDocumentInfoOptionsObject)object data in request body. It returns an object that contains information about file format and file size. Response also includes information about attachment pages and attachments..
Resource
The following GroupDocs.Viewer Cloud REST API resource has been used in the attachment information with option (HTML representation).
cURL REST Example
curl -v "https://api.groupdocs.cloud/v1/viewer/Test.msg/html/attachments/Test.pdf/info" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d "{"password": "test"}" \
-H "authorization: Bearer pTPAHbcNbrMcerjvtBpYgfkSh44oB9uWBEhoLNLiJ3KYWTZ-LjDK1OhIiSkiFnpwEDvAENURIo6NndadzqbW7Di4ZKIKC6DOlEGoFI2hfiNBaXEAGDE00knZePkCNsupU48qe1N_eGluq4urBAX3VBFiIdwz1yEPlPrqWG1DOAWYglUo5Nc9TdwZroBiDJ00A0oKjWoEJ_mRsI_VYK-NnZlNqrUiPGd6918ivV-vTtN2VvqGGUAosz26F7NZe0uEDf5GZszp-bxQ4_-JimHUgOD3z2M4gldo58oYp-6NBGCEjA312kqpxYZs22MJ_Ma-fSgT8yMDqgixItd0JxciHUCmSR8XVG803g1UgUF3-rfoWOn0FJAYLkZ3SFrjqMwjcJAsxcpWc-vm2eLneOPAh8R08ATyhemGBNCh3Ke3jJhaMf92"
{
"fileName": "Test.pdf",
"extension": ".pdf",
"fileFormat": "Portable Document Format",
"size": 298902,
"dateModified": "2017-12-19T12:16:55.2103401Z",
"pages": [
{
"number": 1,
"name": null,
"width": 595,
"height": 792,
"angle": 0,
"visible": true,
"rows": null
},
{
"number": 2,
"name": null,
"width": 595,
"height": 792,
"angle": 0,
"visible": true,
"rows": null
},
{
"number": 3,
"name": null,
"width": 595,
"height": 792,
"angle": 0,
"visible": true,
"rows": null
},
{
"number": 4,
"name": null,
"width": 595,
"height": 792,
"angle": 0,
"visible": true,
"rows": null
}
],
"attachments": []
}
SDKs
The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.
Get Attachment Information with options for HTML Representation
Image Representation of Email Attachment Info with Document Information Options
You can retrieve attachment information with specified DocumentInfoOptionscommon-resources/options-objects/#HDocumentInfoOptionsObject) for Image representation. API expects DocumentInfoOptions common-resources/options-objects/#HDocumentInfoOptionsObject)object data in request body. It returns an object that contains information about file format and file size. Response also includes information about attachment pages and attachments..
Resource
The following GroupDocs.Viewer Cloud REST API resource has been used in the attachment information with option (Image representation).
cURL REST Example
curl -v "https://api.groupdocs.cloud/v1/viewer/Test.msg/image/attachments/Test.pdf/info" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d "{"password": "test"}" \
-H "authorization: Bearer pTPAHbcNbrMcerjvtBpYgfkSh44oB9uWBEhoLNLiJ3KYWTZ-LjDK1OhIiSkiFnpwEDvAENURIo6NndadzqbW7Di4ZKIKC6DOlEGoFI2hfiNBaXEAGDE00knZePkCNsupU48qe1N_eGluq4urBAX3VBFiIdwz1yEPlPrqWG1DOAWYglUo5Nc9TdwZroBiDJ00A0oKjWoEJ_mRsI_VYK-NnZlNqrUiPGd6918ivV-vTtN2VvqGGUAosz26F7NZe0uEDf5GZszp-bxQ4_-JimHUgOD3z2M4gldo58oYp-6NBGCEjA312kqpxYZs22MJ_Ma-fSgT8yMDqgixItd0JxciHUCmSR8XVG803g1UgUF3-rfoWOn0FJAYLkZ3SFrjqMwjcJAsxcpWc-vm2eLneOPAh8R08ATyhemGBNCh3Ke3jJhaMf92"
{
"fileName": "Test.pdf",
"extension": ".pdf",
"fileFormat": "Portable Document Format",
"size": 298902,
"dateModified": "2017-12-19T12:16:55.2103401Z",
"pages": [
{
"number": 1,
"name": null,
"width": 595,
"height": 792,
"angle": 0,
"visible": true,
"rows": null
},
{
"number": 2,
"name": null,
"width": 595,
"height": 792,
"angle": 0,
"visible": true,
"rows": null
},
{
"number": 3,
"name": null,
"width": 595,
"height": 792,
"angle": 0,
"visible": true,
"rows": null
},
{
"number": 4,
"name": null,
"width": 595,
"height": 792,
"angle": 0,
"visible": true,
"rows": null
}
],
"attachments": []
}
SDKs
The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.