Using oauth for a simple command line script to access Google's data
martinfowler.com