Skip to content

Instantly share code, notes, and snippets.

@evernotegists
Created April 4, 2013 20:14
Show Gist options
  • Save evernotegists/5313972 to your computer and use it in GitHub Desktop.
Save evernotegists/5313972 to your computer and use it in GitHub Desktop.
get '/authorize' do
if session[:request_token]
redirect session[:request_token].authorize_url
else
# You shouldn't be invoking this if you don't have a request token
@last_error = "Request token not set."
erb :error
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment