Skip to content

Latest commit

 

History

History
171 lines (111 loc) · 4.23 KB

CertificateServiceApi.md

File metadata and controls

171 lines (111 loc) · 4.23 KB

OpenAPI\Client\CertificateServiceApi

All URIs are relative to http://api.madana.io/rest.

Method HTTP request Description
authenticateCertificate() POST /certificates Issues certificates for logged-in users.
getCertificateByFingerprint() GET /certificates/{fingerprint}
getRootCertificate() GET /certificates/root

authenticateCertificate()

authenticateCertificate($body): \OpenAPI\Client\Model\JsonMDNCertificate

Issues certificates for logged-in users.

Issues certificates for logged-in users

Example

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



$apiInstance = new OpenAPI\Client\Api\CertificateServiceApi(
    // 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()
);
$body = new \OpenAPI\Client\Model\JsonMDNData(); // \OpenAPI\Client\Model\JsonMDNData

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

Parameters

Name Type Description Notes
body \OpenAPI\Client\Model\JsonMDNData [optional]

Return type

\OpenAPI\Client\Model\JsonMDNCertificate

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getCertificateByFingerprint()

getCertificateByFingerprint($fingerprint): \SplFileObject

Example

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



$apiInstance = new OpenAPI\Client\Api\CertificateServiceApi(
    // 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()
);
$fingerprint = 'fingerprint_example'; // string

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

Parameters

Name Type Description Notes
fingerprint string

Return type

\SplFileObject

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getRootCertificate()

getRootCertificate(): \SplFileObject

Example

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



$apiInstance = new OpenAPI\Client\Api\CertificateServiceApi(
    // 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()
);

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

Parameters

This endpoint does not need any parameter.

Return type

\SplFileObject

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]