-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Hello,
i am using your library but same like your example but i have just added 3 arguments for a script to take. it used to run without problems but lately i'm seeing this issue:
to=sys.argv[1]
subject=sys.argv[2]
content=sys.argv[3]
then to send a message:
clickatell = Rest(token);
response = clickatell.sendMessage([to],content)
error:
Traceback (most recent call last):
File "./clickatellsms.py", line 13, in
response = clickatell.sendMessage([to],content)
File "/usr/local/lib/python2.7/dist-packages/clickatell/rest/init.py", line 40, in sendMessage
content = self.parseResponse(self.request('messages', data, {}, 'POST'));
File "/usr/local/lib/python2.7/dist-packages/clickatell/init.py", line 45, in parseResponse
response['error'] = response['body']['error']
KeyError: 'error'
Any help?