jihao/douban.fm — pull request #1 by honnix (2013-01-19 07:32:17+00:00)
Title: show how to use interaction

* if "-m -i" is provided, a web server will start listening on 3000 by default, and you may
* GET /channels to get all available channels
* GET /now to get current playing channel
* GET /channel/ to switch to channel of the specified id

What I need is a web page which is just a static page plus js ajax call. After page loaded, make ajax call to /channels to get a channel list and make ajax call to /now to get current playing channel, and show this info on page. If I click on certain channel, send ajax call to /channel, then channel will be switched.

BTW, better optimized for mobile browser because most of the case I would not use a computer to do this.

Anyway, if you have time, please help me on this.

Thanks a lot.