Permalink
3617568 Apr 30, 2018
1 contributor

Users who have contributed to this file

executable file 16 lines (13 sloc) 387 Bytes
#!/usr/bin/env python3
import nexmo
from pprint import pprint
client = nexmo.Client(
application_id=APPLICATION_ID,
private_key=APPLICATION_PRIVATE_KEY_PATH,
)
response = client.create_call({
'to': [{'type': 'phone', 'number': TO_NUMBER}],
'from': {'type': 'phone', 'number': NEXMO_NUMBER},
'answer_url': ['https://developer.nexmo.com/ncco/tts.json']
})
pprint(response)