Skip to content

Instantly share code, notes, and snippets.

@evernotegists
Created April 4, 2013 20:14
Show Gist options
  • Save evernotegists/5313974 to your computer and use it in GitHub Desktop.
Save evernotegists/5313974 to your computer and use it in GitHub Desktop.
@@ index
<html>
<head>
<title>Evernote Ruby Example App</title>
</head>
<body>
<a href="/requesttoken">Click here</a> to authenticate this application using OAuth.
<% if session[:notebooks] %>
<hr />
<h3>The current user is <%= session[:username] %> and there are <%= session[:total_notes] %> notes in their account</h3>
<br />
<h3>Here are the notebooks in this account:</h3>
<ul>
<% session[:notebooks].each do |notebook| %>
<li><%= notebook %></li>
<% end %>
</ul>
<% end %>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment