scoresaber-api-client
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

ScoreSaber API Client

https://new.scoresaber.com/api/

Compile TypeScript

npx tsc

Full Player Info

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);

Top/Recent Scores

const api: ScoreSaberApi = new ScoreSaberApi();

api
    .getScores('76561198098563481', ScoreOrder.TOP, 1)
    .then((scoreReply: ScoreReply) => {
        const scores: Score[] = scoreReply.scores;

        // do something
    })
    .catch(console.error);

Readme

Keywords

none

Package Sidebar

Install

npm i scoresaber-api-client

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

22.5 kB

Total Files

10

Last publish

Collaborators

  • wwisser