Get Changes

Note
Note:  The features listed in this page are working only with GroupDocs.Comparison Cloud V1

You can compare documents and get a list of changes by providing the JsonRequest Object data in request body.

Resource

The following GroupDocs.Comparison Cloud REST API resource has been used to get list of changes.

cURL example

curl -v "https://api.groupdocs.cloud/v1.0/comparison/compareDocuments/changes?appsid#XXXX&signature#XXX-XX"
-H "content-type: application/json"
-X POST -d "{'sourceFile':{'folder':'comparisons','name':'source.docx','password':''},'targetFiles':[{'folder':'comparisons','name':'target.docx','password':''}],'settings ':{'generateSummaryPage':true,'showDeletedContent':true,'styleChangeDetection':true,'insertedItemsStyle':{'color':'Blue','beginSeparatorString':'','endSeparatorString':'','bold':false,'italic':false,'strikeThrough':false},'deletedItemsStyle':{'color':'Red','beginSeparatorString':'','endSeparatorString':'','bold':false,'italic':false,'strikeThrough':false},'styleChangedItemsStyle':{'color':'Green','beginSeparatorString':'','endSeparatorString':'','bold':false,'italic':false,'strikeThrough':false},'wordsSeparatorChars':[],'detailLevel':'Low','useFramesForDelInsElements':false,'calculateComponentCoordinates':false,'markDeletedInsertedContentDeep':false},'changes':[{'id':0,'action':'Reject'},{'id':1,'action':'Reject'}]}"
[
  {
    "id": 0,
    "type": "Deleted",
    "text": "digital ",
    "authors": [
      "Rizwan"
    ],
    "action": "None",
    "styleChanges": []
  },
  {
    "id": 1,
    "type": "Deleted",
    "text": "Executive ",
    "authors": [
      "Rizwan"
    ],
    "action": "None",
    "styleChanges": []
  },
  {
    "id": 2,
    "type": "Inserted",
    "text": "",
    "authors": [
      "Rizwan"
    ],
    "action": "None",
    "styleChanges": []
  },
  {
    "id": 3,
    "type": "Deleted",
    "text": "",
    "authors": [
      "Rizwan"
    ],
    "action": "None",
    "styleChanges": []
  }
]

SDK example

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 Changes from Compared Documents