A simple sample for new Gmail API for .NET https://developers.google.com/gmail/api/quickstart/quickstart-cs