Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

HTTPGET, HEAD
AuthenticationBasic
<type>

Return audio filedata of or type bulletin. Audio is default mp3, 320 kbps, 1 channel. samplerate 44100Hzsample rate 44100 Hz.

For wave: prefix <type> with ".wav"(<type>.wav). 

For pls: prefix <type> with ".pls". Response is a playlist with one item.

For an authentication alternative: merge username and password with <type>,  separated with underscores.  Ie. <type>_<username>_<password>. This skips HTTP 401. 

If wav: can be combined as follow example:

/api/getaudio/<type>_username_password.wav

For changing bitrate, use parameter bitrate:
/api/getaudio/<type>_username_password?bitrate=<bitrate>
Possible values: 64, 128, 256 or 320.

Invalid parameter requests will be responded with http 400.

Multiple requests for the same type audio between15 seconds after the first request, will be responded with http 425.




ResponseReturns HTTP 206 with binary data.  If pls, textfile will be return.