Onfido API

Access to the onfido api throught

License

License

GroupId

GroupId

com.youcruit
ArtifactId

ArtifactId

onfido-parent
Last Version

Last Version

2.2
Release Date

Release Date

Type

Type

pom
Description

Description

Onfido API
Access to the onfido api throught
Project URL

Project URL

https://github.com/YouCruit/onfido-api
Source Code Management

Source Code Management

https://github.com/YouCruit/onfido-api

Download onfido-parent

Filename Size
onfido-parent-2.2.pom 3 KB
Browse

How to add to project

<!-- https://jarcasting.com/artifacts/com.youcruit/onfido-parent/ -->
<dependency>
    <groupId>com.youcruit</groupId>
    <artifactId>onfido-parent</artifactId>
    <version>2.2</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.youcruit/onfido-parent/
implementation 'com.youcruit:onfido-parent:2.2'
// https://jarcasting.com/artifacts/com.youcruit/onfido-parent/
implementation ("com.youcruit:onfido-parent:2.2")
'com.youcruit:onfido-parent:pom:2.2'
<dependency org="com.youcruit" name="onfido-parent" rev="2.2">
  <artifact name="onfido-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.youcruit', module='onfido-parent', version='2.2')
)
libraryDependencies += "com.youcruit" % "onfido-parent" % "2.2"
[com.youcruit/onfido-parent "2.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • onfido
  • onfido-test

Java API Client for https://onfido.com/ Build Status

Usage

The client is built and distributed with Maven

Maven dependencies

Add the dependency to your pom:

<dependency>
    <groupId>com.youcruit</groupId>
    <artifactId>onfido-api</artifactId>
    <version>0.1</version>
</dependency>

or for gradle:

    compile 'com.youcruit:onfido-api:0.1'

Simple usage:

OnfidoHttpClient httpClient = new OkHttpOnfidoClient();
ApplicantClient applicantClient = new ApplicantClient(httpClient);
ApplicantCreationRequest request = new ApplicantCreationRequest();

request.set..
request.set..
request.set..

ApplicantResponse applicant = applicantClient.createApplicant(request);

Building

mvn clean install

Releasing

The copy-paste way of setting up releasing is adding the following to the ~/.m2/settings.xml

	<servers>
		<server>
			<id>ossrh</id>
			<username>**nexus username**</username>
			<password>**nexus password**</password>
		</server>
	</servers>
	<profiles>
		<profile>
			<id>gpg</id>
			<properties>
				<gpg.passphrase>**gpg passphrase**</gpg.passphrase>
				<gpg.keyname>**gpg keyname**</gpg.keyname>
			</properties>
		</profile>
	</profiles>
mvn release:prepare release:perform -Pgpg
com.youcruit

YouCruit

Versions

Version
2.2
2.1
2.0
0.1.1
0.1.0
0.0.17
0.0.16
0.0.15
0.0.13
0.0.12
0.0.11
0.0.10
0.0.9
0.0.8