2.1.4 • Published 2 years ago

beatsaver-api v2.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

beatsaver-api - A BeatSaver API Wrapper

Installation

npm install beatsaver-api

Example Usage

const BeatSaverAPI = require('beatsaver-api');

const api = new BeatSaverAPI({
    AppName: 'Application Name',
    Version: '1.0.0'
});

api.getMapByID('ID').then(map => {}).catch(err => {});
api.getMapByHash('hash').then(map => {}).catch(err => {});
api.getMapsByUploader(userID, page?).then(searchResult => {}).catch(err => {});
api.getLatestMaps(automapper, before?).then(searchResult => {}).catch(err => {});

api.searchMaps(searchOptions, page?).then(searchResult => {}).catch(err => {});

You need to make sure that the App Version on the BeatSaverAPI constructor is valid SemVer

Important Notes

  • While using this library with Node.js, all requests made to BeatSaver are made with the User-Agent AppName/Version (so, in the example case, the User-Agent sent to BeatSaver will be Application Name/1.0.0). However, if you're using this library on a browser, the requests will use your browser's User-Agent.

Help

If you need help using this module or if you found an error with it, you can always contact me on my Discord Server

2.1.2

2 years ago

2.1.1

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.0

2 years ago

2.0.4

2 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago