Skip to content

Latest commit

 

History

History
51 lines (44 loc) · 1.52 KB

README.md

File metadata and controls

51 lines (44 loc) · 1.52 KB

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.