atomicradio
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

atomicradio

Node AtomicRadio 📚

The node.js library for the atomicradio web-api.

Gitmoji

Installation 🔧

npm install atomicradio

Example 📄

import AtomicAPI from "atomicradio";

const api = new AtomicAPI();

async function test() {
    let value = await api.getChannel("one").getHistory();
    console.log(value);
}
test();

Functions 📗

/**
 * Get the data of our livestream.
 */
.getLive().isLive();

.getLive().getStreamer();


/**
 * Get the data of a atomicradio channel.
 * @param channel channel name
 */
.getChannel(channel).getSong().getArtist();

.getChannel(channel).getSong().getTitle();

.getChannel(channel).getSong().getPlaylist();

.getChannel(channel).getSong().getStartTimestamp();

.getChannel(channel).getSong().getEndTimestamp();

.getChannel(channel).getSong().getDuration();

.getChannel(channel).getSong().get100Artwork();

.getChannel(channel).getSong().get250Artwork();

.getChannel(channel).getSong().get500Artwork();

.getChannel(channel).getSong().get1000Artwork();


/**
 * Get the data of the next playing songs
 * @param channel channel name
 */
.getChannel(channel).getSchedule();


/**
 * Get the data of the last played songs
 * @param channel channel name
 */
.getChannel(channel).getHistory();


/**
 * Get all stream urls of atomicradio
 * @param channel channel name
 */
.getChannel(channel).getStreamUrls().getHighQuality();

.getChannel(channel).getStreamUrls().getMiddleQuality();

.getChannel(channel).getStreamUrls().getLowQuality();

Install

npm i atomicradio

DownloadsWeekly Downloads

3

Version

1.1.3

License

none

Unpacked Size

24.9 kB

Total Files

11

Last publish

Collaborators

  • kacper.mura