Method: Lily#auth
- Defined in:
- lib/lily.rb
#auth(cmd) ⇒ Object
65 66 67 68 69 70 71 72 73 74 |
# File 'lib/lily.rb', line 65 def auth(cmd) lastfmURL = "http://www.last.fm/api/auth/?api_key=#{@keys.public}&token=#{@token}" if cmd == "--no-open" then puts "Open this URL and sign in to give access: #{lastfmURL}" else Launchy.open(lastfmURL) end print "Press Enter once you've given access..." STDIN.gets end |