title: How to authenticate to flickr with Flickraw gem
body: <p>I want to upload a photo but need to authenticate with flickr in order to do so. I am using the flickraw gem but don't understand the instructions below:</p>
  
  <pre><code>require 'flickraw'
  
  FlickRaw.api_key="... Your API key ..."
  FlickRaw.shared_secret="... Your shared secret ..."
  
  token = flickr.get_request_token(:perms =&gt; 'delete')
  auth_url = token['oauth_authorize_url']
  
  puts "Open this url in your process to complete the authication process : #{auth_url}"
  puts "Copy here the number given when you complete the process."
  verify = gets.strip
  
  begin
    flickr.get_access_token(token['oauth_token'], token['oauth_token_secret'], verify)
    login = flickr.test.login
    puts "You are now authenticated as #{login.username}"
  rescue FlickRaw::FailedResponse =&gt; e
    puts "Authentication failed : #{e.msg}"
  end
  </code></pre>
  
  <p>Can someone explain to me what this code is doing and how I should use it.</p>