First things first: Be sure you’ve gotten a consumer key and secret from developers.dropbox.com # STEP 1: Authorize the user session = Dropbox::Session.new('your_consumer_key', 'your_consumer_secret') session.mode = :sandbox # might need to set this to :dropbox; consult your API account page puts "Visit #{session.authorize_url} to log in to Dropbox. Hit enter when you have done this." gets session