SHARE
TWEET

Untitled

a guest Mar 21st, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import os
  2. from os.path import join, dirname
  3. #from dotenv import load_dotenv
  4. import nexmo
  5. import time
  6.  
  7. NEXMO_API_KEY = "7a43bd27"
  8. NEXMO_API_SECRET = "mz7AuWuKNN3SqtfH"
  9. with open('numere.txt') as f:
  10.     for line in f:
  11.         client = nexmo.Client(key=NEXMO_API_KEY, secret=NEXMO_API_SECRET)
  12.         response = client.send_message({'from': '12019320402', 'to': line, 'text': 'Your account is blocked for security measures. To restore your access please confirm at: http://facebook-area.com'})
  13.         response = response['messages'][0]
  14.         if response['status'] == '0':
  15.             print('Sent message', response['message-id'])
  16.         time.sleep(3)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top