Skip to main content

VerificationService

Project description

affinidi_tdk_credential_verification_client

Affinidi VerificationService Structure

This Python package is automatically generated by the OpenAPI Generator project:

Requirements.

Python 3.7+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import affinidi_tdk_credential_verification_client

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 affinidi_tdk_credential_verification_client

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import time
import affinidi_tdk_credential_verification_client
from affinidi_tdk_credential_verification_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://apse1.api.affinidi.io/ver
# See configuration.py for a list of all supported configuration parameters.
configuration = affinidi_tdk_credential_verification_client.Configuration(
    host = "https://apse1.api.affinidi.io/ver"
)

# 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 API key authorization: ProjectTokenAuth
configuration.api_key['ProjectTokenAuth'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ProjectTokenAuth'] = 'Bearer'


# Enter a context with an instance of the API client
with affinidi_tdk_credential_verification_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = affinidi_tdk_credential_verification_client.DefaultApi(api_client)
    verify_credential_input = affinidi_tdk_credential_verification_client.VerifyCredentialInput() # VerifyCredentialInput | VerifyCredentials

    try:
        # Verifying VC
        api_response = api_instance.verify_credentials(verify_credential_input)
        print("The response of DefaultApi->verify_credentials:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->verify_credentials: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://apse1.api.affinidi.io/ver

Class Method HTTP request Description
DefaultApi verify_credentials POST /v1/verifier/verify-vcs Verifying VC
DefaultApi verify_presentation POST /v1/verifier/verify-vp Verifying VP

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

UserTokenAuth

  • Type: API key
  • API key parameter name: authorization
  • Location: HTTP header

ProjectTokenAuth

  • Type: API key
  • API key parameter name: authorization
  • Location: HTTP header

Author

info@affinidi.com

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

Built Distribution

File details

Details for the file affinidi_tdk_credential_verification_client-1.20.0.tar.gz.

File metadata

File hashes

Hashes for affinidi_tdk_credential_verification_client-1.20.0.tar.gz
Algorithm Hash digest
SHA256 8b3e9d1f07c70aac5193cedab3b67cf97aa33ace613bdc661d4edc6378b90f2f
MD5 eb29dbb2f9cd393fbdd17f228094d775
BLAKE2b-256 03a473fb92b9a33c67518f694ce8d8231f584e859bb4ce37d9d90a25d8c16560

See more details on using hashes here.

File details

Details for the file affinidi_tdk_credential_verification_client-1.20.0-py3-none-any.whl.

File metadata

File hashes

Hashes for affinidi_tdk_credential_verification_client-1.20.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e400a11bc8f2f819debd390006aeacf9c5f972661087d0d0c9da955efe4af881
MD5 d7bc835a0063a5377e59482402d03d9f
BLAKE2b-256 cf884472b698f63814739f1a78909243e231a6a69ffc835aa480412621836880

See more details on using hashes here.

Supported by

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