Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (13 sloc) 415 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},
'ncco': [{'action': 'talk', 'text': 'This is a text to speech call from Nexmo'}]
})
pprint(response)
You can’t perform that action at this time.