1 个不稳定版本
| 0.1.0 | 2023年7月19日 | 
|---|
#177 在 #spec
27KB
580 行
PaperMC 客户端,由 OpenAPI 规范生成。
用法
use papermc::PaperMcClient;
use papermc::model::*;
#[tokio::main]
async fn main() {
    let client = PaperMcClient::from_env();
    let response = client.projects().await.unwrap();
    println!("{:#?}", response);
}
此示例从环境变量中加载配置,具体为
安装
将以下内容添加到您的 Cargo.toml
[dependencies]
papermc = "0.1.0"
文档
您可以在 examples/ 目录中看到每个 API 调用的示例。
贡献
欢迎贡献!
使用 Libninja 创建的库。
依赖项
~10–24MB
~408K SLoC