Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.67 KB

StationApi.md

File metadata and controls

60 lines (41 loc) · 1.67 KB

RadioManager\StationApi

All URIs are relative to https://radiomanager.io/api/v2

Method HTTP request Description
getStation GET /station Get own station only

getStation

\RadioManager\Model\StationResult getStation()

Get own station only

Get own station only

Example

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

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

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

Parameters

This endpoint does not need any parameter.

Return type

\RadioManager\Model\StationResult

Authorization

[API Key](../../README.md#API Key)

HTTP request headers

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

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