File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
sdk/communication/azure-communication-callautomation Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_
10
10
11
11
## Getting started
12
12
### Prerequisites
13
- - Python 3.7 or later is required to use this package.
13
+ - Python 3.8 or later is required to use this package.
14
14
- You need an [ Azure subscription] [ azure_sub ] to use this package.
15
15
- A deployed Communication Services resource. You can use the [ Azure Portal] [ azure_portal ] or the [ Azure PowerShell] [ azure_powershell ] to set it up.
16
16
@@ -32,11 +32,13 @@ pip install azure-communication-callautomation
32
32
## Examples
33
33
### Initialize CallAutomationClient
34
34
``` Python
35
+ from azure.identity import DefaultAzureCredential
35
36
from azure.communication.callautomation import (CallAutomationClient)
36
37
37
38
# Your unique Azure Communication service endpoint
38
39
endpoint_url = ' <ENDPOINT>'
39
- client = CallAutomationClient.from_connection_string(endpoint_url)
40
+ credential = DefaultAzureCredential()
41
+ client = CallAutomationClient(endpoint_url, credential)
40
42
```
41
43
42
44
### Create Call
@@ -55,7 +57,7 @@ callback_url = "https://<MY-EVENT-HANDLER-URL>/events"
55
57
# send out the invitation, creating call
56
58
result = client.create_call(
57
59
target_participant = user,
58
- callback_url = callback_uri
60
+ callback_url = callback_url
59
61
)
60
62
61
63
# this id can be used to do further actions in the call
You can’t perform that action at this time.
0 commit comments