Followed the Google DriveQuickStart and implemented the code from the developer.google.com site for google drive.