Skip to content

Instantly share code, notes, and snippets.

@suziewong suziewong/feelapi.md
Last active Dec 30, 2017

Embed
What would you like to do?
feel接口

feel电台-前端接口

1.获取网站基本信息[pathinfo调用]

http://feel.zjut.in/index.php/Api/basic

或者使用普通方式

http://feel.zjut.in/index.php?m=Api&a=basic

2.获取主播信息

获取所有主播信息
http://feel.zjut.in/index.php/Api/dj

获取主播id为15的主播信息
http://feel.zjut.in/index.php/Api/dj?djid=15

3.获取节目信息

获取当前所有默认节目即classid=2的
http://feel.zjut.in/index.php/Api/content

获取往期节目
http://feel.zjut.in/index.php/Api/content?classid=0
http://feel.zjut.in/index.php/Api/content?classid=0

获取节目id为19的节目
http://feel.zjut.in/index.php/Api/content?contentid=19

获取栏目id为3(十佳歌手)中的所有节目
http://feel.zjut.in/index.php/Api/content?classid=3

4.获取主播生活照

http://feel.zjut.in/index.php/Api/get_life?djid=15

5.给网站提建议

http://feel.zjut.in/index.php/Api/suggest

这个是*post*的
需要传的参数有suggest,email 和name 
例子:
var processFile ='index.php/Api/suggest';
$.ajax({
       type : "POST",
       url: processFile,
       data: "suggest=222&name=酥西黄&email=suzie@admin.com",
       success: function(data){
          alert(data);
       }
});

6.给Dj评论

http://feel.zjut.in/index.php/Api/comment

这个是*post*的
需要传的参数有comment 和djid
例子:
var processFile ='index.php/Api/comment';
$.ajax({
       type : "POST",
       url: processFile,
       data: "djid=22&comment=good",
       success: function(data){
          alert(data);
       }
});

获取直播信息

http://feel2.zjut.com/index.php/Api/live
http://feel2.zjut.com/index.php?m=Api&a=live
@westion717

This comment has been minimized.

Copy link

commented May 5, 2013

ThinkPHP做的吧?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.