tenminutesemail_py/README.md

38 lines
767 B
Markdown
Raw Normal View History

2019-07-08 16:27:17 +00:00
# tenminutesemail_py
2019-07-08 17:10:30 +00:00
## Create a temporal e-mail using the [10minutemail](https://10minutemail.com/) service.
### Dependencies
- Python 3.x
- requests
- datetime
### Usage
2019-07-08 17:12:07 +00:00
**Generate a new e-mail**
2019-07-08 17:10:30 +00:00
```
In [1]: email = TenMinutesEmail()
In [2]: email
Out[2]: (b3763093@urhen.com, seconds_left=594)
```
2019-07-08 17:12:07 +00:00
**Check seconds left**
2019-07-08 17:10:30 +00:00
```
In [3]: email.seconds_left()
Out[3]: 472
```
> You can use `email.seconds_left(True)`, to get a more precise value but is a little bit more slow
2019-07-08 17:12:07 +00:00
**Verify if the e-mail is expired**
2019-07-08 17:10:30 +00:00
```
In [4]: email.is_alive()
Out[4]: True
```
> You can use `email.is_alive(True)`, to get a more precise value but is a little bit more slow
2019-07-08 17:11:12 +00:00
2019-07-08 17:12:07 +00:00
**Request 10 minutes more**
2019-07-08 17:10:30 +00:00
```
In [5]: email.reset_time()
```
### TO-DO
2019-10-03 17:40:39 +00:00
- [x] Access to the e-mails received