Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This Gist contains examples of groupdocs.cloud APIs for Blog Posts
GroupDocs-Cloud-Blog
### Compare source and target document and get the comparison result document
curl -X POST "https://api.groupdocs.cloud/v2.0/comparison/comparisons"
-H "accept: application/json"
-H "authorization: Bearer [Access_Token]"
-H "Content-Type: application/json"
-d "{"SourceFile": {"FilePath": "source.docx",},"TargetFiles": [{"FilePath": "target.docx",}],"OutputPath": "result.docx"}"
### Download document from default storage
curl -X GET "https://api.groupdocs.cloud/v2.0/comparison/storage/file/result.docx"
-H "accept: multipart/form-data"
-H "authorization: Bearer [Access_Token]"
-o "C:/Temp/result.docx"
### Upload document to default storage
curl -X POST "https://api.groupdocs.cloud/v2.0/comparison/storage/file/source.docx"
-H "accept: application/json"
-H "authorization: Bearer [Access_Token]"
-H "Content-Type: multipart/form-data"
-T C:/Temp/source.docx
### Retrieve access token JWT(JSON Web Token)
### TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required).
curl --request POST https://api.groupdocs.cloud/connect/token
--header "Content-Type: application/x-www-form-urlencoded"
--data "grant_type=client_credentials&client_id=[APP_SID]&client_secret=[APP_KEY]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.