{"repo":"levz0r/gmail-tester","free":true,"listed":false,"github":"https://github.com/levz0r/gmail-tester","clone":"git clone https://github.com/levz0r/gmail-tester.git","description":"A simple Node.js Gmail client which checks the inbox for message existence","language":"JavaScript","stars":283,"topics":["google-api","gmail-api","nodejs","cypress-io","automation","emails","gmail-checker"],"license":"MIT","category":"workflow-automation","readme_excerpt":"gmail-tester A simple Node.js Gmail client which checks/returns email message(s) straight from any Gmail-powered account (both private and company). There are two main functionalities this library provides: 1. check inbox() : Polls a mailbox for a given amount of time. At the end of the operation, the desired message is returned (if found). 2. get messages() : Can be used to perform various assertions on the email objects (see example below). P.S, I have written a story on medium, how using Cypress, we are testing our user registration process at Tastewise. Usage 1. Install using npm : 2. Save the Google Cloud Platform OAuth2 Authentication file named credentials.json inside an accessible directory (see instructions below). 3. In terminal, run the following command: Is the path to OAuth2 Authentication file. Is the path to OAuth2 token. If it doesn't exist, the script will create it. The script will prompt you to go to google.com to activate a token. Go to the given link, and select the account for . Grant permission to view your email messages and settings. At the end of the process you should see the token: Hit the copy button and paste it to init.js script. The process should look like this: How to get credentials.json? 1. Follow the instructions to Create a client ID and client secret. Make sure to select Desktop app for the application type. 2. Once done, go to https://console.cloud.google.com/apis/credentials?project=(project-name)&folder&organizationId and download the","default_branch":null,"files":null,"tree":[],"storefront":"/r/levz0r","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/levz0r/gmail-tester/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}