Skip to content

Latest commit

 

History

History
 
 

access-tokens-quickstart

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

page_type sample
languages
Python
products
azure
azure-communication-services

Create and manage access tokens

For full instructions on how to build this code sample from scratch, look at Quickstart: Create and manage access tokens

Prerequisites

Code Structure

  • ./access-tokens-quickstart/issue-access-tokens.py: contains code for creating and managing access tokens.

Install the package

pip install azure-communication-identity

Before running sample code

  1. 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.

  2. git clone https://github.com/Azure-Samples/communication-services-python-quickstarts.git

  3. With the Communication Services procured in pre-requisites, add connection string to environment variable using below command

    setx COMMUNICATION_SERVICES_CONNECTION_STRING <CONNECTION_STRING>

  4. Add pip installation to PATH variables.

Run Locally

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