Skip to main content

API for Bleu

Project description

BleuAPIClient

License

Overview

BleuAPIClient is a Python client for interacting with the Bleu API. It provides a convenient way to access various endpoints for tasks such as KYC verification, face matching, and more.

Installation

You can install this package using pip:

pip install bleu-api

Usage

To use the BleuAPIClient in your Python project, you need to create an instance of the BleuAPIClient class, providing your client ID and client secret. Once initialized, you can call methods to interact with the Bleu API.

Here's an example of how to get started:

from bleu_api.client import *

# Initialize the client with your client ID and client secret
client = BleuAPIClient(client_id='your_client_id', client_secret='your_client_secret')

# Get an access token
client.get_access_token()

# Perform a single KYC verification
response = client.single_kyc_verification(
    selfie_image_path='path/to/selfie_image.jpg',
    doc_front_path='path/to/doc_front.jpg',
    doc_back_path='path/to/doc_back.jpg'
)

# Check the response
if response:
    if response['responseCode'] == BleuAPIClient.RESPONSE_CODES["SUCCESS"]:
        print("Verification successful.")
    else:
        print(f"Verification failed with code {response['responseCode']}")

# Continue using other methods as needed

API Endpoints

The BleuAPIClient provides methods for interacting with various API endpoints. Refer to the API_ENDPOINTS class variable for the available endpoints.

Response Codes

The BleuAPIClient includes a set of predefined response codes to help you interpret the results of your API requests. These codes are available as a dictionary under the RESPONSE_CODES class variable.

Configuration

You can configure the client by modifying its class variables, such as BASE_URL or adding new API endpoints and response codes as needed.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributions

Contributions to this project are welcome. Please refer to the CONTRIBUTING guidelines for more information on how to contribute.


Make sure to replace 'your_client_id' and 'your_client_secret' with your actual credentials. You can also add more detailed information and examples to the README if necessary.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bleu_api-1.0.2.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bleu_api-1.0.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file bleu_api-1.0.2.tar.gz.

File metadata

  • Download URL: bleu_api-1.0.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for bleu_api-1.0.2.tar.gz
Algorithm Hash digest
SHA256 7dbbfa6617986d2f4f8bdafaa37776010863efcb4c905258ce82ae121b8698a7
MD5 3d779b5ceca3c6ad9e2e770d01ad147d
BLAKE2b-256 a6e43b04de47aaff390de3eb2a7def84b4ec335e0180f85c9a888ab84c4041fa

See more details on using hashes here.

File details

Details for the file bleu_api-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: bleu_api-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for bleu_api-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bb95c7b0da07c8eee927c144e4165e1d5acdfdf65bbf880fdb3d0842d72c761b
MD5 30055ed4db72f0250ced48ae026b3742
BLAKE2b-256 2d7fd50109d0c9f05b8a092ad1705109fd441e1c6e1eda13a9a272734fc96112

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page