PHP code example of itisbean / php-joox-api

1. Go to this page and download the library: Download itisbean/php-joox-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

itisbean / php-joox-api example snippets


composer 

// 引入autoload.php(框架中使用不需要)

/**
 * 获取歌手信息
 * @param string $singerId
 * @return array
 */
public function getSingerInfo($singerId);

/**
 * 获取歌手专辑
 * @param string $singerId
 * @param integer $page
 * @param integer $pageSize 最多50
 * @return array
 */
public function getSingerAlbums($singerId, $page = 1, $pageSize = 50);

/**
 * 获取专辑歌曲
 * @param string $albumId
 * @return array
 */
public function getAlbumSongs($albumId, $index = 0, &$data = []);

/**
 * 获取歌手歌曲
 * @param string $singerId
 * @param integer $page
 * @param integer $pageSize
 * @return array
 */
public function getSingerSongs($singerId, $page = 1, $pageSize = 50);

/**
 * 获取歌曲信息
 * @param string $songId
 * @return array
 */
public function getSongInfo($songId);

/**
 * 获取榜单歌曲
 * @param string $rankId
 * @return array
 */
public function getChartSongs($rankId, $index = 0, &$data = []);

/**
 * 获取歌手排行榜数据
 * @param string $singerId
 * @return array
 */
public function getSingersRankInfo($singerId);