async def get_artist(self, spotify_id): '''Retrive an artist with a spotify ID **parameters** - spotify_id (:class:`str`) - the ID to look for ''' data = await self.http.artist(utils.uri_to_id(spotify_id)) return Artist(self, data)
async def get_track(self, spotify_id): '''Retrive an track with a spotify ID **parameters** - spotify_id (:class:`str`) - the ID to look for ''' data = await self.http.track(utils.uri_to_id(spotify_id)) return Track(self, data)
async def get_album(self, spotify_id, *, market='US'): '''Retrive an album with a spotify ID **parameters** - spotify_id (:class:`str`) - the ID to look for ''' data = await self.http.album(utils.uri_to_id(spotify_id), market=market) return Album(self, data)
async def get_artists(self, *, ids): '''Retrive multiple artists with a list of spotify IDs **parameters** - ids (:class:`str`) - the ID to look for ''' data = await self.http.artists(','.join(utils.uri_to_id(_id) for _id in ids)) return [Album(self, artist) for artist in data['artists']]
async def get_albums(self, *, ids, market='US'): '''Retrive multiple albums with a list of spotify IDs **parameters** - ids (:class:`str`) - the ID to look for ''' data = await self.http.albums(','.join(utils.uri_to_id(_id) for _id in ids), market=market) return [Album(self, album) for album in data['albums']]
async def get_album(self, spotify_id, *, market='US'): '''Retrive an album with a spotify ID **parameters** - spotify_id (:class:`str`) - the ID to look for - market (Optional :class:`str`) - An ISO 3166-1 alpha-2 country code ''' data = await self.http.album(utils.uri_to_id(spotify_id), market=market) return Album(self, data)