| page_type | sample | ||
|---|---|---|---|
| languages |
|
||
| Products |
|
For full instructions on how to build this code sample from scratch, look at Quickstart: Send WhatsApp Messages
- An Azure account with an active subscription. Create an account for free.
- Install Python 3.7 or above.
- Create an Azure Communication Services resource. For details, see Quickstart: Create and manage Communication Services resources. You'll need to record your resource endpoint for this quickstart.
- Active WhatsApp phone number to receive messages.
- WhatsApp Business Account registered with your Azure Communication Services resource
To run any sample, please select the respective python script.
- ./messages-quickstart/send_text_notification_messages.py: contains sample code for sending whatsapp messages.
From a console prompt, navigate to the directory containing the messages-quickstart.py file, then execute the following command:
pip install azure-communication-messages- 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.gitcd communication-services-python-quickstarts/messages-quickstart- 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.
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.pyNote: Please follow the same approach for running any Sample.