Skip to content

Commit

Permalink
Merge pull request #19 from Nexmo/content/voice-building-block
Browse files Browse the repository at this point in the history
Create first building block for voice API
  • Loading branch information
tommorris authored Apr 12, 2017
2 parents 1926adb + dc44b10 commit b50a4da
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
8 changes: 4 additions & 4 deletions _documentation/voice/building-blocks/make-a-phone-call.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ wip: true

# Make a phone call

**Content for this page has not yet been migrated. This is a placeholder.**
In the examples replace `API_KEY`, `API_SECRET`, `APPLICATION_ID`, `PRIVATE_KEY_PATH`, `TO_NUMBER` and `FROM_NUMBER` with real values.

Vestibulum id ligula porta felis euismod semper. Maecenas sed diam eget risus varius blandit sit amet non magna. Nullam quis risus eget urna mollis ornare vel eu leo. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Nullam quis risus eget urna mollis ornare vel eu leo. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Integer posuere erat a ante venenatis dapibus posuere velit aliquet.

Cras mattis consectetur purus sit amet fermentum. Cras mattis consectetur purus sit amet fermentum. Donec ullamcorper nulla non metus auctor fringilla. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Aenean lacinia bibendum nulla sed consectetur.
```tabbed_content
source: '_examples/voice/make-a-tts-call'
```
12 changes: 11 additions & 1 deletion _examples/voice/make-a-tts-call/Python
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@ pip install nexmo
Create a `call.py`:

```python
// Example pending
import nexmo

PRIVATE_KEY = open(PRIVATE_KEY_PATH, 'r').read()
client = nexmo.Client(key=API_KEY, secret=API_SECRET,
application_id=APPLICATION_ID, private_key=PRIVATE_KEY)

response = client.create_call({
'to': [{'type': 'phone', 'number': 'TO_NUMBER'}],
'from': {'type': 'phone', 'number': 'FROM_NUMBER'},
'answer_url': ['https://nexmo-community.github.io/ncco-examples/first_call_talk.json']
})
```

Run:
Expand Down

0 comments on commit b50a4da

Please sign in to comment.