I found another great write up that explains OAuth 2 authentication when accessing many of Google’s API’s.  Raffael Vogler has gone through the pain staking process of setting up a simple script to interact with the Google Analytics API and has documented the steps and what’s going on with specific lines of code.  It’s a good read for those of you still mustering around and trying to get your API calls to work.