Web Services Multiple Numbers One call to the service


(Steven Delport) #1

Good Day is there a way via web services to send the same message to multiple numbers with one call to web services.
to=12335466&to=34535345&to=234234 or something similar.


(Edilson Spessoto) #2

Steven, documentation says:

to -> destination numbers, @username or #groupcode, may use commas


(Steven Delport) #3

Will test and post results.


(Steven Delport) #4

Getting error
/usr/bin/lynx -dump ‘http://localhost/index.php?app=webservices&op=pv&u=usernamel&h=token&to=264811243769,to=264856572719&msg=Checking Web Services with multiple numbers’
{“data”:[{“status”:“OK”,“error”:“0”,“smslog_id”:“199846”,“queue”:“f40a669fe790cbaefb561065e8525743”,“to”:“264811243769”},{“status”:“OK”,“error”:“0”,“smslog_id”:“199847”,“queue”:“f40a669fe790cbaefb561065e8525743”,“to”:“264856572719”}],“error_string”:null,"timestamp
Also tried without the second to=
/usr/bin/lynx -dump ‘http://localhost/index.php?app=webservices&op=pv&u=username&h=token&to=264811243769,264856572719&msg=Checking Web Services with multiple numbers’
{“data”:[{“status”:“OK”,“error”:“0”,“smslog_id”:“199848”,“queue”:“f1629266ac64bca8a0c9f7a586326a29”,“to”:“264811243769”},{“status”:“OK”,“error”:“0”,“smslog_id”:“199849”,“queue”:“f1629266ac64bca8a0c9f7a586326a29”,“to”:“264856572719”}],“error_string”:null,"timestamp


(Edilson Spessoto) #5

Instead of to=number,to=number… put to=number1,number2,…


(Steven Delport) #6

Did in second example. to=264811243769,264856572719


(Edilson Spessoto) #7

Missed URL encode, maybe?