We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d93b36c + de6a46d commit b2dba95Copy full SHA for b2dba95
spotifyapi/Album.py
@@ -32,6 +32,16 @@ def get(self, albumID: str):
32
headers={'Authorization': 'Bearer ' + self.token}
33
).json()
34
35
+ def get_multiple(self, albumIDs: list):
36
+ return requests.request(
37
+ 'GET',
38
+ 'https://api.spotify.com/v1/albums',
39
+ headers={'Authorization': 'Bearer ' + self.token},
40
+ params={
41
+ 'ids': albumIDs
42
+ }
43
+ ).json()
44
+
45
def get_tracks(self, albumID: str, limit: int = 1):
46
if not 0 < limit < 50:
47
raise LimitOutOfRangeError('limit must be under 50')
0 commit comments