radioco-api
v1.0.0
Published
An API wrapper for radio.co
Downloads
4
Readme
Radio.co API Wrapper
A very simple Radio.co API wrapper, for Node.js and Deno.
- Documentation: https://deno.land/x/radioco_api/mod.ts
Usage
Npm
npm install radioco-api
Example
import RadioCo from "radioco-api"; // NPM
import RadioCo from "https://deno.land/x/radioco_api/mod.ts"; // Deno
const radioCo = new RadioCo();
const STATION_ID = "YOUR_STATION_ID";
const status = await radioCo.getStationStatus(STATION_ID);
const tracks = await radioCo.getRequestableTracks(STATION_ID);
const history = await radioCo.getStationHistory(STATION_ID);
const nextTrack = await radioCo.getNextTrack(STATION_ID);
const requestableTracks = await radioCo.getRequestableTracks(STATION_ID);
const schedule = await radioCo.getStationSchedule(STATION_ID);