A Node.js Gmail client which returns email from any Gmail account.
Install using npm:
npm install --save-dev node-gmail-testeryarn add --dev node-gmail-tester-
Create a Google Cloud Project (https://developers.google.com/workspace/guides/create-project).
-
Create the Access Credentials and make sure to select
Desktop appfor the application type. (https://developers.google.com/workspace/guides/create-credentials). -
Make sure you have enabled Gmail API for the progect.
-
Save the Google Cloud Platform OAuth2 Authentication file named
gmail.credentials.jsonin the root of the project folder. -
To create the tokens run the following command in the root of the project and follow the instructions, this will create the file
gmail.token.json.
node node_modules/node-gmail-tester/init⛔️ Never share or commit gmail.credentials.json nor gmail.token.json!
- Built using googleapis.