Skip to main content

affinidi_tdk_wallets_client

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

For more information, please visit https://www.affinidi.com

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.
RevocationApi revoke_credentials POST /v2/wallets/{walletId}/credentials/revoke Revoke Credentials.
WalletApi create_service_endpoint POST /v2/wallets/{walletId}/services
WalletApi create_wallet POST /v1/wallets
WalletApi create_wallet_key POST /v2/wallets/{walletId}/keys
WalletApi create_wallet_v2 POST /v2/wallets
WalletApi delete_wallet DELETE /v1/wallets/{walletId}
WalletApi get_wallet GET /v1/wallets/{walletId}
WalletApi list_service_endpoints GET /v2/wallets/{walletId}/services
WalletApi list_wallet_keys GET /v2/wallets/{walletId}/keys
WalletApi list_wallets GET /v1/wallets
WalletApi remove_service_endpoint DELETE /v2/wallets/{walletId}/services/{serviceId}
WalletApi remove_wallet_key DELETE /v2/wallets/{walletId}/keys/{keyId}
WalletApi sign_credential POST /v1/wallets/{walletId}/sign-credential
WalletApi sign_credentials_jwt POST /v2/wallets/{walletId}/credentials/jwt/sign
WalletApi sign_credentials_ldp POST /v2/wallets/{walletId}/credentials/ldp/sign
WalletApi sign_credentials_sd_jwt POST /v2/wallets/{walletId}/credentials/sd-jwt/sign
WalletApi sign_jwt_token POST /v1/wallets/{walletId}/sign-jwt
WalletApi sign_jwt_v2 POST /v2/wallets/{walletId}/jwt/sign Sign JWT.
WalletApi sign_presentations_ldp POST /v2/wallets/{walletId}/presentations/ldp/sign
WalletApi update_service_endpoint PATCH /v2/wallets/{walletId}/services/{serviceId}
WalletApi update_wallet PATCH /v1/wallets/{walletId}
WalletApi update_wallet_key PATCH /v2/wallets/{walletId}/keys/{keyId}

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

Metadata

Release files for affinidi_tdk_wallets_client 1.63.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for affinidi_tdk_wallets_client 1.63.0
File Size Uploaded
affinidi_tdk_wallets_client-1.63.0.tar.gz 39.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for affinidi_tdk_wallets_client 1.63.0
File Interpreter ABI Platform
affinidi_tdk_wallets_client-1.63.0-py3-none-any.whl Python 3 none any Details

Total release size: 129.8 kB

Release files / affinidi_tdk_wallets_client-1.63.0.tar.gz

Download URL affinidi_tdk_wallets_client-1.63.0.tar.gz
Size 39.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0081595c730c0a52542b9a430c071bb4573768db8f802e7b865c953067669c7e
BLAKE2b-256 checksum
How to use checksums
dd25946fd7ea85af1b6b56042f09f56039b1b0578f63788e2200e3154ddc2b20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via poetry/1.8.5 CPython/3.14.3 Linux/6.17.0-1010-azure

Release files / affinidi_tdk_wallets_client-1.63.0-py3-none-any.whl

Download URL affinidi_tdk_wallets_client-1.63.0-py3-none-any.whl
Size 89.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
928bd454b44f267a4f36f64b5f9cb38854d0935df8aeef2425b8936b3c4a5188
BLAKE2b-256 checksum
How to use checksums
cda0888f928eebad09e6a23b4a474eeada1a25e8610b0e88d332d956c3c1d8e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via poetry/1.8.5 CPython/3.14.3 Linux/6.17.0-1010-azure

Release history Release notifications | RSS feed

This release

1.63.0 This release

2 release files

1.62.0

2 release files

1.61.0

2 release files

1.60.0

2 release files

1.59.0

2 release files

1.58.0

2 release files

1.54.0

2 release files

1.53.0

2 release files

1.33.0

2 release files

1.30.0

2 release files

1.28.0

2 release files

1.27.0

2 release files

1.26.0

1 release file

1.25.1

2 release files

1.25.0

2 release files

1.24.0

2 release files

1.21.0

2 release files

1.20.0

2 release files

1.19.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page