0
我想获得一位艺术家的形象/肖像。但是,使用Artist.fromURI()将返回一个艺术家对象,但不包含肖像。我看了一些其他的帖子在计算器上使用,其中有人建议:我如何获得Spotify艺术家图片/肖像?
sp.core.browseURI()
因为fromURI只检索性能方面的原因的基本信息。然而,最近spotify已经表明,我们不再允许使用sp.core调用。那么有什么选择?
这实际上是我使用的是什么:
models.Artist.fromURI(uri, function(artist) {
// this is called when artist is loaded but the following shows blank even
// when the artist has an image
console.log(artist.data.portrait);
});
我仍然没有看到艺术家的任何图像,即使是我知道的艺术家肯定有图像(因为spotify艺术家页面显示这位艺术家的图像)。我正在使用models.Artist.fromURI()和回调(当艺术家加载*时调用)我没有看到“肖像”。此外,文档中的Artist对象具有“图片”属性,但他们表示使用Artist.fromURI()返回包含“肖像”属性的对象,而不是图片。你好吗*加载*这位艺术家? – 2012-07-11 16:33:36