onfido / api-java-client Goto Github PK
View Code? Open in Web Editor NEWThis is an auto-generated client library for the Onfido API
License: MIT License
This is an auto-generated client library for the Onfido API
License: MIT License
I want to get the check including the report details and it's not possible currently.
There is no method in this API to create the sdk_token.
"com.onfido.api.client" % "onfido-api-client" % "1.3.0"
is what's on https://mvnrepository.com/artifact/com.onfido.api.client/onfido-api-client/1.3.0. Can you update your docs/doc generator to reflect this?
Hi team,
Firstly, thanks so much for your work on this SDK! Much appreciated.
I was wondering if it was possible to upload a document to onfido via the Java SDK without first creating a File
object. The app I'm working on will receive documents from upstream and I would prefer not to save the file to disk first before sending it onto Onfido, mostly because I already have a ByteArray
of the document in memory and also because the nature of the content is PII and I'd rather not have those files stored on the server (albeit temporarily).
Currently the uploadDocument
methods require a java.io.File
object. Would it be possible to have a version that took an InputStream
instead? Or should I be using the REST API directly?
Many thanks,
Chris
while trying to create check using
api.createCheck(applicantId, check);
getting following error-:
Caused by: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 621 path $.reports[0].documents
at com.google.gson.stream.JsonReader.beginArray(JsonReader.java:350)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:79)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:103)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:196)
I think it is the case that this library is not published to maven central.
Adding to my pom.xml
<dependency>
<groupId>com.onfido</groupId>
<artifactId>onfido-java</artifactId>
<version>1.5.0</version>
<scope>compile</scope>
</dependency>
cannot resolve the dependency. https://search.maven.org/search?q=g:com.onfido.api.client also yields no results. I see from https://mvnrepository.com/artifact/com.onfido.api.client/onfido-api-client/2.1.0 this the dependency is in jcenter (but under different group and artefact co-ordinates)
For many server-side (non android users who do not use jcenter as default) the central repo is defined as:
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
</repository>
I think it'd either be useful for devs to either:
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>jcenter</id>
<name>bintray</name>
<url>https://jcenter.bintray.com</url>
</repository>
to your pom.xml.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.