MattWaller/getNada

An unoffical api for getnada.com

★ 2Forks 1PythonGitHub ↗Compare

README

getnada.com API for managing inbox

This is an unoffical api utilizing API GET / DELETE CALLS FROM https://getnada.com

Guide:

git clone https://github.com/MattWaller/getNada.git python3 -m venv venv . venv/bin/activate pip install -r requirements.txt

Example: gn = getNada()

domains = gn.domains email_name = 'whateveryouwant' domain = 'getnada.com' print(gn.checkInbox(email=f'{email_name}@{domain}',delete=True))

Response:

[{'uid': '8xST2y9lF2WoVV2cHbIZ5AEl1kTPrN', 'from': 'SAMPLE FROM', 'subject': 'SAMPLE', 'from_email': '[email protected]', 'receive_time_epoch': 1673579903, 'message_data': {'status_code': 200, 'message_contents': b'<!doctype html> SAMPLE EMAIL. \n'}}]

Functions:

      getDomains() - initates / calls getnada's api and retrives acceptable domains for throwaway. This function is automatically called in the class. To get a list of the acceptable domains you can call {classVariable}.domains
      checkInbox(email,delete) - email is type string: look to use an email such as "[email protected]" delete is Boolean, and will delete the email in inbox, defaults to True. So if you're testing set it to False, if you want to make sure you change it to False if you want to keep the email in inbox.

Contributors

MattWaller

Issues