affinidi_tdk_wallets_client 1.12.0
affinidi_tdk_wallets_client: ^1.12.0 copied to clipboard
Affinidi TDK dart client for Affinidi WALLETS
affinidi_tdk_wallets_client (EXPERIMENTAL) #
Affinidi TDK dart client for Affinidi WALLETS
Requirements #
- Dart 2.15.0+
- Dio 5.0.0+ (https://pub.dev/packages/dio)
Installation & Usage #
pub.dev #
To use the package from pub.dev, please include the following in pubspec.yaml
dependencies:
affinidi_tdk_wallets_client: ^1.0.0
Github #
This Dart package is published to Github, please include the following in pubspec.yaml
dependencies:
affinidi_tdk_wallets_client:
git:
url: https://github.com/affinidi/affinidi-tdk.git
ref: main
path: clients/dart/wallets_client
Local development #
To use the package from your local drive, please include the following in pubspec.yaml
dependencies:
affinidi_tdk_wallets_client:
path: /path/to/affinidi_tdk_wallets_client
Install dependencies #
dart pub get
Getting Started #
Please follow the installation procedure and then run the following:
import 'package:affinidi_tdk_wallets_client/affinidi_tdk_wallets_client.dart';
final api = AffinidiTdkWalletsClient().getRevocationApi();
final String projectId = projectId_example; // String | Description for projectId.
final String walletId = walletId_example; // String | Description for walletId.
final String statusId = statusId_example; // String | Description for statusId.
try {
final response = await api.getRevocationCredentialStatus(projectId, walletId, statusId);
print(response);
} catch on DioException (e) {
print("Exception when calling RevocationApi->getRevocationCredentialStatus: $e\n");
}
Documentation for API Endpoints #
All URIs are relative to https://apse1.api.affinidi.io/cwe
Class | Method | HTTP request | Description |
---|---|---|---|
RevocationApi | getRevocationCredentialStatus | GET /v1/projects/{projectId}/wallets/{walletId}/revocation-statuses/{statusId} | |
RevocationApi | getRevocationListCredential | GET /v1/wallets/{walletId}/revocation-list/{listId} | Return revocation list credential. |
RevocationApi | revokeCredential | POST /v1/wallets/{walletId}/revoke | Revoke Credential. |
WalletApi | createWallet | POST /v1/wallets | |
WalletApi | deleteWallet | DELETE /v1/wallets/{walletId} | |
WalletApi | getWallet | GET /v1/wallets/{walletId} | |
WalletApi | listWallets | GET /v1/wallets | |
WalletApi | signCredential | POST /v1/wallets/{walletId}/sign-credential | |
WalletApi | signJwtToken | POST /v1/wallets/{walletId}/sign-jwt | |
WalletApi | updateWallet | PATCH /v1/wallets/{walletId} |
Documentation For Models #
- CreateWalletInput
- CreateWalletResponse
- EntityNotFoundError
- GetRevocationCredentialStatusOK
- GetRevocationListCredentialResultDto
- InvalidDidParameterError
- InvalidParameterError
- KeyNotFoundError
- NotFoundError
- OperationForbiddenError
- RevokeCredentialInput
- ServiceErrorResponse
- ServiceErrorResponseDetailsInner
- SignCredential400Response
- SignCredentialInputDto
- SignCredentialInputDtoUnsignedCredentialParams
- SignCredentialResultDto
- SignCredentialsDm1JwtInputDto
- SignCredentialsDm1JwtResultDto
- SignCredentialsDm1LdInputDto
- SignCredentialsDm1LdResultDto
- SignCredentialsDm2LdInputDto
- SignCredentialsDm2LdResultDto
- SignCredentialsDm2SdJwtInputDto
- SignCredentialsDm2SdJwtResultDto
- SignJwtToken
- SignJwtTokenOK
- SigningFailedError
- UpdateWalletInput
- WalletDto
- WalletDtoKeysInner
- WalletsListDto
Documentation For Authorization #
Authentication schemes defined for the API:
ProjectTokenAuth #
- Type: API key
- API key parameter name: authorization
- Location: HTTP header