Class FullContact

java.lang.Object
com.fullcontact.apilib.enrich.FullContact
All Implemented Interfaces:
java.lang.AutoCloseable

public class FullContact
extends java.lang.Object
implements java.lang.AutoCloseable
The FullContact class represents FullContact client. It supports V3 Person Enrich, Company Enrich, Company Search and Resolve endpoints. It uses Retrofit for sending all requests. All requests are converted to JSON and sent via POST method asynchronously
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  FullContact.FullContactBuilder  
  • Constructor Summary

    Constructors 
    Constructor Description
    FullContact​(com.fullcontact.apilib.auth.CredentialsProvider credentialsProvider, java.util.Map<java.lang.String,​java.lang.String> headers, long connectTimeoutMillis, com.fullcontact.apilib.retry.RetryHandler retryHandler)
    FullContact client constructor used to initialise the client
  • Method Summary

    Modifier and Type Method Description
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.AudienceResponse> audienceCreate​(com.fullcontact.apilib.models.Request.AudienceRequest audienceRequest)
    Method for creating Audience from your PIC based on tags.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.AudienceResponse> audienceCreate​(com.fullcontact.apilib.models.Request.AudienceRequest audienceRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler)
    Method for creating Audience from your PIC based on tags.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.AudienceResponse> audienceDownload​(java.lang.String requestId)  
    static com.fullcontact.apilib.models.Request.AudienceRequest.AudienceRequestBuilder buildAudienceRequest()  
    static com.fullcontact.apilib.models.Request.CompanyRequest.CompanyRequestBuilder buildCompanyRequest()  
    static com.fullcontact.apilib.models.Request.PersonRequest.PersonRequestBuilder buildPersonRequest()  
    static com.fullcontact.apilib.models.Request.ResolveRequest.ResolveRequestBuilder buildResolveRequest()  
    static com.fullcontact.apilib.models.Request.TagsRequest.TagsRequestBuilder buildTagsRequest()  
    void close()
    This method is used to call shutdown on the ScheduledThreadPoolExecutor and close the FullContact client.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.EmailVerificationResponse> emailVerification​(java.lang.String email)
    Method for Email Verification.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.EmailVerificationResponse> emailVerification​(java.lang.String email, com.fullcontact.apilib.retry.RetryHandler retryHandler)
    Method for Email Verification.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.CompanyResponse> enrich​(com.fullcontact.apilib.models.Request.CompanyRequest companyRequest)
    Method for Company Enrich without any custom RetryHandler, It converts the request to json, send the Asynchronous request using HTTP POST method.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.CompanyResponse> enrich​(com.fullcontact.apilib.models.Request.CompanyRequest companyRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler)
    Method for Company Enrich.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.PersonResponse> enrich​(com.fullcontact.apilib.models.Request.PersonRequest personRequest)
    Method for Person Enrich without any custom RetryHandler, It converts the request to json, send the Asynchronous request using HTTP POST method.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.PersonResponse> enrich​(com.fullcontact.apilib.models.Request.PersonRequest personRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler)
    Method for Person Enrich.
    void finalize()
    This method will be called by GC to close the client.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.ResolveResponse> identityDelete​(com.fullcontact.apilib.models.Request.ResolveRequest resolveRequest)
    Method for Deleting mapped Record.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.ResolveResponse> identityDelete​(com.fullcontact.apilib.models.Request.ResolveRequest resolveRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler)
    Method for Deleting mapped Record.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.ResolveResponse> identityMap​(com.fullcontact.apilib.models.Request.ResolveRequest resolveRequest)
    Method for Resolve Identity Map.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.ResolveResponse> identityMap​(com.fullcontact.apilib.models.Request.ResolveRequest resolveRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler)
    Method for Resolve Identity Map.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.ResolveResponse> identityResolve​(com.fullcontact.apilib.models.Request.ResolveRequest resolveRequest)
    Method for Identity Resolve.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.ResolveResponse> identityResolve​(com.fullcontact.apilib.models.Request.ResolveRequest resolveRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler)
    Method for Identity Resolve.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.ResolveResponseWithTags> identityResolveWithTags​(com.fullcontact.apilib.models.Request.ResolveRequest resolveRequest)
    Method for Identity Resolve with Tags.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.ResolveResponseWithTags> identityResolveWithTags​(com.fullcontact.apilib.models.Request.ResolveRequest resolveRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler)
    Method for Identity Resolve with Tags.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.CompanySearchResponseList> search​(com.fullcontact.apilib.models.Request.CompanyRequest companyRequest)
    Method for Company Search without any custom RetryHandler, It converts the request to json, send the Asynchronous request using HTTP POST method.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.CompanySearchResponseList> search​(com.fullcontact.apilib.models.Request.CompanyRequest companyRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler)
    Method for Company Search.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.TagsResponse> tagsCreate​(com.fullcontact.apilib.models.Request.TagsRequest tagsRequest)
    Method for adding/creating tags for any recordID in your PIC without any custom RetryHandler, It converts the request to json, send the Asynchronous request using HTTP POST method.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.TagsResponse> tagsCreate​(com.fullcontact.apilib.models.Request.TagsRequest tagsRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler)
    Method for adding/creating tags for any recordID in your PIC.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.TagsResponse> tagsDelete​(com.fullcontact.apilib.models.Request.TagsRequest tagsRequest)
    Method for deleting tags for any recordID in your PIC without any custom RetryHandler, It converts the request to json, send the Asynchronous request using HTTP POST method.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.TagsResponse> tagsDelete​(com.fullcontact.apilib.models.Request.TagsRequest tagsRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler)
    Method for deleting tags for any recordID in your PIC.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.TagsResponse> tagsGet​(java.lang.String recordId)
    Method for getting all tags for any recordID in your PIC without any custom RetryHandler, It converts the request to json, send the Asynchronous request using HTTP POST method.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.TagsResponse> tagsGet​(java.lang.String recordId, com.fullcontact.apilib.retry.RetryHandler retryHandler)
    Method for getting all tags for any recordID in your PIC.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FullContact

      public FullContact​(com.fullcontact.apilib.auth.CredentialsProvider credentialsProvider, java.util.Map<java.lang.String,​java.lang.String> headers, long connectTimeoutMillis, com.fullcontact.apilib.retry.RetryHandler retryHandler)
      FullContact client constructor used to initialise the client
      Parameters:
      credentialsProvider - for auth
      headers - custom client headers
      connectTimeoutMillis - connection timout for all requests
      retryHandler - RetryHandler specified for client
  • Method Details

    • enrich

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.PersonResponse> enrich​(com.fullcontact.apilib.models.Request.PersonRequest personRequest) throws com.fullcontact.apilib.FullContactException
      Method for Person Enrich without any custom RetryHandler, It converts the request to json, send the Asynchronous request using HTTP POST method. It also handles retries based on retryHandler specified at FullContact Client level.
      Parameters:
      personRequest - original request sent by client
      Returns:
      completed CompletableFuture with PersonResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown
      See Also:
      CompletableFuture
    • enrich

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.PersonResponse> enrich​(com.fullcontact.apilib.models.Request.PersonRequest personRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler) throws com.fullcontact.apilib.FullContactException
      Method for Person Enrich. It converts the request to json, send the Asynchronous request using HTTP POST method. It also handles retries based on retry condition.
      Parameters:
      personRequest - original request sent by client
      Returns:
      completed CompletableFuture with PersonResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown
      See Also:
      CompletableFuture
    • enrich

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.CompanyResponse> enrich​(com.fullcontact.apilib.models.Request.CompanyRequest companyRequest) throws com.fullcontact.apilib.FullContactException
      Method for Company Enrich without any custom RetryHandler, It converts the request to json, send the Asynchronous request using HTTP POST method. It also handles retries based on retryHandler specified at FullContact Client level.
      Parameters:
      companyRequest - original request sent by client
      Returns:
      completed CompletableFuture with CompanyResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown or request validation
      See Also:
      CompletableFuture
    • enrich

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.CompanyResponse> enrich​(com.fullcontact.apilib.models.Request.CompanyRequest companyRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler) throws com.fullcontact.apilib.FullContactException
      Method for Company Enrich. It converts the request to json, send the Asynchronous request using HTTP POST method. It also handles retries based on retry condition.
      Parameters:
      companyRequest - original request sent by client
      Returns:
      completed CompletableFuture with CompanyResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown or request validation
      See Also:
      CompletableFuture
    • search

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.CompanySearchResponseList> search​(com.fullcontact.apilib.models.Request.CompanyRequest companyRequest) throws com.fullcontact.apilib.FullContactException
      Method for Company Search without any custom RetryHandler, It converts the request to json, send the Asynchronous request using HTTP POST method. It also handles retries based on retryHandler specified at FullContact Client level.
      Parameters:
      companyRequest - original request sent by client
      Returns:
      completed CompletableFuture with CompanySearchResponseList
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown or request fails validation
      See Also:
      CompletableFuture
    • search

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.CompanySearchResponseList> search​(com.fullcontact.apilib.models.Request.CompanyRequest companyRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler) throws com.fullcontact.apilib.FullContactException
      Method for Company Search. It converts the request to json, send the Asynchronous request using HTTP POST method. It also handles retries based on retry condition.
      Parameters:
      companyRequest - original request sent by client
      Returns:
      completed CompletableFuture with CompanySearchResponseList
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown or request fails validation
      See Also:
      CompletableFuture
    • identityMap

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.ResolveResponse> identityMap​(com.fullcontact.apilib.models.Request.ResolveRequest resolveRequest) throws com.fullcontact.apilib.FullContactException
      Method for Resolve Identity Map. It converts the request to json, send the Asynchronous request using HTTP POST method. It also handles retries based on retryHandler specified at FullContact Client level.
      Parameters:
      resolveRequest - original request sent by client
      Returns:
      completed CompletableFuture with ResolveResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown or request fails validation
      See Also:
      CompletableFuture
    • identityMap

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.ResolveResponse> identityMap​(com.fullcontact.apilib.models.Request.ResolveRequest resolveRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler) throws com.fullcontact.apilib.FullContactException
      Method for Resolve Identity Map. It converts the request to json, send the Asynchronous request using HTTP POST method. It also handles retries based on retryHandler specified.
      Parameters:
      resolveRequest - original request sent by client
      Returns:
      completed CompletableFuture with ResolveResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown or request fails validation
      See Also:
      CompletableFuture
    • identityResolve

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.ResolveResponse> identityResolve​(com.fullcontact.apilib.models.Request.ResolveRequest resolveRequest) throws com.fullcontact.apilib.FullContactException
      Method for Identity Resolve. It converts the request to json, send the Asynchronous request using HTTP POST method. It also handles retries based on retryHandler specified at FullContact Client level.
      Parameters:
      resolveRequest - original request sent by client
      Returns:
      completed CompletableFuture with ResolveResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown
      See Also:
      CompletableFuture
    • identityResolve

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.ResolveResponse> identityResolve​(com.fullcontact.apilib.models.Request.ResolveRequest resolveRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler) throws com.fullcontact.apilib.FullContactException
      Method for Identity Resolve. It converts the request to json, send the Asynchronous request using HTTP POST method. It also handles retries based on retryHandler specified.
      Parameters:
      resolveRequest - original request sent by client
      Returns:
      completed CompletableFuture with ResolveResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown
      See Also:
      CompletableFuture
    • identityResolveWithTags

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.ResolveResponseWithTags> identityResolveWithTags​(com.fullcontact.apilib.models.Request.ResolveRequest resolveRequest) throws com.fullcontact.apilib.FullContactException
      Method for Identity Resolve with Tags. It converts the request to json, send the Asynchronous request using HTTP POST method. It also handles retries based on retryHandler specified at FullContact Client level.
      Parameters:
      resolveRequest - original request sent by client
      Returns:
      completed CompletableFuture with ResolveResponseWithTags
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown
      See Also:
      CompletableFuture
    • identityResolveWithTags

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.ResolveResponseWithTags> identityResolveWithTags​(com.fullcontact.apilib.models.Request.ResolveRequest resolveRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler) throws com.fullcontact.apilib.FullContactException
      Method for Identity Resolve with Tags. It converts the request to json, send the Asynchronous request using HTTP POST method. It also handles retries based on retryHandler specified.
      Parameters:
      resolveRequest - original request sent by client
      Returns:
      completed CompletableFuture with ResolveResponseWithTags
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown
      See Also:
      CompletableFuture
    • identityDelete

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.ResolveResponse> identityDelete​(com.fullcontact.apilib.models.Request.ResolveRequest resolveRequest) throws com.fullcontact.apilib.FullContactException
      Method for Deleting mapped Record. It calls 'identity.delete' endpoint in Resolve. It converts the request to json, send the Asynchronous request using HTTP POST method. It also handles retries based on retryHandler specified at FullContact Client level.
      Parameters:
      resolveRequest - original request sent by client
      Returns:
      completed CompletableFuture with ResolveResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown
      See Also:
      CompletableFuture
    • identityDelete

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.ResolveResponse> identityDelete​(com.fullcontact.apilib.models.Request.ResolveRequest resolveRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler) throws com.fullcontact.apilib.FullContactException
      Method for Deleting mapped Record. It calls 'identity.delete' endpoint in Resolve. It converts the request to json, send the Asynchronous request using HTTP POST method. It also handles retries based on retryHandler specified.
      Parameters:
      resolveRequest - original request sent by client
      Returns:
      completed CompletableFuture with ResolveResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown
      See Also:
      CompletableFuture
    • emailVerification

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.EmailVerificationResponse> emailVerification​(java.lang.String email) throws com.fullcontact.apilib.FullContactException
      Method for Email Verification. It sends a Asynchronous request using HTTP GET method. It also handles retries based RetryHandler specified on FullContact client level.
      Parameters:
      email - original email sent by client for verification
      Returns:
      completed CompletableFuture with EmailVerificationResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown
      See Also:
      CompletableFuture
    • emailVerification

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.EmailVerificationResponse> emailVerification​(java.lang.String email, com.fullcontact.apilib.retry.RetryHandler retryHandler) throws com.fullcontact.apilib.FullContactException
      Method for Email Verification. It sends a Asynchronous request using HTTP GET method. It also handles retries based on retry condition specified in RetryHandler.
      Parameters:
      email - original email sent by client for verification
      Returns:
      completed CompletableFuture with EmailVerificationResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown
      See Also:
      CompletableFuture
    • tagsCreate

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.TagsResponse> tagsCreate​(com.fullcontact.apilib.models.Request.TagsRequest tagsRequest) throws com.fullcontact.apilib.FullContactException
      Method for adding/creating tags for any recordID in your PIC without any custom RetryHandler, It converts the request to json, send the Asynchronous request using HTTP POST method. It also handles retries based on retryHandler specified at FullContact Client level.
      Parameters:
      tagsRequest - original request sent by client
      Returns:
      completed CompletableFuture with TagsResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown
      See Also:
      CompletableFuture
    • tagsCreate

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.TagsResponse> tagsCreate​(com.fullcontact.apilib.models.Request.TagsRequest tagsRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler) throws com.fullcontact.apilib.FullContactException
      Method for adding/creating tags for any recordID in your PIC. It converts the request to json, send the Asynchronous request using HTTP POST method. It also handles retries based on retry condition.
      Parameters:
      tagsRequest - original request sent by client
      Returns:
      completed CompletableFuture with TagsResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown
      See Also:
      CompletableFuture
    • tagsGet

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.TagsResponse> tagsGet​(java.lang.String recordId) throws com.fullcontact.apilib.FullContactException
      Method for getting all tags for any recordID in your PIC without any custom RetryHandler, It converts the request to json, send the Asynchronous request using HTTP POST method. It also handles retries based on retryHandler specified at FullContact Client level.
      Parameters:
      recordId - sent by client
      Returns:
      completed CompletableFuture with TagsResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown
      See Also:
      CompletableFuture
    • tagsGet

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.TagsResponse> tagsGet​(java.lang.String recordId, com.fullcontact.apilib.retry.RetryHandler retryHandler) throws com.fullcontact.apilib.FullContactException
      Method for getting all tags for any recordID in your PIC. It converts the request to json, send the Asynchronous request using HTTP POST method. It also handles retries based on retry condition.
      Parameters:
      recordId - sent by client
      Returns:
      completed CompletableFuture with TagsResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown
      See Also:
      CompletableFuture
    • tagsDelete

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.TagsResponse> tagsDelete​(com.fullcontact.apilib.models.Request.TagsRequest tagsRequest) throws com.fullcontact.apilib.FullContactException
      Method for deleting tags for any recordID in your PIC without any custom RetryHandler, It converts the request to json, send the Asynchronous request using HTTP POST method. It also handles retries based on retryHandler specified at FullContact Client level.
      Parameters:
      tagsRequest - original request sent by client
      Returns:
      completed CompletableFuture with TagsResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown
      See Also:
      CompletableFuture
    • tagsDelete

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.TagsResponse> tagsDelete​(com.fullcontact.apilib.models.Request.TagsRequest tagsRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler) throws com.fullcontact.apilib.FullContactException
      Method for deleting tags for any recordID in your PIC. It converts the request to json, send the Asynchronous request using HTTP POST method. It also handles retries based on retry condition.
      Parameters:
      tagsRequest - original request sent by client
      Returns:
      completed CompletableFuture with PersonResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown
      See Also:
      CompletableFuture
    • audienceCreate

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.AudienceResponse> audienceCreate​(com.fullcontact.apilib.models.Request.AudienceRequest audienceRequest) throws com.fullcontact.apilib.FullContactException
      Method for creating Audience from your PIC based on tags. WebhookUrl and at least one tag is mandatory for this request. It converts the request to json, send the Asynchronous request using HTTP POST method. It also handles retries based on retryHandler specified at FullContact Client level.
      Parameters:
      audienceRequest - original request sent by client
      Returns:
      completed CompletableFuture with AudienceResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown
      See Also:
      CompletableFuture
    • audienceCreate

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.AudienceResponse> audienceCreate​(com.fullcontact.apilib.models.Request.AudienceRequest audienceRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler) throws com.fullcontact.apilib.FullContactException
      Method for creating Audience from your PIC based on tags. WebhookUrl and at least one tag is mandatory for this request. It converts the request to json, send the Asynchronous request using HTTP POST method. It also handles retries based on retry condition.
      Parameters:
      audienceRequest - original request sent by client
      Returns:
      completed CompletableFuture with AudienceResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown
      See Also:
      CompletableFuture
    • audienceDownload

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.AudienceResponse> audienceDownload​(java.lang.String requestId) throws com.fullcontact.apilib.FullContactException
      Throws:
      com.fullcontact.apilib.FullContactException
    • buildPersonRequest

      public static com.fullcontact.apilib.models.Request.PersonRequest.PersonRequestBuilder buildPersonRequest()
      Returns:
      Person Request Builder for Person Enrich request
    • buildCompanyRequest

      public static com.fullcontact.apilib.models.Request.CompanyRequest.CompanyRequestBuilder buildCompanyRequest()
      Returns:
      Company Request Builder for Company Enrich and Company Search requests
    • buildResolveRequest

      public static com.fullcontact.apilib.models.Request.ResolveRequest.ResolveRequestBuilder buildResolveRequest()
      Returns:
      Resolve Request Builder for Resolve
    • buildTagsRequest

      public static com.fullcontact.apilib.models.Request.TagsRequest.TagsRequestBuilder buildTagsRequest()
      Returns:
      TagsRequest Builder for various tags endpoints
    • buildAudienceRequest

      public static com.fullcontact.apilib.models.Request.AudienceRequest.AudienceRequestBuilder buildAudienceRequest()
      Returns:
      AudienceRequest Builder for various tags endpoints
    • close

      public void close()
      This method is used to call shutdown on the ScheduledThreadPoolExecutor and close the FullContact client.
      Specified by:
      close in interface java.lang.AutoCloseable
    • finalize

      public void finalize()
      This method will be called by GC to close the client.