| page_type | sample | ||
|---|---|---|---|
| languages |
|
||
| products |
|
For full instructions on how to build this code sample from scratch, look at Quickstart: Create and manage access tokens
- An Azure account with an active subscription. Create an account for free.
- Python 3.7, or above.
- An active Communication Services resource and connection string.. Create a Communication Services resource.
- ./access-tokens-quickstart/issue-access-tokens.py: contains code for creating and managing access tokens.
pip install azure-communication-identity
-
Open an instance of PowerShell, Windows Terminal, Command Prompt or equivalent and navigate to the directory that you'd like to clone the sample to.
-
git clone https://github.com/Azure-Samples/communication-services-python-quickstarts.git -
With the Communication Services procured in pre-requisites, add connection string to environment variable using below command
setx COMMUNICATION_SERVICES_CONNECTION_STRING <CONNECTION_STRING>
-
Add pip installation to PATH variables.
From a console prompt, navigate to the directory containing the issue-access-tokens.py file, then execute the following python command to run the app.
python ./issue-access-tokens.py