Skip to content

Latest commit

 

History

History
129 lines (88 loc) · 3.87 KB

CsrApi.md

File metadata and controls

129 lines (88 loc) · 3.87 KB

Savvii\OpenproviderRest\CsrApi

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()

createCsr($body): \Savvii\OpenproviderRest\Model\CsrCreateCsrResponse

Create csr

Example

<?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;
}

Parameters

Name Type Description Notes
body \Savvii\OpenproviderRest\Model\CsrCreateCsrRequest

Return type

\Savvii\OpenproviderRest\Model\CsrCreateCsrResponse

Authorization

Bearer

HTTP request headers

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

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

decodeCsr()

decodeCsr($body): \Savvii\OpenproviderRest\Model\CsrDecodeCsrResponse

Decode csr

Example

<?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;
}

Parameters

Name Type Description Notes
body \Savvii\OpenproviderRest\Model\CsrDecodeCsrRequest

Return type

\Savvii\OpenproviderRest\Model\CsrDecodeCsrResponse

Authorization

Bearer

HTTP request headers

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

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