Catalog PyPI
PACKAGE EXPLORERView in registry

affinidi_tdk_wallets_client

PyPI

CloudWalletEssentials

cloudwalletessentialsopenapiopenapi-generator
Versions collected1
Direct dependencies4From release 1.63.0
Last observed20 Oct, 21:04 UTC

README

Version 1.63.0 documentation

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

ClassMethodHTTP requestDescription
RevocationApiget_revocation_credential_statusGET /v1/projects/{projectId}/wallets/{walletId}/revocation-statuses/{statusId}
RevocationApiget_revocation_list_credentialGET /v1/wallets/{walletId}/revocation-list/{listId}Return revocation list credential.
RevocationApirevoke_credentialPOST /v1/wallets/{walletId}/revokeRevoke Credential.
RevocationApirevoke_credentialsPOST /v2/wallets/{walletId}/credentials/revokeRevoke Credentials.
WalletApicreate_service_endpointPOST /v2/wallets/{walletId}/services
WalletApicreate_walletPOST /v1/wallets
WalletApicreate_wallet_keyPOST /v2/wallets/{walletId}/keys
WalletApicreate_wallet_v2POST /v2/wallets
WalletApidelete_walletDELETE /v1/wallets/{walletId}
WalletApiget_walletGET /v1/wallets/{walletId}
WalletApilist_service_endpointsGET /v2/wallets/{walletId}/services
WalletApilist_wallet_keysGET /v2/wallets/{walletId}/keys
WalletApilist_walletsGET /v1/wallets
WalletApiremove_service_endpointDELETE /v2/wallets/{walletId}/services/{serviceId}
WalletApiremove_wallet_keyDELETE /v2/wallets/{walletId}/keys/{keyId}
WalletApisign_credentialPOST /v1/wallets/{walletId}/sign-credential
WalletApisign_credentials_jwtPOST /v2/wallets/{walletId}/credentials/jwt/sign
WalletApisign_credentials_ldpPOST /v2/wallets/{walletId}/credentials/ldp/sign
WalletApisign_credentials_sd_jwtPOST /v2/wallets/{walletId}/credentials/sd-jwt/sign
WalletApisign_jwt_tokenPOST /v1/wallets/{walletId}/sign-jwt
WalletApisign_jwt_v2POST /v2/wallets/{walletId}/jwt/signSign JWT.
WalletApisign_presentations_ldpPOST /v2/wallets/{walletId}/presentations/ldp/sign
WalletApiupdate_service_endpointPATCH /v2/wallets/{walletId}/services/{serviceId}
WalletApiupdate_walletPATCH /v1/wallets/{walletId}
WalletApiupdate_wallet_keyPATCH /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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.63.014 Apr 20264

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
affinidi/affinidi-tdk

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:04 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:c3a9c4c52ebca246dc50480b8302736fba4e5e448b0f9e100410f7cfb36cb1c5