Skip to main content

CloudWalletEssentials

Project description

affinidi_tdk_wallets_client

Cloud Wallet For Enterprise 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_wallets_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_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"]

# 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)
    list_id = 'list_id_example' # str |
    wallet_id = 'wallet_id_example' # str | id of the wallet

    try:
        # Return revocation list credential.
        api_response = api_instance.get_revocation_list_credential(list_id, wallet_id)
        print("The response of RevocationApi->get_revocation_list_credential:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling RevocationApi->get_revocation_list_credential: %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_list_credential GET /v1/wallets/{walletId}/revocation-list/{listId} Return revocation list credential.
RevocationApi revoke_credential POST /v1/wallets/{walletId}/revoke Revoke Credential.
DefaultApi get_revocation_credential_status GET /v1/projects/{projectId}/wallets/{walletId}/revocation-statuses/{statusId}
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.19.0.tar.gz (31.4 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for affinidi_tdk_wallets_client-1.19.0.tar.gz
Algorithm Hash digest
SHA256 ebf31cc6c22c83c4b2c73c62d12d92f741878bba133141133eedd45b26d09d64
MD5 8d34d1e5242fe875717c3df6afbdb458
BLAKE2b-256 ad343d1073b398024e4a00b2a983fe47be7564b766fcfcee7e30f88a14bffec7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for affinidi_tdk_wallets_client-1.19.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4bb6e9603f7ff059a103cc059caa20918aaa8bf19d1437d4b1e2b2d5a10876da
MD5 66432a507ee8c14b4677412ab6a5fa60
BLAKE2b-256 759bf70c5a824254d2bceb6fa55ad5879b11474bc0d516ad8e2687550df9403a

See more details on using hashes here.

Supported by

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