Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

Boss-Software/oocradio-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

image

oocradio-wrapper

An API wrapper for oocradio.com because I was bored...

Examples

Getting Setup

const OOCRadio = require('./index.js')

const oocradio = new OOCRadio({ version: '1.1' }) // Takes in the version of the api you want to use 

Get Current Song

oocradio.getCurrentSong().then(data => console.log(data))
Returns
{
    "status": string,
    "response": {
        "Artist": string,
        "Title": string,
        "Cover": string/url,
    }
}

Get Next Live

oocradio.nextLive().then(data => console.log(data))
Returns
{
    "status": string,
    "response": {
      "Name": string,
      "Show_Name": string,
      "Date": number,
      "Artwork": string/url,
      "Exists": boolean,
    }
}

Get Live Data

oocradio.getLiveData().then(data => console.log(data))
Returns
{
    "status": string,
    "response": {
      "Artist": string,
      "Title": string,
      "Cover": string/url,
      "OnAir_Name": string,
      "OnAir_Artwork": string/url,
      "Spotify_URL": string/url,
    }
}

Credits

  • @Hyperz Writing this extremely simple wrapper.
  • @Shawn E. Rewriting to change to a constructor

About

An API wrapper for oocradio.com because I was bored...

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors