All URIs are relative to https://api.openprovider.eu, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
createCsr() | POST /v1beta/ssl/csr | Create csr |
decodeCsr() | POST /v1beta/ssl/csr/decode | Decode csr |
createCsr($body): \Savvii\OpenproviderRest\Model\CsrCreateCsrResponse
Create csr
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Bearer
$config = Savvii\OpenproviderRest\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Savvii\OpenproviderRest\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Savvii\OpenproviderRest\Api\CsrApi(
// 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(),
$config
);
$body = new \Savvii\OpenproviderRest\Model\CsrCreateCsrRequest(); // \Savvii\OpenproviderRest\Model\CsrCreateCsrRequest
try {
$result = $apiInstance->createCsr($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CsrApi->createCsr: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
body | \Savvii\OpenproviderRest\Model\CsrCreateCsrRequest |
\Savvii\OpenproviderRest\Model\CsrCreateCsrResponse
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
decodeCsr($body): \Savvii\OpenproviderRest\Model\CsrDecodeCsrResponse
Decode csr
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Bearer
$config = Savvii\OpenproviderRest\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Savvii\OpenproviderRest\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Savvii\OpenproviderRest\Api\CsrApi(
// 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(),
$config
);
$body = new \Savvii\OpenproviderRest\Model\CsrDecodeCsrRequest(); // \Savvii\OpenproviderRest\Model\CsrDecodeCsrRequest
try {
$result = $apiInstance->decodeCsr($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CsrApi->decodeCsr: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
body | \Savvii\OpenproviderRest\Model\CsrDecodeCsrRequest |
\Savvii\OpenproviderRest\Model\CsrDecodeCsrResponse
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]