<dependency>
<groupId>com.groupdocs</groupId>
<artifactId>groupdocs-comparison-cloud</artifactId>
<version>22.4</version>
</dependency>
copied!  
compile(group: 'com.groupdocs', name: 'groupdocs-comparison-cloud', version: '22.4')
copied!  
<dependency org="com.groupdocs" name="groupdocs-comparison-cloud" rev="22.4">
 <artifact name="groupdocs-comparison-cloud" ext="jar"/>
</dependency>
copied!  
libraryDependencies += "com.groupdocs" % "groupdocs-comparison-cloud" % "22.4"
copied!  

Belge Karşılaştırma Java Cloud REST API

main-banner

Product Page | Docs | Live Demos | Swagger UI | Code Samples | Blog | Free Support | Free Trial

GroupDocs.Comparison Cloud SDK for Java, herhangi bir 3. taraf yazılımı yüklemeden çalışan bulut Belge Karşılaştırma Java Uygulamaları oluşturmanıza yardımcı olur. GroupDocs.Comparison Cloud REST APIs etrafındaki bir sarmalayıcıdır.


Gereksinimler

API istemci kitaplığının oluşturulması şunları gerektirir:

  1. Java 1.7+
  2. Uzman

Önkoşullar

GroupDocs.Comparison Cloud SDK for Java’yı kullanmak için GroupDocs Cloud ile bir hesap kaydetmeniz ve Cloud Dashboard adresinde İstemci Kimliği ve İstemci Sırrı aramanız/oluşturmanız gerekir. Ücretsiz kontenjan mevcuttur. Daha fazla ayrıntı için bkz. GroupDocs Cloud Pricing.

Maven’den GroupDocs.Comparison-Cloud’u kurun

GroupDocs Bulut deposunu uygulamanıza pom.xml ekleyin

<repository>
    <id>repository.groupdocs.cloud</id>
    <name>repository.groupdocs.cloud</name>
    <url>https://releases.groupdocs.cloud/java/repo/</url>
</repository>

Kaynaktan yükleyin

API istemci kitaplığını yerel Maven deponuza yüklemek için aşağıdakileri yürütmeniz yeterlidir:

mvn clean install

Bunun yerine uzak bir Maven deposuna konuşlandırmak için deponun ayarlarını yapılandırın ve şunu çalıştırın:

mvn clean deploy

Daha fazla bilgi için OSSRH Guide bölümüne bakın.

Maven kullanıcıları

Bu bağımlılığı projenizin POM’una ekleyin:

<dependency>
    <groupId>com.groupdocs</groupId>
    <artifactId>groupdocs-comparison-cloud</artifactId>
    <version>22.4</version>
    <type>pom</type>
</dependency>

Diğerleri

İlk önce aşağıdakileri yürüterek JAR’ı oluşturun:

mvn clean package

Ardından aşağıdaki JAR’ları manuel olarak kurun:

  • “target/groupdocs-karşılaştırma-bulut-22.4.jar”
  • target/lib/*.jar

Başlamak

Lütfen Quick Start talimatlarını uygulayın.

Bulut Belgesi Karşılaştırma Değişikliklerini listelemek için Örnek Java Kodu

// For complete examples and data files, please go to https://github.com/groupdocs-comparison-cloud/groupdocs-comparison-cloud-java-samples
String MyClientSecret = ""; // Get ClientId and ClientSecret from https://dashboard.groupdocs.cloud
String MyClientId = ""; // Get ClientId and ClientSecret from https://dashboard.groupdocs.cloud

Configuration configuration = new Configuration(MyClientId, MyClientSecret);

CompareApi apiInstance = new CompareApi(configuration);

FileInfo sourceFileInfo = new FileInfo();
sourceFileInfo.setFilePath("source_files/word/source.docx");
FileInfo targetFileInfo = new FileInfo();
targetFileInfo.setFilePath("target_files/word/target.docx");

ComparisonOptions options = new ComparisonOptions();
options.setSourceFile(sourceFileInfo);
options.addTargetFilesItem(targetFileInfo);

PostChangesRequest request = new PostChangesRequest(options);
List<ChangeInfo> changes = apiInstance.postChanges(request);

Yetkilendirme ve Kimlik Doğrulama

API için tanımlanan Authentication schemes aşağıdaki gibidir:

JWT

Product Page | Docs | Live Demos | Swagger UI | Code Samples | Blog | Free Support | Free Trial

VersionRelease Date
22.414 Nisan 2022
19.525 Ocak 2022
20.1225 Ocak 2022
18.925 Ocak 2022
21.716 Temmuz 2021
21.311 Mart 2021
20.521 Mayıs 2020
18.425 Eylül 2018