我wan't通过tinysong API从Grooveshark抓住它,我通过$.ajax
做,到目前为止我得的歌曲列表的歌曲获得此:
从tinysong
$.ajax({
url : 'http://tinysong.com/s/Beethoven?format=json&key='+key,
type : 'get',
dataType : 'jsonp',
succes : function(response){
console.log(response);
$('.content').append(response);
},
error: function(error){
console.warn('ERROR');
console.warn(error);
}
});
凡key
这是他们分配给我的API密钥。我收到以下错误:
资源解释为脚本,但使用MIME类型text/html转:“http://tinysong.com/s/Beethoven?format=json &键= HERE_IS_MY_KEY &回调= jQuery172021696692402474582_1344209008518 & _ = 1344209008523“。
但是如果我去那个网址我得到打印出来,像这样的结果:
[{ “URL”: “http://tinysong.com/Aoxo”,“SongID “:25802452,”SongName“:”A大调第七交响曲,作品92:Allegretto“,”ArtistID“:1833,”ArtistName“:”贝多芬“,”AlbumID“:4497124,”AlbumName“:” :9 Symphonien,Ouvertupecren(1 of 6),Berstein,Leonard“},{”Url“:”http://tinysong.com/jh4X“,”SongID“:2909282,”SongName“:”钢琴协奏曲No 。“E”中的5个主要作品。73'Emperor'“,”ArtistID“:1833,”ArtistName“:”贝多芬“,”AlbumID“:268605,”AlbumName“:”贝多芬最佳“},{” :“http://tinysong.com/JhLy”,“SongID”:31825464,“SongName”:“Beethoven:Pi安娜奏鸣曲#23 F小调,作品。 57,“Appassionata \”“,”ArtistID“:1833,”ArtistName“:”贝多芬“,”AlbumID“:4913792,”AlbumName“:”贝多芬的最精彩的歌曲“},{”Url“:”http:// tinysong.com/6Jk1","SongID":4925300,"SongName":"Beethoven#4:Adagio“,”ArtistID“:1833,”ArtistName“:”Beethoven“,”AlbumID“:842118,”AlbumName“:”贝多芬:交响乐第7号& 4“},{”Url“:”http://tinysong.com/gGW0“,”SongID“:11896153,”SongName“:”F \ u00fcr Elise“,”ArtistID“:1833 “ARTISTNAME”: “贝多芬”, “ALBUMID”:2087629 “ALBUMNAME”: “贝多芬与海”}]
我怎样才能传递给我的javascript此信息