From aebb3f459125ce4b6e3b6e0f3db69dd98950866a Mon Sep 17 00:00:00 2001 From: kirbylife Date: Mon, 8 Jul 2019 12:10:30 -0500 Subject: [PATCH] Initial commit --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/README.md b/README.md index 0edfab1..75334a2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,37 @@ # tenminutesemail_py +## Create a temporal e-mail using the [10minutemail](https://10minutemail.com/) service. + +### Dependencies +- Python 3.x +- requests +- datetime + +### Usage +** Generate a new e-mail ** +``` +In [1]: email = TenMinutesEmail() +In [2]: email +Out[2]: (b3763093@urhen.com, seconds_left=594) +``` +** Check seconds left ** +``` +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 + +** Verify if the e-mail is expired ** +``` +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 +** Request 10 minutes more ** +``` +In [5]: email.reset_time() + +``` + +### TO-DO +1. Access to the e-mail received