Skip to content

Instantly share code, notes, and snippets.

@blakesmith
Last active December 30, 2015 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blakesmith/7764204 to your computer and use it in GitHub Desktop.
Save blakesmith/7764204 to your computer and use it in GitHub Desktop.
def getMediaURI(userId: String, id: String): Future[MediaURI] =
for {
authed <- authorizedClient(userId, client)
track <- authed.getTrack(id)
url <- authed.resolveStreamLocation(track.streamUrl)
} yield MediaURI(url, Map())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment