I'm new to sh, I apologize if it's a really dumb question. I'm trying to develop a script to communicate with an SMS sending API.
The code is as follows:
#!/bin/bash
TEXTO='MENSAGEM'
NUM="41999999999"
url="https://api.smsdev.com.br/v1/send?key=KEY&type=9&number"
curl -G --data-urlencode "msg=$TEXTO" --request GET --url "$url=$NUM"
With a single number in the parameter (NUM), it works normally. However I would like to insert more numbers. The API only accepts one number per request, would it be possible to make the script make a request for each number?
Thank you very much in advance! :)