Skip to content

Arcaea-Infinity/UnofficialArcaeaAPI.Lib

Repository files navigation

UnofficialArcaeaAPI.Lib

NuGet

A wrapper for UnofficialArcaeaAPI with C#.

Install

dotnet add package UnofficialArcaeaAPI.Lib

Usage

using UnofficialArcaeaAPI.Lib;
using UnofficialArcaeaAPI.Lib.Models;

var client = new UaaClient(new UaaClientOptions
{
    ApiUrl = "<API Url>",
    Token = "<Bearer Token>",
    
    // Or if you want
    UserAgent = "<Custom User-Agent>"
});

// Query bests session of Nagiha0798
var best30 = await client.User.GetBestsSessionAsync("Nagiha0798");

// Query songinfo of #1f1e33
var songinfo = await client.Song.GetInfoAsync("ifi", UaaSongQueryType.SongId);

Console.WriteLine(songinfo.SongId);
Console.WriteLine(songinfo.Difficulties[2].NameEn);

Supported endpoints

License

This project is under 616SB License.