Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 1.81 KB

SettingsApi.md

File metadata and controls

65 lines (43 loc) · 1.81 KB

Savvii\OpenproviderRest\SettingsApi

All URIs are relative to https://api.openprovider.eu, except if the operation defines another base path.

Method HTTP request Description
getSettings() GET /v1beta/resellers/settings Get settings

getSettings()

getSettings(): \Savvii\OpenproviderRest\Model\SettingsGetSettingsResponse

Get settings

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\SettingsApi(
    // 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
);

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

Parameters

This endpoint does not need any parameter.

Return type

\Savvii\OpenproviderRest\Model\SettingsGetSettingsResponse

Authorization

Bearer

HTTP request headers

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

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