Versions Compared

Key

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

...

HTTPGET, HEAD
AuthenticationBasic
<type>

Type audio information . For mp3with response HTTP 206. Audio is default mp3, 320 kbps, 1 channel. samplerate 44100Hz.

For wave: prefix <type> with ".mp3 wav"(<type>.mp3wav). The response is HTTP 206. 

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 mp3wav: can be combined as follow example:

/api/getaudio/<type>_username_password.wav

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


ResponseReturns HTTP 200 and binary data. Data is audio formatted WAV or MP3. If PLS, then textfile returns.

...