SmartLogic Logo (443) 451-3001

The SmartLogic Blog

SmartLogic is a web and mobile product development studio based in Baltimore. Contact us for help building your product or visit our website to learn more about what we do.

Sinatra OAuth Workflow: Use This to Speed Up Your App Development

January 23rd, 2013 by

With this Sinatra workflow, your app development will be as smooth as FrankWhen you need to connect to multiple different APIs, it can take a long time to manage your OAuth workflow for each third-party app. On a recent app development project, I was getting really agitated using cURL for every step in the process while working on pulling in data from multiple apps. So I decided to do something about it. I’m a programmer, damn it.

While I don’t have a magic solution, I created a Sinatra OAuth proxy app that works with Harvest. This sped up development for connecting with Harvest, and with small changes, the same code can also work for other applications. For example, I tested it out on Foursquare and the same code mostly worked.

This is the code I used to speed up OAuth and inspect the third party app’s API.


How do you handle OAuth without cURLin’ all day long? Comment and let us know.

 

For more like this, follow @SmartLogic and @ericoestrich on Twitter.

Image Source