Skip to content

Latest commit

 

History

History
 
 

messages-quickstart

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

readme.md

page_type sample
languages
Python
Products
azure
azure-communication-messages

Advanced Messages quick start

For full instructions on how to build this code sample from scratch, look at Quickstart: Send WhatsApp Messages

Prerequisites

Code Structure

To run any sample, please select the respective python script.

  • ./messages-quickstart/send_text_notification_messages.py: contains sample code for sending whatsapp messages.

Install the packages

From a console prompt, navigate to the directory containing the messages-quickstart.py file, then execute the following command:

pip install azure-communication-messages

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. cd communication-services-python-quickstarts/messages-quickstart
  4. With the Communication Services procured in pre-requisites, set environment variables as needed in Sample file and update the same in send_text_notification_messages.py file.

Run Locally

From a console prompt, navigate to the directory containing the send_text_notification_messages.py file, then execute the following command to run the app.

python ./send_text_notification_messages.py

Note: Please follow the same approach for running any Sample.