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($body): \OpenAPI\Client\Model\JsonMDNCertificate
Issues certificates for logged-in users.
Issues certificates for logged-in users
<?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;
}
Name | Type | Description | Notes |
---|---|---|---|
body | \OpenAPI\Client\Model\JsonMDNData | [optional] |
\OpenAPI\Client\Model\JsonMDNCertificate
No authorization required
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getCertificateByFingerprint($fingerprint): \SplFileObject
<?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;
}
Name | Type | Description | Notes |
---|---|---|---|
fingerprint | string |
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getRootCertificate(): \SplFileObject
<?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;
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]