diff --git a/sdk/communication/azure-communication-chat/README.md b/sdk/communication/azure-communication-chat/README.md index 9f825335ffaa..b178c8bd0e48 100644 --- a/sdk/communication/azure-communication-chat/README.md +++ b/sdk/communication/azure-communication-chat/README.md @@ -22,14 +22,14 @@ pip install --pre azure-communication-chat ## User Access Tokens -User access tokens enable you to build client applications that directly authenticate to Azure Communication Services. You can generate these tokens with azure.communication.administration module, and then use them to initialize the Communication Services SDKs. Example of using azure.communication.administration: +User access tokens enable you to build client applications that directly authenticate to Azure Communication Services. You can generate these tokens with azure.communication.identity module, and then use them to initialize the Communication Services SDKs. Example of using azure.communication.identity: ```bash -pip install --pre azure-communication-administration +pip install --pre azure-communication-identity ``` ```python -from azure.communication.administration import CommunicationIdentityClient +from azure.communication.identity import CommunicationIdentityClient identity_client = CommunicationIdentityClient.from_connection_string("") user = identity_client.create_user() tokenresponse = identity_client.issue_token(user, scopes=["chat"]) @@ -374,7 +374,7 @@ to create a resource, then set some Environment Variables set AZURE_COMMUNICATION_SERVICE_ENDPOINT="https://.communcationservices.azure.com" set AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING="" -pip install azure-communication-administration +pip install azure-communication-identity python samples\chat_client_sample.py python samples\chat_client_sample_async.py diff --git a/sdk/communication/azure-communication-chat/dev_requirements.txt b/sdk/communication/azure-communication-chat/dev_requirements.txt index 1281667d25f3..b88483d99721 100644 --- a/sdk/communication/azure-communication-chat/dev_requirements.txt +++ b/sdk/communication/azure-communication-chat/dev_requirements.txt @@ -1,5 +1,5 @@ -e ../../../tools/azure-devtools -e ../../../tools/azure-sdk-tools ../azure-communication-nspkg --e ../azure-communication-administration +-e ../azure-communication-identity aiohttp>=3.0; python_version >= '3.5' \ No newline at end of file