Skip to main content

CloudWalletEssentials

Project description

affinidi_tdk_wallets_client

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

For more information, please visit https://github.com/affinidi/affinidi-tdk

Documentation is available at https://docs.affinidi.com/dev-tools/affinidi-tdk/clients/wallets

Requirements.

Python 3.7+

Installation & Usage

pip install

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

pip install affinidi_tdk_wallets_client

Then import the package:

import affinidi_tdk_wallets_client

Setuptools

Install via Setuptools.

python setup.py install --user

Then import the package:

import affinidi_tdk_wallets_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_wallets_client
from affinidi_tdk_wallets_client.rest import ApiException
from pprint import pprint

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

# 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"]

# Configure a hook to auto-refresh API key for your personal access token (PAT), if expired
import affinidi_tdk_auth_provider

stats = {
  apiGatewayUrl,
  keyId,
  passphrase,
  privateKey,
  projectId,
  tokenEndpoint,
  tokenId,
}
authProvider = affinidi_tdk_auth_provider.AuthProvider(stats)
configuration.refresh_api_key_hook = lambda api_client: authProvider.fetch_project_scoped_token()

# 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_wallets_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = affinidi_tdk_wallets_client.RevocationApi(api_client)
    project_id = 'project_id_example' # str | Description for projectId.
    wallet_id = 'wallet_id_example' # str | Description for walletId.
    status_id = 'status_id_example' # str | Description for statusId.

    try:
        api_response = api_instance.get_revocation_credential_status(project_id, wallet_id, status_id)
        print("The response of RevocationApi->get_revocation_credential_status:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling RevocationApi->get_revocation_credential_status: %s\n" % e)

Documentation for API Endpoints

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

Class Method HTTP request Description
RevocationApi get_revocation_credential_status GET /v1/projects/{projectId}/wallets/{walletId}/revocation-statuses/{statusId}
RevocationApi get_revocation_list_credential GET /v1/wallets/{walletId}/revocation-list/{listId} Return revocation list credential.
RevocationApi revoke_credential POST /v1/wallets/{walletId}/revoke Revoke Credential.
WalletApi create_wallet POST /v1/wallets
WalletApi delete_wallet DELETE /v1/wallets/{walletId}
WalletApi get_wallet GET /v1/wallets/{walletId}
WalletApi list_wallets GET /v1/wallets
WalletApi sign_credential POST /v1/wallets/{walletId}/sign-credential
WalletApi sign_jwt_token POST /v1/wallets/{walletId}/sign-jwt
WalletApi update_wallet PATCH /v1/wallets/{walletId}

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

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

affinidi_tdk_wallets_client-1.29.0.tar.gz (31.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file affinidi_tdk_wallets_client-1.29.0.tar.gz.

File metadata

File hashes

Hashes for affinidi_tdk_wallets_client-1.29.0.tar.gz
Algorithm Hash digest
SHA256 ef098a3d2be967a80b7d94333dfc78e47316c4bcbfcf2bbc492dc335633be45b
MD5 1d03d3826282ea8a4ffaf7e1c9279df3
BLAKE2b-256 b07468f90db977057ce9d2f7287b7880b9104bbe5ba650239b785b3e82b9650f

See more details on using hashes here.

File details

Details for the file affinidi_tdk_wallets_client-1.29.0-py3-none-any.whl.

File metadata

File hashes

Hashes for affinidi_tdk_wallets_client-1.29.0-py3-none-any.whl
Algorithm Hash digest
SHA256 315a2dcdce546e30078c3bc4b8e1f29ecd527d9de984cb0d899ef40b1802b235
MD5 62e18f459e1f26a57fbf496e1e3461de
BLAKE2b-256 e62a30ed28e60b7ea70b7607e82250d41649589cf1a778834533826b49d9a06c

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