Tutorial: http://code.tutsplus.com/tutorials/accessing-google-services-using-the-oauth-2-0-protocol--mobile-18394