Skip to content

Commit 01c60eb

Browse files
author
Mark Lewin
committed
Add send binary SMS snippet
1 parent cd32891 commit 01c60eb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

messaging/sms/send-binary-sms.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
source "../../config.sh"
3+
4+
curl -X "POST" "https://rest.nexmo.com/sms/json" \
5+
-d "from=AcmeInc" \
6+
-d "type=binary" \
7+
-d "body=48656C6C6F21" \
8+
-d "udh=0" \
9+
-d "to=$TO_NUMBER" \
10+
-d "api_key=$NEXMO_API_KEY" \
11+
-d "api_secret=$NEXMO_API_SECRET"

0 commit comments

Comments
 (0)