Skip to content

Latest commit

 

History

History

credential_verification_client

affinidi_tdk_credential_verification_client

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

This Dart package is automatically generated by the OpenAPI Generator project:

Requirements

Dart 2.12 or later

Installation & Usage

Github

If this Dart package is published to Github, add the following dependency to your pubspec.yaml

dependencies:
  affinidi_tdk_credential_verification_client:
    git: https://github.com/affinidi.com/affinidi-tdk.git

Local

To use the package in your local drive, add the following dependency to your pubspec.yaml

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

Tests

TODO

Getting Started

Please follow the installation procedure and then run the following:

import 'package:affinidi_tdk_credential_verification_client/api.dart';

// TODO Configure API key authorization: ProjectTokenAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ProjectTokenAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ProjectTokenAuth').apiKeyPrefix = 'Bearer';

final api_instance = DefaultApi();
final verifyCredentialInput = VerifyCredentialInput(); // VerifyCredentialInput | VerifyCredentials

try {
    final result = api_instance.verifyCredentials(verifyCredentialInput);
    print(result);
} catch (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