📗API [v3.0]
This page describes all LIQA API functions. Simply copy-paste code snippets into your application.
Last updated
This page describes all LIQA API functions. Simply copy-paste code snippets into your application.
Last updated
LIQA needs your users to explicitly give access to the camera. This requirement is caused by device producer data protection policies. For websites and PWA, LIQA can handle request by itself, but for React Native applications LIQA needs some help from your side.
To make camera access requests work correctly for React Native application, please modify your app permission manifest. Here is an explicit how-to article on it (both iOS / Android): Camera access permissions (React Native app only)
Locate the object where LIQA will exist inside of your application or website.
Inject "Start"
command to start LIQA, as soon as your user is ready to use it.
Add Cache Header to manage cache lifetime.
Add <meta />
tag to your index.html
:
The max-age=<N>
response directive indicates that the response remains fresh until N seconds after the response is generated.
We do not recommend making this value > 2 days to keep your system always up to date (2 days = 151200 seconds)
Setup your application to catch events from LIQA to understand executing stage:
Read here to see what styling options are curently supported: UI Styling
Read here how to setup customization: Parameters
Set up a command to receive an image as an event listener.
The image is encoded as base64
(a common image to bytes encoding method)
We are continuously improving our product and we are happy to listen to your voice.
Building complex systems is inevitably connected with imperfections. LIQA performs many actions and some of them may take time, some of them may even unexpectedly fail with errors. Events bring some transparency to the process.
All devices are different in terms of screen size and camera resolution, but LIQA allows you to avoid the nightmare of keeping all this in mind. Just set iframe
or webview
tag according to the Initialization & Start instruction, and the rest LIQA will do with Responsive UI
Defining a nice but functional UI is always a big challenge, but we are sure that we do it well. LIQA allows setting your own style properties to some objects.
All styling parameters are passed directly to LIQA during "Start"
command.
LIQA returns as output a final approved user image, that passed through AI model quality criteria and was confirmed by the user.
As soon as your user finished image capturing process, LIQA is not necessary anymore.
Inject "Exit"
command to stop LIQA models
Hide LIQA object from the user
This example shows the default setup of LIQA in your application just in several lines of code:
Let us know via creating a ticket in our !