Fingerprint Pro Server API provides a way for validating visitors’ data issued by Fingerprint Pro.
Project description
Fingerprint Pro Server Python SDK
Fingerprint Pro Server API provides a way for validating visitors’ data issued by Fingerprint Pro.
This Python package is automatically generated by the Swagger Codegen project:
- API version: 3
- Package version: 1.2.0
- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen
Requirements.
Python 2.7 and 3.4+
Installation & Usage
pip install
You can install the package directly from the Github
pip install git+https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk.git
Or from the PyPI
pip install fingerprint_pro_server_api_sdk
Then import the package:
import fingerprint_pro_server_api_sdk
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import fingerprint_pro_server_api_sdk
Getting Started
Please follow the installation procedure and then run the following:
import fingerprint_pro_server_api_sdk
from fingerprint_pro_server_api_sdk import Response
from fingerprint_pro_server_api_sdk.rest import ApiException
# Configure API key authorization and region
configuration = fingerprint_pro_server_api_sdk.Configuration(api_key="SECRET_API_KEY")
# configuration = fingerprint_pro_server_api_sdk.Configuration(api_key="SECRET_API_KEY", region="eu")
# create an instance of the API class
api_instance = fingerprint_pro_server_api_sdk.FingerprintApi(configuration)
Examples
Fetching visits using visitorId:
import fingerprint_pro_server_api_sdk
from fingerprint_pro_server_api_sdk import Response
from fingerprint_pro_server_api_sdk.rest import ApiException
configuration = fingerprint_pro_server_api_sdk.Configuration(api_key="SECRET_API_KEY")
api_instance = fingerprint_pro_server_api_sdk.FingerprintApi(configuration)
visitor_id = 'visitor_id_example' # str |
#request_id = 'request_id_example' # str | Filter events by requestId (optional)
#linked_id = 'linked_id_example' # str | Filter events by custom identifier (optional)
limit = 10 # int | Limit scanned results (optional)
#before = 56 # int | Used to paginate results (optional)
try:
api_response: Response = api_instance.get_visits(visitor_id, limit=2)
print(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->visitors_visitor_id_get: %s\n" % e)
Fetching events for requestId:
import fingerprint_pro_server_api_sdk
from fingerprint_pro_server_api_sdk import EventResponse
from fingerprint_pro_server_api_sdk.rest import ApiException
configuration = fingerprint_pro_server_api_sdk.Configuration(api_key="SECRET_API_KEY")
api_instance = fingerprint_pro_server_api_sdk.FingerprintApi(configuration)
request_id = 'request_id_example' # str
try:
events_response: EventResponse = api_instance.get_event(request_id)
except ApiException as e:
print("Exception when calling DefaultApi->get_event: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://api.fpjs.io
Class | Method | HTTP request | Description |
---|---|---|---|
FingerprintApi | get_event | GET /events/{request_id} | Get event by request ID |
FingerprintApi | get_visits | GET /visitors/{visitor_id} |
Documentation For Models
- BotdDetectionResult
- BotdResult
- BrowserDetails
- Confidence
- ErrorResponse
- ErrorResponseError
- EventResponse
- IPLocation
- IPLocationCity
- Location
- ManyRequestsResponse
- ProductsResponse
- ProductsResponseBotd
- ProductsResponseIdentification
- ProductsResponseIdentificationData
- Response
- ResponseVisits
- StSeenAt
- Subdivision
- Visit
- WebhookVisit
Documentation For Authorization
ApiKeyHeader
- Type: API key
- API key parameter name: Auth-API-Key
- Location: HTTP header
ApiKeyQuery
- Type: API key
- API key parameter name: api_key
- Location: URL query string
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for fingerprint-pro-server-api-sdk-1.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6565599f6f0965f589509d995e57e2067c2fb99a527c6d2e41d2e8ba1029b445 |
|
MD5 | def0e6d82e15cf6e96ae2047e4521160 |
|
BLAKE2b-256 | d1bfeb83832e4cfb2d99eb813cb07c6337a9e1906340efc421e76b368db9bbd1 |
Hashes for fingerprint_pro_server_api_sdk-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e31dd7fd2c1f5a03f24cdc621fadbc0f84ad69a813f911c7195f40e2edbeea2f |
|
MD5 | 273b8760bc51a72469d5e31138e266da |
|
BLAKE2b-256 | 4a8e49122e8a6dc75d5b8c1a584a258ca8f2651b8cbf161f2511b03e52df7540 |