rvn.2miners.com/api/
- Install necessary packages.
pip3 install requests
pip3 install smtplib
pip3 install apscheduler
pip3 install twilio
- Set rvn address you want to track on 2Miners.
- Create an account with twillio and enable sms.
- Setup TwillioSerivice with your account sid, auth token and the number provided.
- Set account.twillio_service.to_number - The number you want to send updates to.
- Call schedule_sms_updates and set a second interval.
if __name__ == '__main__':
rvn_address = ""
account = Account(rvn_address)
# Send SMS Updates
account.twillio_service = TwillioService(account_sid="", auth_token="", from_number="")
account.twillio_service.to_number = ""
account.schedule_sms_updates(10)
- Set rvn address you want to track on 2Miners.
- Create a new gmail account.
- Go to setting, security, turn on Less Secure app access.
- Setup EmailSerivice with your gmail, password.
- Set account.mail_service.mail_to - The email you want to send updates to.
- Call schedule_email_updates and set a second interval.
if __name__ == '__main__':
rvn_address = ""
account = Account(rvn_address)
# Send email Updates
my_gmail_user = ""
my_gmail_password = ""
account.mail_service = MailService(my_gmail_user, my_gmail_password)
account.mail_service.mail_to = ""
account.schedule_email_updates(60)