Wanzul Blog
Google uses OAuth 2.0 for authentication. In this case, to be able to manipulate Gmail API, you need to connect with OAuth 2.0. Then, you will be able to consume Gmail API. Here is how to connect with Google OAuth 2.0.