Skip to content

Commit ba654d2

Browse files
author
Julia Biro
authored
Merge pull request Vonage#90 from Th3R4nd0m/master
Add curl code snippet for transferring a call with inline NCCO. Add transfer-call-inline-ncco.sh
2 parents 39cddcb + d3b2c35 commit ba654d2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
source "../../config.sh"
3+
source "../../jwt.sh"
4+
5+
curl -X PUT https://api.nexmo.com/v1/calls/$UUID \
6+
-H "Authorization: Bearer "$JWT \
7+
-H "Content-Type: application/json"\
8+
-d '{"action": "transfer",
9+
"destination": {"type": "ncco", "ncco": [{"action":"talk", "text":"This is a transfer action using an inline NCCO"}]}}'

0 commit comments

Comments
 (0)