A Simple Web API to Generate Temporary Gmail Email. With a Json Response easy to manage messages and working with IMAP Gmail Provider
My.Video15.mp4
Time To build This Project :
Wakatime Project : https://wakatime.com/@sandrocods/projects/mtsiyzjnpw?start=2022-09-04&end=2022-09-10
This repository is only public for educational purposes!
All content provided here shall not be used for any kind of illegal activity nor for law enforcement at any time.
This restrictions apply to all cases of usage, no matter whether the whole code or just parts of it are being used.
Feature | Status |
---|---|
Limit Request to API | ✅ |
Use .env file to config Account | ✅ |
Read Specific Email Body | ✅ |
Delete Email | ✅ |
Generate Dot Trick Email | ✅ |
Web App | Work In Progress |
Clone the project
git clone https://github.com/sandrocods/GTmp
Go to the project directory
cd GTmp
Install dependencies
pip3 install -r ./requirements.txt
Start the server
python3 main.py
Access server
Go to http://127.0.0.1:5000
To run this project, you will need to add the following environment variables to your .env file
Email
-> Your Gmail Email
Password
-> Your Gmail Password
GET /generate/<type>
Parameter | Type | Description |
---|---|---|
type |
string |
Required. type (dot/dotplus) |
// http://127.0.0.1:5000/generate/dot
{
"data": {
"email": "[email protected]",
"mailbox": "/read/[email protected]",
"status": true
},
"message": "Success",
"status": true
}
// http://127.0.0.1:5000/generate/dotplus
{
"data": {
"email": "[email protected]",
"mailbox": "/read/[email protected]",
"status": true
},
"message": "Success",
"status": true
}
GET /read/<email>
Parameter | Type | Description |
---|---|---|
email |
string |
Required. Your Email |
// http://127.0.0.1:5000/read/[email protected]
{
"data": [
{
"body": "Test 1\r\n",
"date": "Thu, 08 Sep 2022 15:27:42 GMT",
"from": "[email protected]",
"subject": "Test Email Temp",
"to": [
"[email protected]"
],
"uid": "125"
}
],
"email": "[email protected]",
"message": "Messages appear",
"status": true
}
GET /readby/<email>/<string_in_body>
Parameter | Type | Description |
---|---|---|
email |
string |
Required. Your Email |
string_in_body |
string |
Required. specific string in body message |
// http://127.0.0.1:5000/readby/[email protected]/Test
{
"data": [
{
"body": "Test 1\r\n",
"date": "Thu, 08 Sep 2022 15:27:42 GMT",
"from": "[email protected]",
"subject": "Test Email Temp",
"to": [
"[email protected]"
],
"uid": "125"
}
],
"email": "[email protected]",
"message": "Messages appear",
"status": true
}
GET /delete/<uid>
Parameter | Type | Description |
---|---|---|
uid |
string |
Required. uid from message |
// http://127.0.0.1:5000/delete/125
true
// Message not exist
{
"email": "[email protected]",
"message": "No messages appear",
"status": false
}
// Limit Request by Flask_limiter
{
"message": "You have reached the request limit of 20 per 1 minute requests per day",
"status": "error"
}
thank you for visiting this repository, if this repository is useful for your project please give a star ⭐️🙏❤️️