All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fullcontact.apilib.FullContactApi Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
package com.fullcontact.apilib;

import com.google.gson.JsonElement;
import okhttp3.RequestBody;
import retrofit2.Response;
import retrofit2.http.Body;
import retrofit2.http.POST;

import java.util.concurrent.CompletableFuture;

/**
 * Defines all the Retrofit endpoints for the FullContact API. All requests are HTTP POST type with
 * Asynchronous processing and returns a CompletableFuture
 */
public interface FullContactApi {

  @POST(FCConstants.API_ENDPOINT_PERSON_ENRICH)
  CompletableFuture> personEnrich(@Body RequestBody body);

  @POST(FCConstants.API_ENDPOINT_COMPANY_ENRICH)
  CompletableFuture> companyEnrich(@Body RequestBody body);

  @POST(FCConstants.API_ENDPOINT_COMPANY_SEARCH)
  CompletableFuture> companySearch(@Body RequestBody body);

  @POST(FCConstants.API_ENDPOINT_IDENTITY_MAP)
  CompletableFuture> identityMap(@Body RequestBody body);

  @POST(FCConstants.API_ENDPOINT_IDENTITY_RESOLVE)
  CompletableFuture> identityResolve(@Body RequestBody body);

  @POST(FCConstants.API_ENDPOINT_IDENTITY_DELETE)
  CompletableFuture> identityDelete(@Body RequestBody body);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy