utreon/cielo24-php

Cielo24 Web Services 平台 API 允许开发者在应用中轻松集成转录、字幕和关键词提取,无需使用手动网页门户。

dev-master 2022-07-07 08:40 UTC

This package is auto-updated.

Last update: 2024-09-07 13:46:49 UTC


README

Cielo24 Web Services 平台 API 允许开发者在应用中轻松集成转录、字幕和关键词提取,无需使用手动网页门户。

安装与使用

要求

PHP 7.4 及更高版本。也应适用于 PHP 8.0。

Composer

要通过 Composer 安装绑定,请运行以下命令

composer require utreon/cielo24-php 

手动安装

下载文件并包含 autoload.php

<?php
require_once('/path/to/cielo24/vendor/autoload.php');

入门

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

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



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


$apiInstance = new Cielo24\Api\AccountApi(
    // 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
);
$v = 1; // int

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

API 端点

所有 URI 都相对于 https://api.cielo24.com/api

模型

授权

ApiKeyAuth

  • 类型: API 密钥
  • API 密钥参数名: api_token
  • 位置: URL 查询字符串

测试

要运行测试,请使用

composer install
vendor/bin/phpunit

作者

devs@cielo24.com

关于此包

此 PHP 包是由 OpenAPI Generator 项目自动生成的

  • API 版本: 1.0.0
  • 构建包: org.openapitools.codegen.languages.PhpClientCodegen