pluxbox/radiomanager-php-client

Pluxbox RadioManager 提供您一直想要的强大、灵活和快速的网络电台解决方案。使用 Pluxbox RadioManager,您可以组织您的电台工作流程并自动化与听众的多渠道通信。我们提供广泛的专门服务,包括电台和连接,如混合电台、视觉电台、您的网站和社交媒体,而不会失去对广播的关注。更多信息请访问:pluxbox.com

1.1.12 2019-11-20 12:35 UTC

This package is not auto-updated.

Last update: 2024-09-29 05:07:31 UTC


README

Pluxbox RadioManager 提供您一直想要的强大、灵活和快速的网络电台解决方案。使用 Pluxbox RadioManager,您可以组织您的电台工作流程并自动化与听众的多渠道通信。我们提供广泛的专门服务,包括电台和连接,如混合电台、视觉电台、您的网站和社交媒体,而不会失去对广播的关注。更多信息请访问:pluxbox.com

  • API 版本:2.0
  • 构建包:io.swagger.codegen.languages.PhpClientCodegen 更多信息,请访问 https://pluxbox.com

要求

PHP 5.5 及以上

安装与使用

Composer

要使用 Composer 安装绑定,请将以下内容添加到 composer.json

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/pluxbox/GIT_REPO_ID.git"
    }
  ],
  "require": {
    "pluxbox/GIT_REPO_ID": "*@dev"
  }
}

然后运行 composer install

手动安装

下载文件并包含 autoload.php

    require_once('/path/to/RadioManager/vendor/autoload.php');

测试

要运行单元测试

composer install
./vendor/bin/phpunit

入门

请遵循 安装过程,然后运行以下命令

<?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\BlockApi(
    // 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
);
$id = 789; // int | ID of Block **(Required)**
$_external_station_id = 789; // int | Query on a different (content providing) station *(Optional)*

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

?>

API 端点文档

所有 URI 都相对于 https://radiomanager.io/api/v2

模型文档

授权文档

API密钥

  • 类型: API密钥
  • API密钥参数名: api-key
  • 位置: HTTP头

作者

support@pluxbox.com