https://new.scoresaber.com/api/
npx tsc
const api: ScoreSaberApi = new ScoreSaberApi();
api
.getPlayer('76561198098563481')
.then((player: Player) => {
const playerInfo: PlayerInfo = player.playerInfo;
const stats: ScoreStats = player.scoreStats;
// do something
})
.catch(console.error);
const api: ScoreSaberApi = new ScoreSaberApi();
api
.getScores('76561198098563481', ScoreOrder.TOP, 1)
.then((scoreReply: ScoreReply) => {
const scores: Score[] = scoreReply.scores;
// do something
})
.catch(console.error);