Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brucezhang1993/douban-fm
douban fm class for php version 1.0 testing
https://github.com/brucezhang1993/douban-fm
Last synced: about 1 month ago
JSON representation
douban fm class for php version 1.0 testing
- Host: GitHub
- URL: https://github.com/brucezhang1993/douban-fm
- Owner: BruceZhang1993
- License: gpl-2.0
- Created: 2015-02-24T06:46:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-02-27T04:13:26.000Z (over 9 years ago)
- Last Synced: 2024-10-04T13:49:13.260Z (about 1 month ago)
- Language: PHP
- Size: 191 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Douban FM Class For PHP
-----------------------
######Require php-curl
Author: BruceZhang1993
Version: 1.0
License: GPL V2=====================================
Function Description:get_channels
获得固定的可用频道信息
login
豆瓣FM登录函数
like
给指定歌曲加红心函数
dislike
给指定歌曲取消红心函数
get_album_info
获取专辑信息函数
get_list
获得某频道歌曲列表----------------------------
####Documentation===========================
Function Reference:get_channels
parameters: none
returns: array or false(if connection failed)
returns example:
array (size=55)
0 =>
array (size=5)
'name_en' => string 'Personal Radio' (length=14)
'seq_id' => int 0
'abbr_en' => string 'My' (length=2)
'name' => string '私人兆赫' (length=12)
'channel_id' => int 0
1 =>
array (size=5)
'name' => string '华语' (length=6)
'seq_id' => int 0
'abbr_en' => string '' (length=0)
'channel_id' => string '1' (length=1)
'name_en' => string '' (length=0)
2 =>
array (size=5)
'name' => string '欧美' (length=6)
'seq_id' => int 1
'abbr_en' => string '' (length=0)
'channel_id' => string '2' (length=1)
'name_en' => string '' (length=0)
.
.
.