You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to send SMS to multiple recipients, and the message is only sent to the first recipient in the list. The remaining recipients just seem to be ignored.
I am using following (pseudo) code:
def send_sms(group, smstext, self):
clickatell = Clickatell('username','my_password','my_id')
mylist = NUMBERS[group]
clickatell.sendmsg(recipients=mylist,text=smstext)
I have checked with the debugger, my_list actually contains a list of phone numbers (list of strings) as I would expect to be correct.
Seems the function 'url encode' in file urllib.py replaces the ',' between the numbers with '%2C', while the documentation of the clickatell HTTP API, section 3.3 "Send a message" states:
"One can send to multiple destination addresses by delimiting the addresses with commas. The basic parameters required are to (the handset number to which the message is being sent) and text (the content of the message). A maximum of 100 comma separated destination addresses per sendmsg, or quicksend command, are possible, if you are calling the command via a GET, or alternatively, 300 destination addresses if you are submitting via a POST."
So it must be separated by commas. So I guess the bug is here?
The text was updated successfully, but these errors were encountered:
I am trying to send SMS to multiple recipients, and the message is only sent to the first recipient in the list. The remaining recipients just seem to be ignored.
I am using following (pseudo) code:
def send_sms(group, smstext, self):
clickatell = Clickatell('username','my_password','my_id')
mylist = NUMBERS[group]
clickatell.sendmsg(recipients=mylist,text=smstext)
I have checked with the debugger, my_list actually contains a list of phone numbers (list of strings) as I would expect to be correct.
Seems the function 'url encode' in file urllib.py replaces the ',' between the numbers with '%2C', while the documentation of the clickatell HTTP API, section 3.3 "Send a message" states:
"One can send to multiple destination addresses by delimiting the addresses with commas. The basic parameters required are to (the handset number to which the message is being sent) and text (the content of the message). A maximum of 100 comma separated destination addresses per sendmsg, or quicksend command, are possible, if you are calling the command via a GET, or alternatively, 300 destination addresses if you are submitting via a POST."
So it must be separated by commas. So I guess the bug is here?
The text was updated successfully, but these errors were encountered: