2.1.1
Gets the boolean value if the server is running or not
Promise<string>
:
true = running
Gets the status object of the server
Promise<object>
:
server status object {running:boolean, message:string}
Gets the time from the server
Promise<string>
:
time as string
Gets unique array of all first letters of stations
Promise<array>
:
first letters of all stations
Determines if any stations starts with a certain letter
(string)
letter to test
Promise<boolean>
:
if a station begins with the given letter
Get all genres available
Promise<array>
:
all genres
Gets raw object of all genres
Promise<array>
:
array of genre objects {name:string, score:number, related:
[string,...]
}
Gets raw genres objects related to another genre
(string)
an existing genre
Promise<array>
:
array of raw related genres objects {name:string, score:number, related:
[string, ...]
}
Gets all station names
Promise<array>
:
all station names
Indicates if a station exists
(string)
station to test
Promise<boolean>
:
if station tested exists
Gets total number of listeners
Promise<number>
:
number of current listeners
Gets listeners for a particular station
(string)
station to get listeners for
Promise<number>
:
number of listeners for station
Get raw objects of all stations broadcasting live
Promise<array>
:
array of station objects broadcasting live
Get names of all stations broadcasting live
Promise<array>
:
all stations broadcasting live
Determine if a station is currently broadcasting live
(string)
station to test
Promise<boolean>
:
if station is broadcasting live
Indicate how many stations are broadcasting live
Promise<number>
:
number of stations broadcasting live
Gets all Stations
(object
= {}
)
{limit:number, offset:number, lat:number, long:number}
Promise<array>
:
an array of station objects
Get stations beginning with a certain letter or number
(object
= {}
)
{limit:number, offset:number, lat:number, long:number}
Promise<array>
:
array of station objects
Gets information for specific stations
Promise<array>
:
array of station objects
Get all stations of a particular genre
(string)
genre to search for
(object
= {}
)
{limit:number, offset:number, lat:number, long:number}
Promise<array>
:
array of station objects
Search (?-mix:\A\/station\/([\w\d_-]+)\/images\/([\w\d_-]+)\Z)
Song Change JSON Stream /song_change.stream.json
Song Change WebSocket /song_change.ws.json
Song Change Chunks (last 50) /song_change.chunk.json {Song, ...}
Teaser /teaser [{headline: String, schedule:[], link:String, img_l: String, img_m: String, img_s: String}, ...]
Class representing a specific station
(any)
The twitter name associated with the station
string
:
twitter handle
Object containing associated images to a station
object
:
image size key, image url value
Object containing information about the currently playing playlist
object
:
current playlist