We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5aefe9 commit 9f9d604Copy full SHA for 9f9d604
messages/mms/send-mms.sh
@@ -1,12 +1,13 @@
1
#!/usr/bin/env bash
2
3
source "../../config.sh"
4
+source "../../jwt.sh"
5
6
curl -X POST https://api.nexmo.com/v0.1/messages \
- -u "$NEXMO_API_KEY:$NEXMO_API_SECRET" \
7
+ -H 'Authorization: Bearer '$JWT\
8
-H 'Content-Type: application/json' \
9
-H 'Accept: application/json' \
- -d '{
10
+ -d $'{
11
"from":{
12
"type": "mms",
13
"number": "'$FROM_NUMBER'"
0 commit comments