Skip to content

maxim-smirnov/sms-activate-email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SMS-Activate Email API

This is an unofficial API wrapper for sms-activate.org temporary mailboxes service.

Example

from sms_activate_email.client import SMSActivateEmailClient, EmailDomain, EmailDomainType

sms_activate_email_client = SMSActivateEmailClient('YOUR_API_KEY')  # Init client 
activation = sms_activate_email_client.buy_email_activation(
    from_domain='sms-activate.org', domain=EmailDomain('outlook.com', EmailDomainType.POPULAR)
)  # Buy activation

activation_email = activation.email  # Email got for your mailbox
message_text = activation.get_text(period_sec=5, attempts=12)  # Will check for email for 1 minute (5*12=60)
message_text = activation.full_message  # This is also an option to get message text after get_text() was called

# After email was received you can reactivate your mailbox to get new email
activation.reactivate()
message_text = activation.get_text(period_sec=5, attempts=12)  # Will check for email for 1 minute (5*12=60)
message_text = activation.full_message  # This is also an option to get message text after get_text() was called

About

SMS-Activate Temporary Email API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages