def setup(*args)
      # Keep trying to get the access token
      until @access_token = self.get_access_token
        print "Try again? [Y/n] "
        return false if self.class.get_input.downcase == 'n'
      end
      # When we finally get it, record it in a dotfile
      tokens = {:default => { :token => @access_token.token, :secret => @access_token.secret }}
      save_tokens(tokens)
    end
def setup(*args)
      # Keep trying to get the access token
      until @access_token = self.get_access_token
        print "Try again? [Y/n] "
        return false if self.class.get_input.downcase == 'n'
      end
      # When we finally get it, record it in a dotfile
      tokens = {:default => { :token => @access_token.token, :secret => @access_token.secret }}
      save_tokens(tokens)
    end
def setup ( * args ) # Keep trying to get the access token until @access_token = self . get_access_token print "Try again? [Y/n] " return false if self . class . get_input . downcase == 'n' end # When we finally get it, record it in a dotfile tokens = { :default => { :token => @access_token . token , :secret => @access_token . secret } } save_tokens ( tokens ) end
Get the access token for the user and save it
Get the access token for the user and save it