public class BlockscoreApiClient
extends java.lang.Object
| Constructor and Description |
|---|
BlockscoreApiClient(java.lang.String apiKey)
Creates a BlockscoreApiClient.
|
| Modifier and Type | Method and Description |
|---|---|
BlockscoreRestAdapter |
getAdapter()
Gets the internal REST api adapter needed to complete Blockscore API requests.
|
PaginatedResult<Candidate> |
listCandidates()
Lists a historical record of all candidates you have created.
|
PaginatedResult<Company> |
listCompanies()
Lists verified companies a historical record of all company verifications that you have completed.
|
PaginatedResult<Person> |
listPeople()
Lists a historical record of all verifications that you have completed.
|
Candidate |
retrieveCandidate(java.lang.String id)
Retrieves a candidate.
|
Company |
retrieveCompany(java.lang.String id)
Gets a single company exactly as it was when you created it.
|
Person |
retrievePerson(java.lang.String id)
Gets a single person exactly as it was when you created it.
|
static void |
useVerboseLogs(boolean useVerboseLogs)
Turns on/off logging.
|
public BlockscoreApiClient(@NotNull
java.lang.String apiKey)
apiKey - the valid Blockscore API keypublic static void useVerboseLogs(boolean useVerboseLogs)
useVerboseLogs - whether or not to use verbose network logs.@NotNull public Person retrievePerson(@NotNull java.lang.String id)
id - ID of Person.@NotNull public PaginatedResult<Person> listPeople()
@NotNull public Company retrieveCompany(@NotNull java.lang.String id)
id - ID of the Company.@NotNull public PaginatedResult<Company> listCompanies()
@NotNull public Candidate retrieveCandidate(@NotNull java.lang.String id)
id - ID of the candidate.@NotNull public PaginatedResult<Candidate> listCandidates()
public BlockscoreRestAdapter getAdapter()