Skip to content

Commit 7613670

Browse files
committed
update README
1 parent acefb0d commit 7613670

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,12 @@ api.registerListener(new SpotifyListener() {
8787
// Initialize the API
8888
api.initialize();
8989
```
90+
91+
Fetch an image of the current playing track:
92+
```java
93+
// Create an instance of the Open Spotify API
94+
OpenSpotifyAPI openSpotifyAPI = new OpenSpotifyAPI();
95+
96+
// Download the cover art of the current song
97+
BufferedImage imageTrackCover = openSpotifyAPI.requestImage(track);
98+
```

0 commit comments

Comments
 (0)