https://github.com/xeronowo/mihomo
A C# library for API wrapper data from https://api.mihomo.me/ 对 https://api.mihomo.me/ API的C#封装库
https://github.com/xeronowo/mihomo
mihomo mihomoapi starrail starrailapi
Last synced: 6 months ago
JSON representation
A C# library for API wrapper data from https://api.mihomo.me/ 对 https://api.mihomo.me/ API的C#封装库
- Host: GitHub
- URL: https://github.com/xeronowo/mihomo
- Owner: XeronOwO
- License: gpl-3.0
- Created: 2023-11-18T09:05:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-16T07:55:32.000Z (over 1 year ago)
- Last Synced: 2024-11-17T04:14:12.844Z (7 months ago)
- Topics: mihomo, mihomoapi, starrail, starrailapi
- Language: C#
- Homepage:
- Size: 42 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# MiHoMo
## Introduction / 简介
A C# library for API wrapper data from https://api.mihomo.me/
对 https://api.mihomo.me/ API的C#封装库
## Installation / 安装
Download .nupkg from Releases.
Or install from NuGet by searching MiHoMo.
从 Releases 中下载 .nupkg 文件。
或者在 NuGet 搜索 MiHoMo 安装。
## Usage / 使用方法
```csharp
using MiHoMo;namespace Test
{
internal class Program
{
static void Main(string[] args)
{
TestAsync().Wait();
}private static async Task TestAsync()
{
using var api = new MiHoMoAPI(); // Create MiHoMo API
await api.InitAllResourcesAsync(); // Initialize all resources
// var originInfo = await api.GetOriginInfoAsync(100000000);
var parsedInfo = await api.GetParsedInfoAsync(100000000); // Get parsed info by UID// TODO ...
}
}
}
```