Skip to content
This repository was archived by the owner on May 24, 2023. It is now read-only.

Commit fd7ad0e

Browse files
author
Tony Bedford
committed
Add a new building block.
1 parent c9dcd14 commit fd7ad0e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

voice/mute-a-call.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env python3
2+
import nexmo
3+
import time
4+
from pprint import pprint
5+
6+
client = nexmo.Client(
7+
application_id=APPLICATION_ID,
8+
private_key=APPLICATION_PRIVATE_KEY_PATH,
9+
)
10+
11+
response = client.update_call(UUID, action="mute")
12+
pprint(response)
13+
time.sleep(5)
14+
response = client.update_call(UUID, action="unmute")
15+
pprint(response)

0 commit comments

Comments
 (0)