Obtaining an API key for the Gmail API
This tutorial demonstrates how to create a project in the Google API console and enable the Gmail API. This tutorial covers both creating your application as well as retrieving your OAuth 2.0 client ID and client secret.