Skip to content

Commit dbade0b

Browse files
committed
Added rush mode to the generate inbox function
1 parent a045442 commit dbade0b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

TempMail/TempMail.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ def makeHTTPRequest(endpoint):
3434
GenerateInbox will generate an inbox with an address and a token
3535
and returns an Inbox object
3636
"""
37-
def generateInbox():
37+
def generateInbox(rush = False):
3838
try :
39-
s = TempMail.makeHTTPRequest("/generate")
39+
s = TempMail.makeHTTPRequest("/generate" + ("/rush" if rush else ""))
4040
except:
4141
print("Website responded with: "+ s)
4242
data = json.loads(s)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
long_description = "\n" + fh.read()
99

1010
setup(name='tempmail-lol',
11-
version='1.0.0',
11+
version='1.1.0',
1212
description='A Python API for TempMail',
1313
author='Alex Torres',
1414
author_email='cloudbotsedc@gmail.com',

0 commit comments

Comments
 (0)