getMusicCollectionByMusicChartId [1/2]
Retrieves the music resource list by music chart ID.
public String getMusicCollectionByMusicChartId(int musicChartId, int page, int pageSize)
After successfully calling this method, the SDK triggers the onMusicCollectionResult callback and returns detailed information about the music resources in the chart.
Parameters
- musicChartId
- The ID of the music chart. You can obtain it from the onMusicChartsResult callback.
Note: You can also use the RESTful API to get the complete song list or incremental song list of the music library.
- page
- The current page number, starting from 1 by default.
- pageSize
- The total number of pages in the current music resource list. The maximum value is 50.
Return Values
- On success, returns the unique identifier
requestIdfor the request. - On failure, returns an empty string.