Permalink
Switch branches/tags
Find file Copy path
6af199a Oct 23, 2018
3 contributors

Users who have contributed to this file

@mheap @lornajane @gahag
executable file 11 lines (9 sloc) 424 Bytes
#!/usr/bin/env bash
source "../../config.sh"
source "../../jwt.sh"
curl -X POST https://api.nexmo.com/v1/calls\
-H "Authorization: Bearer "$JWT\
-H "Content-Type: application/json"\
-d '{"to":[{"type": "phone","number": "'$TO_NUMBER'"}],
"from": {"type": "phone","number": "'$NEXMO_NUMBER'"},
"answer_url":["https://raw.githubusercontent.com/nexmo-community/ncco-examples/gh-pages/text-to-speech.json"]}'