Python CardScan API client
Low maintenance activity. Last release 14 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
$
pip install cardscan-clientcardscan-client
The official python client for the CardScan API
Requirements.
Python 3.8+
Installation & Usage
pip install cardscan-client
Getting Started
Please follow the installation procedure and then run the following:
from cardscan_client.api_client import ApiClient
from cardscan_client.api.card_scan_api import CardScanApi
from cardscan_client.configuration import Configuration
from cardscan_client.exceptions import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://sandbox.cardscan.ai/v1
# See configuration.py for a list of all supported configuration parameters.
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
configuration = Configuration(
api_key=os.environ['API_KEY'],
environment='sandbox'
)
def main():
client = CardScanApi(api_client=ApiClient(configuration=configuration))
try:
api_response = client.full_scan(front_image_path="test/cards/front.jpg")
pprint(api_response)
except ApiException as e:
print("Exception when calling FullScan->full_scan: %s\n" % e)
if __name__ == "__main__":
main()
Documentation for API Endpoints
All URIs are relative to https://sandbox.cardscan.ai/v1
| Class | Method | HTTP request | Description |
|---|---|---|---|
| CardScanApi | create_card | POST /cards | Creates a new card |
| CardScanApi | create_eligibility | POST /eligibility | Create Eligibility Record |
| CardScanApi | delete_card_by_id |