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. It uses in-built java11 HttpClient 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
    Builder class for building FullContact client.
  • 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)
    Method for downloading Audience file using requestId from 'audience.create'.
    static com.fullcontact.apilib.models.Request.AudienceRequest.AudienceRequestBuilder buildAudienceRequest()  
    static com.fullcontact.apilib.models.Request.ChannelPurposeRequest.ChannelPurposeRequestBuilder buildChannelPurposeRequest()  
    static com.fullcontact.apilib.models.Request.CompanyRequest.CompanyRequestBuilder buildCompanyRequest()  
    static com.fullcontact.apilib.models.Request.MultifieldRequest.MultifieldRequestBuilder<?,​?> buildMultifieldRequest()  
    static com.fullcontact.apilib.models.Request.PermissionRequest.PermissionRequestBuilder<?,​?> buildPermissionRequest()  
    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 without any custom RetryHandler, It sends Asynchronous request using HTTP GET method.
    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.FCResponse> permissionCreate​(com.fullcontact.apilib.models.Request.PermissionRequest permissionRequest)
    Method for Permission Create 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.FCResponse> permissionCreate​(com.fullcontact.apilib.models.Request.PermissionRequest permissionRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler)
    Method for Permission Create.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.PermissionCurrentResponseMap> permissionCurrent​(com.fullcontact.apilib.models.Request.MultifieldRequest multifieldRequest)
    Method for Permission Current 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.PermissionCurrentResponseMap> permissionCurrent​(com.fullcontact.apilib.models.Request.MultifieldRequest multifieldRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler)
    Method for Permission Current.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.FCResponse> permissionDelete​(com.fullcontact.apilib.models.Request.MultifieldRequest multifieldRequest)
    Method for Permission Delete 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.FCResponse> permissionDelete​(com.fullcontact.apilib.models.Request.MultifieldRequest multifieldRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler)
    Method for Permission Delete.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.PermissionResponseList> permissionFind​(com.fullcontact.apilib.models.Request.MultifieldRequest multifieldRequest)
    Method for Permission Find 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.PermissionResponseList> permissionFind​(com.fullcontact.apilib.models.Request.MultifieldRequest multifieldRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler)
    Method for Permission Find.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.ConsentPurposeResponse> permissionVerify​(com.fullcontact.apilib.models.Request.ChannelPurposeRequest channelPurposeRequest)
    Method for Permission Verify 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.ConsentPurposeResponse> permissionVerify​(com.fullcontact.apilib.models.Request.ChannelPurposeRequest channelPurposeRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler)
    Method for Permission Verify.
    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.
    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 any 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, com.fullcontact.apilib.retry.RetryHandler retryHandler)
    Method for deleting any 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.
    java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.TagsResponse> tagsGet​(java.lang.String recordId, com.fullcontact.apilib.retry.RetryHandler retryHandler)
    Method for getting 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

    • 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:
      Tags Request Builder for various Tags APIs
    • buildAudienceRequest

      public static com.fullcontact.apilib.models.Request.AudienceRequest.AudienceRequestBuilder buildAudienceRequest()
      Returns:
      Audience Request Builder for creating audience from your PIC
    • buildMultifieldRequest

      public static com.fullcontact.apilib.models.Request.MultifieldRequest.MultifieldRequestBuilder<?,​?> buildMultifieldRequest()
      Returns:
      Multifield Request builder
    • buildPermissionRequest

      public static com.fullcontact.apilib.models.Request.PermissionRequest.PermissionRequestBuilder<?,​?> buildPermissionRequest()
      Returns:
      Permission Request builder for Permission Create and Delete APIs
    • buildChannelPurposeRequest

      public static com.fullcontact.apilib.models.Request.ChannelPurposeRequest.ChannelPurposeRequestBuilder buildChannelPurposeRequest()
      Returns:
      ChannelPurpose Request builder for Permission Verify API
    • 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 fails 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 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) 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 without any custom RetryHandler, It sends Asynchronous request using HTTP GET method. It also handles retries based on retryHandler specified at FullContact Client level.
      Parameters:
      email - original request sent by client
      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 Asynchronous request using HTTP GET method. It also handles retries based on retry condition.
      Parameters:
      email - original request sent by client
      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. 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 or request fails validation
      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 retryHandler specified.
      Parameters:
      tagsRequest - original request sent by client
      Returns:
      completed CompletableFuture with TagsResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown or request fails validation
      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. 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 or request fails validation
      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 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 retryHandler specified.
      Parameters:
      recordId - sent by client
      Returns:
      completed CompletableFuture with TagsResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown or request fails validation
      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 any 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 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 or request fails validation
      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 any 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 retryHandler specified.
      Parameters:
      tagsRequest - original request sent by client
      Returns:
      completed CompletableFuture with TagsResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown or request fails validation
      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 with AudienceResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown or request fails validation
      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 retryHandler specified.
      Parameters:
      audienceRequest - original request sent by client
      Returns:
      completed CompletableFuture with AudienceResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown or request fails validation
      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
      Method for downloading Audience file using requestId from 'audience.create'.
      Parameters:
      requestId - original request sent by client
      Returns:
      completed CompletableFuture with AudienceResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown or request fails validation
      See Also:
      CompletableFuture
    • permissionCreate

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.FCResponse> permissionCreate​(com.fullcontact.apilib.models.Request.PermissionRequest permissionRequest) throws com.fullcontact.apilib.FullContactException
      Method for Permission Create 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:
      permissionRequest - original request sent by client
      Returns:
      completed CompletableFuture with FCResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown
      See Also:
      CompletableFuture
    • permissionCreate

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

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.FCResponse> permissionDelete​(com.fullcontact.apilib.models.Request.MultifieldRequest multifieldRequest) throws com.fullcontact.apilib.FullContactException
      Method for Permission Delete 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:
      multifieldRequest - original request sent by client
      Returns:
      completed CompletableFuture with FCResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown
      See Also:
      CompletableFuture
    • permissionDelete

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

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.PermissionResponseList> permissionFind​(com.fullcontact.apilib.models.Request.MultifieldRequest multifieldRequest) throws com.fullcontact.apilib.FullContactException
      Method for Permission Find 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:
      multifieldRequest - original request sent by client
      Returns:
      completed CompletableFuture with PermissionResponseList
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown
      See Also:
      CompletableFuture
    • permissionFind

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

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.PermissionCurrentResponseMap> permissionCurrent​(com.fullcontact.apilib.models.Request.MultifieldRequest multifieldRequest) throws com.fullcontact.apilib.FullContactException
      Method for Permission Current 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:
      multifieldRequest - original request sent by client
      Returns:
      completed CompletableFuture with PermissionCurrentResponseMap
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown
      See Also:
      CompletableFuture
    • permissionCurrent

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

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.ConsentPurposeResponse> permissionVerify​(com.fullcontact.apilib.models.Request.ChannelPurposeRequest channelPurposeRequest) throws com.fullcontact.apilib.FullContactException
      Method for Permission Verify 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:
      channelPurposeRequest - original request sent by client
      Returns:
      completed CompletableFuture with ConsentPurposeResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown
      See Also:
      CompletableFuture
    • permissionVerify

      public java.util.concurrent.CompletableFuture<com.fullcontact.apilib.models.Response.ConsentPurposeResponse> permissionVerify​(com.fullcontact.apilib.models.Request.ChannelPurposeRequest channelPurposeRequest, com.fullcontact.apilib.retry.RetryHandler retryHandler) throws com.fullcontact.apilib.FullContactException
      Method for Permission Verify. It converts the request to json, send the Asynchronous request using HTTP POST method. It also handles retries based on retry condition.
      Parameters:
      channelPurposeRequest - original request sent by client
      Returns:
      completed CompletableFuture with ConsentPurposeResponse
      Throws:
      com.fullcontact.apilib.FullContactException - exception if client is shutdown
      See Also:
      CompletableFuture
    • 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.