简体   繁体   English

我想用 nexmo cURL 发送多条短信

[英]I want to send multiple sms with nexmo cURL

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"

I want to send multiple SMS so basically bulk SMS but it does not allow more than 1 number in the -d "to=44xxxxxxxxxx” \ bit so can someone please help me fix this. I will place a few links to see what is happening我想发送多条短信,所以基本上是批量短信,但它不允许在 -d "to=44xxxxxxxxxx" \ 位中使用超过 1 个号码,所以有人可以帮我解决这个问题。我会放置一些链接来看看发生了什么

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

please use that link to guide the answer.请使用该链接来指导答案。 Thank you very much非常感谢

Each API call can only send one SMS.每个 API 通话只能发送一条短信。 The article describes how to keep the connection open between sends but the API is also rate-limited so this may not help.这篇文章描述了如何在发送之间保持连接打开,但 API 也有速率限制,所以这可能无济于事。 This isn't the answer you were looking for but you will need to handle a queue or something yourself, and trickle the messages into the API one-by-one.这不是您要寻找的答案,但您需要自己处理队列或其他东西,并将消息逐个发送到 API 中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM