Skip to content

Latest commit

 

History

History
67 lines (44 loc) · 1.73 KB

CountriesApi.md

File metadata and controls

67 lines (44 loc) · 1.73 KB

Uctoplus\API\CountriesApi

All URIs are relative to https://api.moje.uctoplus.sk/production, except if the operation defines another base path.

Method HTTP request Description
getCountries() GET /v2/dial/global/countries getCountries

getCountries()

getCountries(): \Uctoplus\API\Models\Country[]

getCountries

Return all Countries in Company.

Example

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


// Configure API key authorization: api-key
$config = Uctoplus\API\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Uctoplus\API\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');


$apiInstance = new Uctoplus\API\Api\CountriesApi(
    // 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->getCountries();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CountriesApi->getCountries: ', $e->getMessage(), PHP_EOL;
}

Parameters

This endpoint does not need any parameter.

Return type

\Uctoplus\API\Models\Country[]

Authorization

api-key

HTTP request headers

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

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