Say you are writing a web app that will help its users optimize their companies' online marketing. In that case your web app would need to be able to access its users google analytics web site data. The way you allow your site users to authorize your web app to to access their google analytics data, is with Oauth2. Oauth2 is a security protocol for third party application authorization. When a user visits your web app, you present them with a link that will take them to a google page…Continue
Posted on April 22, 2015 at 6:30pm
The slightly misnamed SOAP (Simple Object Access Protocol) protocol is in a sense a type-strong version of the much better know JSON interchange format. The Ruby community clearly doesn't have as much affection for SOAP as the Java and .Net communities, but that makes sense as Ruby is a dynamic language with duck typing, which meshes better in philosophy with the lightweight JSON format, rather than the much more expressive and heavyweight SOAP format.
If given the choice between…Continue
Posted on March 9, 2015 at 7:00pm
In one of my recent projects, I needed to import a lot of data from csv files into a database as persisted domain objects in a web application. This file import functionality wasn't just for application bootstrapping or a one-time legacy data migration, but for a recurring task that allowed the web app to receive updates from a third party vendor.
The number of records in each file could reach into the millions, so I knew from the outset that the plain-vanilla method of creating…Continue
Posted on September 16, 2014 at 3:00pm
In the past few years, I've written a few json API's in rails. There are a few trends driving the popularity of API's, one being Service Oriented Architecture, and another being client side rendering.
Service Oriented Architecture can apply to all services, not just browser accessible ones. It consists of making services available via a standard like SOAP or JSON, to increase re-usability and modularity, SOAP and JSON being the two most popular SOA protocols. SOAP is XML-based,…Continue
Posted on September 5, 2014 at 5:00pm