Get Supported File Formats
Introduction
This REST API allows getting a list of all file formats supported by GroupDocs.Watermark Cloud product.
Resource URI
HTTP POST ~~/formats
Swagger UI lets you call this REST API directly from the browser.
cURL Example
# 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 get document information
curl -v "https://api.groupdocs.cloud/v1.0/watermark/formats" \
-X GET \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer <jwt token>"
{
"formats": [
{
"extension": ".doc",
"fileFormat": "Microsoft Word Document"
},
{
"extension": ".docm",
"fileFormat": "Word Open XML Macro-Enabled Document"
},
{
"extension": ".docx",
"fileFormat": "Microsoft Word Open XML Document"
},
...
{
"extension": ".xlsx",
"fileFormat": "Microsoft Excel Open XML Spreadsheet"
}
]
}
SDKs
Our API is completely independent of your operating system, database system or development language. You can use any language and platform that supports HTTP to interact with our API. However, manually writing client code can be difficult, error-prone and time-consuming. Therefore, we have provided and support API SDKs in many development languages in order to make it easier to integrate with us. If you use SDK, it shows Document Formats API calls and lets you use GroupDocs Cloud features in a native way for your preferred language.