Skip to content

Instantly share code, notes, and snippets.

@aidan-harding
Last active July 29, 2020 19:53
Show Gist options
  • Save aidan-harding/d0d779bd82e192491ec663a6acabcd1c to your computer and use it in GitHub Desktop.
Save aidan-harding/d0d779bd82e192491ec663a6acabcd1c to your computer and use it in GitHub Desktop.
String jsonPayload = new YouTubeApi().getPlaylistThumbnail('playlist-id');
String thumbnailUrl = new JsonReader(jsonPayload)
.read('items[0].snippet.thumbnails.default.url'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment