1.1.3 • Published 3 years ago

atomicradio v1.1.3

Weekly downloads
162
License
-
Repository
github
Last release
3 years ago

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

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago