Skip to content

Commit 9f9d604

Browse files
author
Tony Bedford
committed
Use JWT to be consistent with other messages scripts.
1 parent f5aefe9 commit 9f9d604

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

messages/mms/send-mms.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/usr/bin/env bash
22

33
source "../../config.sh"
4+
source "../../jwt.sh"
45

56
curl -X POST https://api.nexmo.com/v0.1/messages \
6-
-u "$NEXMO_API_KEY:$NEXMO_API_SECRET" \
7+
-H 'Authorization: Bearer '$JWT\
78
-H 'Content-Type: application/json' \
89
-H 'Accept: application/json' \
9-
-d '{
10+
-d $'{
1011
"from":{
1112
"type": "mms",
1213
"number": "'$FROM_NUMBER'"

0 commit comments

Comments
 (0)