2015-08-27 30 views
0

如何在Deezer iOS SDK上播放頂級歌手歌曲?用Deezer播放頂級藝人歌曲ios sdk

我通過這種方式得到了DZRArtist對象。

 [DZRArtist objectWithIdentifier:@"469353" 
          requestManager:self.manager 
           callback:^(DZRArtist *artist, NSError *error) { 


           }]; 

的DZRArtist對象是:

enter image description here

回答

1

我從來沒有使用過的Deezer SDK之前,但我做了我的搜索,發現你可以從你的URL藝術家ID,然後把它https://api.deezer.com/artist/ {ARTIST ID } /頂?極限= 50 &輸出= XML

NSString *artistID //get your ID 
NSString *songsURL = [NSString stringWithFormat:@"https://api.deezer.com/artist/%@/top?limit=50",artistID]; 

現在你有你的網址,你只需要讓你的要求:)