我想通过nexmo cURL发送多个短信

问题描述 投票:0回答:1
curl -X "POST" "https://rest.nexmo.com/sms/json" \
 -d "from=testsms" \
 -d "text=hello" \
 -d "to=44xxxxxxxxxx” \
 -d "api_key=xxxxxxxx" \
 -d "api_secret=xxxxxxxxxxxxxxxx"

我想发送多个短信,所以基本上是批量短信,但-d“ to = 44xxxxxxxxxx” \不允许超过1个数字,因此有人可以帮助我解决此问题。我将放置一些链接以查看什么正在发生

https://help.nexmo.com/hc/en-us/articles/205065817-How-to-Send-Multiple-SMS-in-a-Single-API-Request

请使用该链接指导答案。非常感谢]]

curl -X“ POST”“ https://rest.nexmo.com/sms/json” \ -d“ from = testsms” \ -d“ text = hello” \ -d“ to = 44xxxxxxxxxx” \ -d “ api_key = xxxxxxxx” \ -d“ api_secret = xxxxxxxxxxxxxxxx”我想发送多个...

curl sms php-curl nexmo bulksms
1个回答
0
投票

每个API调用只能发送一条短信。本文介绍了如何使发送之间的连接保持打开状态,但是API也受速率限制,因此可能无济于事。这不是您要找的答案,但是您需要自己处理队列或其他事情,并将消息逐一滴入API。

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.