diffbot-enhance-client

OpenAPI Java

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

com.diffbot
ArtifactId

ArtifactId

diffbot-enhance-client
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

diffbot-enhance-client
OpenAPI Java
Project URL

Project URL

https://github.com/openapitools/openapi-generator
Source Code Management

Source Code Management

https://github.com/diffbot/enhance-client-java.git

Download diffbot-enhance-client

How to add to project

<!-- https://jarcasting.com/artifacts/com.diffbot/diffbot-enhance-client/ -->
<dependency>
    <groupId>com.diffbot</groupId>
    <artifactId>diffbot-enhance-client</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.diffbot/diffbot-enhance-client/
implementation 'com.diffbot:diffbot-enhance-client:0.1.0'
// https://jarcasting.com/artifacts/com.diffbot/diffbot-enhance-client/
implementation ("com.diffbot:diffbot-enhance-client:0.1.0")
'com.diffbot:diffbot-enhance-client:jar:0.1.0'
<dependency org="com.diffbot" name="diffbot-enhance-client" rev="0.1.0">
  <artifact name="diffbot-enhance-client" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.diffbot', module='diffbot-enhance-client', version='0.1.0')
)
libraryDependencies += "com.diffbot" % "diffbot-enhance-client" % "0.1.0"
[com.diffbot/diffbot-enhance-client "0.1.0"]

Dependencies

compile (8)

Group / Artifact Type Version
io.swagger : swagger-annotations jar 1.5.22
com.google.code.findbugs : jsr305 jar 3.0.2
com.squareup.okhttp3 : okhttp jar 3.14.2
com.squareup.okhttp3 : logging-interceptor jar 3.14.2
com.google.code.gson : gson jar 2.8.5
io.gsonfire : gson-fire jar 1.8.3
org.apache.commons : commons-lang3 jar 3.9
javax.annotation : jsr250-api jar 1.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

enhance-client

Diffbot Enhance Service

  • API version: v1.0.0

Enhance is an API to find a person or organization in the Knowledge Graph using partial data

Automatically generated by the OpenAPI Generator

Requirements

Building the API client library requires:

  1. Java 1.8+
  2. Maven/Gradle

Installation

To install the API client library to your local Maven repository, simply execute:

mvn clean install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn clean deploy

Refer to the OSSRH Guide for more information.

Maven users

Add this dependency to your project's POM:

<dependency>
  <groupId>com.diffbot</groupId>
  <artifactId>enhance-client</artifactId>
  <version>1.0.0</version>
  <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "com.diffbot:enhance-client:1.0.0"

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/enhance-client-1.0.0.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

// Import classes:
import com.diffbot.kg.enhance.openapi.invoker.ApiClient;
import com.diffbot.kg.enhance.openapi.invoker.ApiException;
import com.diffbot.kg.enhance.openapi.invoker.Configuration;
import com.diffbot.kg.enhance.openapi.invoker.models.*;
import com.diffbot.kg.enhance.openapi.api.BulkEnhanceEndpointApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("https://kg.diffbot.com");

    BulkEnhanceEndpointApi apiInstance = new BulkEnhanceEndpointApi(defaultClient);
    String bulkjobId = "bulkjobId_example"; // String | Bulkjob Id
    String token = "token_example"; // String | Diffbot Token
    try {
      BulkjobStatusResponse result = apiInstance.bulkjobStatus(bulkjobId)
            .token(token)
            .execute();
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling BulkEnhanceEndpointApi#bulkjobStatus");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Documentation for API Endpoints

All URIs are relative to https://kg.diffbot.com

Class Method HTTP request Description
BulkEnhanceEndpointApi bulkjobStatus GET /kg/enhance_endpoint/bulk/{bulkjobId}/status Bulk Enhance Status Endpoint
BulkEnhanceEndpointApi enhanceBulkjob POST /kg/enhance_endpoint/bulk Bulk Enhance Endpoint
BulkEnhanceEndpointApi pollBulkjob GET /kg/enhance_endpoint/bulk/{bulkjobId} Bulk Enhance Poll Endpoint
BulkEnhanceEndpointApi stopBulkjob GET /kg/enhance_endpoint/bulk/{bulkjobId}/stop Bulkjob stop
EnhanceLiveEndpointApi enhance GET /kg/enhance_endpoint Live Enhance Endpoint

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization. Authentication schemes defined for the API:

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.

Author

[email protected]

com.diffbot

Diffbot

A Machine Readable Web

Versions

Version
0.1.0