com.fullcontact.apilib.FullContactApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java8 Show documentation
Show all versions of java8 Show documentation
Client libraries for FullContact v3 APIs
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);
}