Sha256: 5f13e5f105027531d30f4699c7cdf2832ed3a0383a26ca463c09e0b077bf0479

Contents?: true

Size: 441 Bytes

Versions: 4

Compression:

Stored size: 441 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require 'rest_client'
require 'json'
require 'pp'

puts "searching for album: Moon Safari"
pp JSON.parse(RestClient.get('http://localhost:3000/albums?name=Moon+Safari'))

puts "searching for track: The End"
pp JSON.parse(RestClient.get('http://localhost:3000/tracks?name=The+End'))

puts "searching for artist: The Doors"
pp JSON.parse(RestClient.get('http://localhost:3000/artists?name=The+Doors'))

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jberkel-spotify-api-0.0.1 examples/search.rb
jberkel-spotify-api-0.0.2 examples/search.rb
jberkel-spotify-api-0.0.3 examples/search.rb
jberkel-spotify-api-0.0.4 examples/search.rb