Skip to content

Instantly share code, notes, and snippets.

@RachelSa
Created February 28, 2017 22:23
Show Gist options
  • Save RachelSa/c7a2e7b1138effad336d9fcea661f394 to your computer and use it in GitHub Desktop.
Save RachelSa/c7a2e7b1138effad336d9fcea661f394 to your computer and use it in GitHub Desktop.
@artist_data = JSON.parse(response)["artists"]["items"][0]
top_tracks_url = "https://api.spotify.com/v1/artists/#{@artist_data["id"]}/top-tracks?country=US"
top_tracks_results = JSON.parse(RestClient.get(top_tracks_url))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment