Python API Library
The FacekiAPIClientV2 is a Python client for interacting with the Faceki API. It provides methods to generate an access token, perform various KYC (Know Your Customer) operations
Prerequisites
Python 3.6 or above
requests
library
Installation
Ensure that Python is installed on your system.
Install the
facekiapiclientv2
library by running the following command:
Usage
Import the
requests
library and theFacekiAPIClientV2
class:Create an instance of the
FacekiAPIClientV2
class by providing your client ID and client secret:Use the available methods to interact with the Faceki API. Here are some examples:
Generate an access token:
Get KYC rules:
Perform a KYC verification:
Get KYC verification summary:
Generate a KYC verification link:
Get KYC records:
Perform a face check:
Exception Handling
The FacekiAPIClientV2
class may raise exceptions in case of errors. Ensure that you handle these exceptions appropriately in your code. Examples of possible exceptions include:
requests.exceptions.RequestException
: Raised when there is an issue with making a request to the Faceki API.Exception
: Raised for various errors such as failed token generation or failed requests.
Disclaimer
Please note that this client code is provided as a starting point and may require modifications or updates depending on the Faceki API's specific requirements or changes. Refer to the Faceki API documentation for detailed information about the API's endpoints, request/response structures, and authentication requirements.
Last updated