{"id":25854621,"url":"https://github.com/bugnificent/mail-test","last_synced_at":"2026-05-05T01:37:18.540Z","repository":{"id":275132751,"uuid":"925182496","full_name":"bugnificent/mail-test","owner":"bugnificent","description":"Simple inbox test with Node.js using Google API/OAuth 2.0.","archived":false,"fork":false,"pushed_at":"2025-01-31T11:48:47.000Z","size":100,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T19:55:14.726Z","etag":null,"topics":["gmail-api","javascript","node-js","npm"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/gmail-tester","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bugnificent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-31T11:46:18.000Z","updated_at":"2025-01-31T11:50:11.000Z","dependencies_parsed_at":"2025-01-31T12:36:33.422Z","dependency_job_id":null,"html_url":"https://github.com/bugnificent/mail-test","commit_stats":null,"previous_names":["velespitt/mail-test","bugnatis/mail-test","bugnificent/mail-test"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugnificent%2Fmail-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugnificent%2Fmail-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugnificent%2Fmail-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugnificent%2Fmail-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bugnificent","download_url":"https://codeload.github.com/bugnificent/mail-test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241389153,"owners_count":19955107,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gmail-api","javascript","node-js","npm"],"created_at":"2025-03-01T16:17:11.254Z","updated_at":"2026-05-05T01:37:13.510Z","avatar_url":"https://github.com/bugnificent.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gmail Tester with Google API \u0026 OAuth (Node.js)\n\nThis project uses `gmail-tester` with Google API and OAuth to check the inbox for specific emails using **Node.js**.\n\n## 📌 Features\n- Connects to Gmail using Google API \u0026 OAuth.\n- Searches for emails matching specific criteria (subject, sender, recipient).\n- Waits for emails to arrive within a specified time frame.\n- Prints results in the terminal.\n\n## 🚀 Installation\n\n### 1️⃣ Clone the repository\n```sh\ngit clone https://github.com/velespitt/test-automation\ncd test-automation/mail-test\n```\n\n### 2️⃣ Install dependencies\n```sh\nnpm install gmail-tester\n```\n\n### 3️⃣ Set up Google API credentials\nYou need **credentials.json** and **gmail_token.json** for authentication.\n\n- Follow [this guide](https://developers.google.com/gmail/api/quickstart/nodejs) to generate your **credentials.json**.\n- Run authentication to generate **gmail_token.json**:\n  ```sh\n  node gmail-tester/init.js\n  ```\n\n## 📝 Usage\n\n### Run the script to check inbox\n```sh\nnode mail-test.js\n```\n## 🔧 Troubleshooting\n- **Error: Invalid Credentials?** Ensure `credentials.json` and `gmail_token.json` are correctly set up.\n- **Email not found?** Check if the email exists and matches the filters.\n- **Permission issues?** Enable Gmail API in your Google Cloud Console.\n\n## 🤝 Contributing\nContributions are welcome! If you'd like to improve this project:\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature-branch`).\n3. Commit your changes (`git commit -m 'Add some feature'`).\n4. Push to the branch (`git push origin feature-branch`).\n5. Open a pull request.\n\n## 📜 License\nThis project is licensed under the [MIT License](LICENSE).\n\n---\n✅ Happy Coding!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugnificent%2Fmail-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbugnificent%2Fmail-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugnificent%2Fmail-test/lists"}