Nexmo python script
- or -
Post a project like this2439
£50(approx. $63)
- Posted:
- Proposals: 5
- Remote
- #1651640
- Completed
Description
Experience Level: Intermediate
General information for the website: python script
Kind of development: New website from scratch
Description of every page/module: need a script that will let me bulk send sms to a list of uk numbers in +44 format
or that will cycle through list of numbers sending sms 1 by 1.
Description of requirements/features: what i have so far just lets me send 1 at a time and i have to enter number and msg manually :( i want it pre loaded.
Script:
import nexmo
client = nexmo.Client(key='f357331c', secret='4581c64cc89f6e14')
number = raw_input('Enter the phone number: ')
message = raw_input('Enter the message: ')
response = client.send_message({'from' : '+447943326698', 'to' : number, 'text' : message})
response = response['messages'][0]
if response['status'] == '0':
print 'Success, message sent! ', response['message-id']
print 'Message cost: ', response['message-price']
print 'Remaining balance is', response['remaining-balance']
else:
print 'Error: ', response['error-text']
Extra notes:
Kind of development: New website from scratch
Description of every page/module: need a script that will let me bulk send sms to a list of uk numbers in +44 format
or that will cycle through list of numbers sending sms 1 by 1.
Description of requirements/features: what i have so far just lets me send 1 at a time and i have to enter number and msg manually :( i want it pre loaded.
Script:
import nexmo
client = nexmo.Client(key='f357331c', secret='4581c64cc89f6e14')
number = raw_input('Enter the phone number: ')
message = raw_input('Enter the message: ')
response = client.send_message({'from' : '+447943326698', 'to' : number, 'text' : message})
response = response['messages'][0]
if response['status'] == '0':
print 'Success, message sent! ', response['message-id']
print 'Message cost: ', response['message-price']
print 'Remaining balance is', response['remaining-balance']
else:
print 'Error: ', response['error-text']
Extra notes:
Richard F.
100% (3)Projects Completed
5
Freelancers worked with
4
Projects awarded
83%
Last project
14 Aug 2017
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies