#api-client #open-api #japanese #tv #generator #generated #mirakurun

mirakurun_client

Mirakurun 的 Rust 客户端库

9 个版本

3.9.0-rc.2.42023 年 3 月 21 日
3.9.0-rc.2.32023 年 3 月 19 日
3.9.0-rc.2.22023 年 1 月 28 日
3.9.0-rc.2.12022 年 11 月 12 日
0.1.0 2021 年 10 月 25 日

2259网页编程

每月 50 次下载

Apache-2.0

135KB
2.5K SLoC

mirakurun_client 的 Rust API 客户端

日本电视的 DVR 调谐器服务器。

更多信息,请访问 https://chinachu.moe/

概述

此 API 客户端由 OpenAPI Generator 项目生成。通过使用远程服务器上的 openapi-spec,您可以轻松生成 API 客户端。

  • API 版本:3.9.0-rc.2
  • 包版本:3.9.0-rc.2
  • 构建包:org.openapitools.codegen.languages.RustClientCodegen

安装

将包放在名为 mirakurun_client 的目录下,并在 Cargo.toml 中的 [dependencies] 下添加以下内容

mirakurun_client = { path = "./mirakurun_client" }

API 端点文档

所有 URI 都相对于 https://127.0.0.1:40772/api

方法 HTTP 请求 描述
ChannelsApi get_channel GET /channels/{type}/{channel}
ChannelsApi get_channel_stream GET /channels/{type}/{channel}/stream
ChannelsApi get_channels GET /channels
ChannelsApi get_channels_by_type GET /channels/{type}
ChannelsApi get_service_by_channel GET /channels/{type}/{channel}/services/{id}
ChannelsApi get_service_stream_by_channel GET /channels/{type}/{channel}/services/{id}/stream
ChannelsApi get_services_by_channel GET /channels/{type}/{channel}/services
ConfigApi channel_scan PUT /config/channels/scan 频道扫描
ConfigApi get_channels_config GET /config/channels
ConfigApi get_server_config GET /config/server
ConfigApi get_tuners_config GET /config/tuners
ConfigApi update_channels_config PUT /config/channels
ConfigApi update_server_config PUT /config/server
ConfigApi update_tuners_config PUT /config/tuners
EventsApi get_events GET /events
EventsApi get_events_stream GET /events/stream
IptvApi iptv_discover_json_get GET /iptv/discover.json IPTV - 媒体服务器支持
IptvApi iptv_lineup_json_get GET /iptv/lineup.json IPTV - 媒体服务器支持
IptvApi iptv_lineup_status_json_get GET /iptv/lineup_status.json IPTV - 媒体服务器支持
IptvApi iptv_playlist_get GET /iptv/playlist IPTV - M3U播放列表
IptvApi iptv_xmltv_get GET /iptv/xmltv IPTV - XMLTV EPG数据
LogApi get_log GET /log
LogApi get_log_stream GET /log/stream
MiscApi restart PUT /restart 重启Mirakurun
ProgramsApi get_program GET /programs/{id}
ProgramsApi get_program_stream GET /programs/{id}/stream
ProgramsApi get_programs GET /programs
ServicesApi get_logo_image GET /services/{id}/logo
ServicesApi get_service GET /services/{id}
ServicesApi get_service_by_channel GET /channels/{type}/{channel}/services/{id}
ServicesApi get_service_stream GET /services/{id}/stream
ServicesApi get_service_stream_by_channel GET /channels/{type}/{channel}/services/{id}/stream
ServicesApi get_services GET /services
ServicesApi get_services_by_channel GET /channels/{type}/{channel}/services
StatusApi get_status GET /status 获取状态
StreamApi get_channel_stream GET /channels/{type}/{channel}/stream
StreamApi get_events_stream GET /events/stream
StreamApi get_log_stream GET /log/stream
StreamApi get_program_stream GET /programs/{id}/stream
StreamApi get_service_stream GET /services/{id}/stream
StreamApi get_service_stream_by_channel GET /channels/{type}/{channel}/services/{id}/stream
TunersApi get_tuner GET /tuners/{index}
TunersApi get_tuner_process GET /tuners/{index}/process 获取调谐器进程信息
TunersApi get_tuners GET /tuners
TunersApi kill_tuner_process DELETE /tuners/{index}/process 终止调谐器进程
VersionApi check_version GET /version
VersionApi update_version PUT /version/update

模型文档

要获取生成文档的访问权限,请使用

cargo doc --open

作者

maleicacid (kazukuro0824+dev@gmailDOTcom)

依赖

~5–20MB
~265K SLoC