Skip to content

3. Curl

Yohannes Mekonnen edited this page Sep 5, 2023 · 1 revision

# Sending SMS to a Single Phone with Curl

curl -X POST "your_single_url" \
     -H "Content-Type: application/json" \
     -d "username=your_username" \
     -d "password=your_password" \
     -d "to=2519xxxxxxxxx" \
     -d "message=your_message"

# Sending SMS to a Multiple Phone with Curl

curl -X POST "your_list_url" \
     -H "Content-Type: application/json" \
     -d "username=your_username" \
     -d "password=your_password" \
     -d "to[]=2519xxxxxxxxx" \
     -d "to[]=2519xxxxxxxxx" \
     -d "to[]=2519xxxxxxxxx" \
     -d "message=your_message"
Clone this wiki locally