Venmo Sinatra Example OAuth App
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Venmo OAuth Sinatra Example

An example server-side implementation of obtaining a long-lived access token for Venmo OAuth.

Venmo API documentation available here.


Install rubygems and sinatra

gem install rubygems
gem install sinatra 
gem install rest-client

Create a new Venmo Application by visiting

Login and go to: Account > Developers > New Application.

Create new application

Clone this repo and cd into the venmo-sinatra directory. Create a constants.rb file with these definitions:

CONSUMER_ID Your Venmo app ID e.g. 1349 **NO QUOTATION MARKS**
CONSUMER_SECRET Your Venmo app secret e.g. 'E4jWCktKjvnDoIjdFwXaQuGBKPhxTDXR'
APP_SECRET a random string used to encrypt your session cookies e.g. 'thisappisnice'

Then run

ruby main.rb

Go to localhost:4567 in your browser, and log in with your Venmo credentials.