Skip to content

Art1xFX/osu-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

osu-api

osu!api - C# cross-platform library for using osu!api with intagrated JsonTextReader class of Newtonsoft.Json project.

Using

You can create an instance of Osu.Api class

var osuApi = new Osu.Api("your api key");

or use static methods.

GetBeatmapsAsync (/api/get_beatmaps)

var beatmaps = await osuApi.GetBeatmapsAsync();

or

var beatmaps = await Osu.Api.GetBeatmapsAsync("your api key");

GetUserAsync (/api/get_user)

Parameter "u" can be string (username)

var user = await osuApi.GetUserAsync("Taazar");

or long (user_id).

var user = await osuApi.GetUserAsync("6613346");

GetScoresAsync (/api/get_scores)

Parameter "b" - a beatmap_id (NOT beatmapset_id).

var scores = await osuApi.GetScoresAsync(736215);

GetUserBestAsync (/api/get_user_best)

var userBest = await osuApi.GetUserBestAsync(124493);

GetUserRecentAsync (/api/get_user_recent)

var userRecent = await osuApi.GetUserRecentAsync(50265);

GetMatchAsync (/api/get_match)

int mp;
var match = await osuApi.GetMatchAsync(mp);

where "mp" - id of the match.

About

Cross-platform C# library for osu!api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages