affinidi_tdk_credential_verification_client (EXPERIMENTAL)

Affinidi TDK dart client for Affinidi CREDENTIAL VERIFICATION

Requirements

Installation & Usage

pub.dev

To use the package from pub.dev, please include the following in pubspec.yaml

dependencies:
  affinidi_tdk_credential_verification_client: ^1.0.0

Github

This Dart package is published to Github, please include the following in pubspec.yaml

dependencies:
  affinidi_tdk_credential_verification_client:
    git:
      url: https://github.com/affinidi/affinidi-tdk.git
      ref: main
      path: clients/dart/credential_verification_client

Local development

To use the package from your local drive, please include the following in pubspec.yaml

dependencies:
  affinidi_tdk_credential_verification_client:
    path: /path/to/affinidi_tdk_credential_verification_client

Install dependencies

dart pub get

Getting Started

Please follow the installation procedure and then run the following:

import 'package:affinidi_tdk_credential_verification_client/affinidi_tdk_credential_verification_client.dart';


final api = AffinidiTdkCredentialVerificationClient().getDefaultApi();
final VerifyCredentialInput verifyCredentialInput = ; // VerifyCredentialInput | VerifyCredentials

try {
    final response = await api.verifyCredentials(verifyCredentialInput);
    print(response);
} catch on DioException (e) {
    print("Exception when calling DefaultApi->verifyCredentials: $e\n");
}

Documentation for API Endpoints

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

Class Method HTTP request Description
DefaultApi verifyCredentials POST /v1/verifier/verify-vcs Verifying VC
DefaultApi verifyPresentation POST /v1/verifier/verify-vp Verifying VP

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

UserTokenAuth

  • Type: API key
  • API key parameter name: authorization
  • Location: HTTP header

ProjectTokenAuth

  • Type: API key
  • API key parameter name: authorization
  • Location: HTTP header

Author

info@affinidi.com