Skip to content

Latest commit

 

History

History

README.md

iota-client

For more information, please visit https://www.affinidi.com.

Installation & Usage

Requirements

PHP 7.4 and later. Should also work with PHP 8.0.

Composer

To install the bindings via Composer, run:

composer require affinidi-tdk/affinidi-tdk-php

Manual Installation

Download the files and include autoload.php:

<?php
require_once('/path/to/iota-client/vendor/autoload.php');

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');




$apiInstance = new AffinidiTdk\Clients\IotaClient\Api\CallbackApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$callback_input = new \AffinidiTdk\Clients\IotaClient\Model\CallbackInput(); // \AffinidiTdk\Clients\IotaClient\Model\CallbackInput | CallbackRequestInput

try {
    $result = $apiInstance->iotOIDC4VPCallback($callback_input);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CallbackApi->iotOIDC4VPCallback: ', $e->getMessage(), PHP_EOL;
}

API Endpoints

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

Class Method HTTP request Description
CallbackApi iotOIDC4VPCallback POST /v1/callback
ConfigurationsApi createIotaConfiguration POST /v1/configurations
ConfigurationsApi deleteIotaConfigurationById DELETE /v1/configurations/{configurationId}
ConfigurationsApi getIotaConfigurationById GET /v1/configurations/{configurationId}
ConfigurationsApi getIotaConfigurationMetaData GET /v1/projects/{projectId}/configurations/{configurationId}/metadata
ConfigurationsApi listIotaConfigurations GET /v1/configurations
ConfigurationsApi updateIotaConfigurationById PATCH /v1/configurations/{configurationId}
DcqlQueryApi createDcqlQuery POST /v1/configurations/{configurationId}/dcql-queries
DcqlQueryApi deleteDcqlQueryById DELETE /v1/configurations/{configurationId}/dcql-queries/{queryId}
DcqlQueryApi getDcqlQueryById GET /v1/configurations/{configurationId}/dcql-queries/{queryId}
DcqlQueryApi listDcqlQueries GET /v1/configurations/{configurationId}/dcql-queries
DcqlQueryApi updateDcqlQueryById PATCH /v1/configurations/{configurationId}/dcql-queries/{queryId}
DefaultApi listLoggedConsents GET /v1/logged-consents
IotaApi awsExchangeCredentials POST /v1/aws-exchange-credentials
IotaApi awsExchangeCredentialsProjectToken POST /v1/aws-exchange-credentials/project-token
IotaApi fetchIotaVpResponse POST /v1/fetch-iota-response
IotaApi initiateDataSharingRequest POST /v1/initiate-data-sharing-request
IotaApi iotaExchangeCredentials POST /v1/exchange-credentials
PexQueryApi createPexQuery POST /v1/configurations/{configurationId}/pex-queries
PexQueryApi deletePexQueries POST /v1/configurations/{configurationId}/delete-queries
PexQueryApi deletePexQueryById DELETE /v1/configurations/{configurationId}/pex-queries/{queryId}
PexQueryApi getPexQueryById GET /v1/configurations/{configurationId}/pex-queries/{queryId}
PexQueryApi listPexQueries GET /v1/configurations/{configurationId}/pex-queries
PexQueryApi savePexQueries POST /v1/configurations/{configurationId}/save-queries
PexQueryApi updatePexQueryById PATCH /v1/configurations/{configurationId}/pex-queries/{queryId}

Models

Authorization

Authentication schemes defined for the API:

AwsSigV4

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

ApiKey

  • Type: API key
  • API key parameter name: x-api-key
  • Location: HTTP header

bearerAuth

  • Type: Bearer authentication (JWT)

ConsumerTokenAuth

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

UserTokenAuth

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

ProjectTokenAuth

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

HeritageTokenAuth

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

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

Author

[email protected]

About this package

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

  • API version: 1.0.0
    • Generator version: 7.13.0
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen