Guest User

SMS Code

a guest
Jan 20th, 2019
697
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. from six.moves import input
  2. from googlevoice import Voice
  3.  
  4.  
  5. def run():
  6.     voice = Voice()
  7.     voice.login()
  8.  
  9.     phoneNumber = input('Number to send message to: ')
  10.     text = input('Message text: ')
  11.  
  12.     voice.send_sms(phoneNumber, text)
  13.  
  14.  
  15. __name__ == '__main__' and run()
Advertisement
Add Comment
Please, Sign In to add comment