upbeatradio
Version:
Easily interact with UpBeatRadio.net API
48 lines (35 loc) • 1.39 kB
Markdown
[](https://github.com/marinofranz/upbeatradio)
[](https://github.com/marinofranz/upbeatradio)
[](https://github.com/marinofranz/upbeatradio)
<p align="center">
<img src="https://images-ext-1.discordapp.net/external/o6Pk_1M2ATFpHyAuRz5Y4t7AslOA4g_e52ICZpApsUs/https/upbeatradio.net/Desktop.png?width=1032&height=581" alt="banner">
<h2 align="center">UpBeatRadio</h2>
<p align="center">Typescript Library</p>
</p>
# 📦 How to install
- With Yarn: `yarn add upbeatradio`
- With NPM: `npm i upbeatradio`
# 📁 Example Usage
```js
const UpBeat = require("upbeatradio");
const Client = new UpBeat.UpBeatClient();
Client.getStats().then(({ data }) => {
console.log(data);
});
```
# 📄 Documenation
`.UpBeatClient`
<br>
The UpBeat client containing all functions (initialize the constructor to access functions)
<br>
`Client.getStats()`
<br>
Gets current metadata
<br>
`Client.getRecentlyPlayed()`
<br>
Gets recently played songs
<br>
`Client.getBooked()`
<br>
Gets booked slots