You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/advanced-messaging/whatsapp/includes/templates/messages-quickstart-template-messages-java.md
+48-6Lines changed: 48 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,54 @@ ms.custom: include file
11
11
ms.author: armohamed
12
12
---
13
13
14
+
## Prerequisites
15
+
16
+
-[Register WhatsApp Business Account with your Azure Communication Services resource](./connect-whatsapp-business-account.md).
- Active WhatsApp phone number to receive messages.
19
+
20
+
## Object model
21
+
22
+
The following classes and interfaces handle some of the major features of the Azure Communication Services Messages SDK for Java.
23
+
24
+
| Class Name | Description |
25
+
| --- | --- |
26
+
|`NotificationMessagesClient`| Connects to your Azure Communication Services resource. It sends the messages. |
27
+
|`MessageTemplate`| Defines which template you use and the content of the template properties for your message. |
28
+
|`TemplateNotificationContent`| Defines the "who" and the "what" of the template message you intend to send. |
29
+
30
+
> [!NOTE]
31
+
> For more information, see the Azure SDK for Java reference at [com.azure.communication.messages Package](/java/api/com.azure.communication.messages).
32
+
33
+
### Supported WhatsApp template types
34
+
35
+
| Template type | Description |
36
+
| --- | --- |
37
+
| Text-based message templates | WhatsApp message templates are specific message formats with or without parameters. |
38
+
| Media-based message templates | WhatsApp message templates with media parameters for header components. |
39
+
| Interactive message templates | Interactive message templates expand the content you can send recipients, by including interactive buttons using the components object. Both Call-to-Action and Quick Reply are supported. |
40
+
| Location-based message templates | WhatsApp message templates with location parameters in terms Longitude and Latitude for header components.|
41
+
42
+
## Common configuration
43
+
44
+
Follow these steps to add the necessary code snippets to the `messages-quickstart.py` python program.
45
+
-[Create and manage WhatsApp template message](#create-and-manage-whatsapp-template-message).
46
+
-[Authenticate the client](#authenticate-the-client).
WhatsApp message templates are specific message formats that businesses use to send out notifications or customer care messages to people that opted in to notifications. Messages can include appointment reminders, shipping information, issue resolution, or payment updates. **Before start using Advanced messaging SDK to send templated messages, user needs to create required templates in the WhatsApp Business Platform**.
53
+
54
+
For more information about WhatsApp requirements for templates, see the WhatsApp Business Platform API references:
55
+
-[Create and Manage Templates](https://developers.facebook.com/docs/whatsapp/business-management-api/message-templates/).
- Businesses must also adhere to [opt-in requirements](https://developers.facebook.com/docs/whatsapp/overview/getting-opt-in) before sending messages to WhatsApp users.
59
+
60
+
[!INCLUDE [Common setting for using Advanced Messages SDK](./includes/common-setting-java.md)]
61
+
14
62
## Set up environment
15
63
To set up an environment for sending messages, complete the steps in the following sections.
16
64
@@ -25,18 +73,12 @@ To set up an environment for sending messages, complete the steps in the followi
25
73
## Code examples
26
74
27
75
Follow these steps to add required code snippets to the main function of your `App.java` file.
28
-
-[Start sending messages between a business and a WhatsApp user](#start-sending-messages-between-a-business-and-a-whatsapp-user).
29
-
-[Authenticate the client](#authenticate-the-client).
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/advanced-messaging/whatsapp/includes/templates/messages-quickstart-template-messages-javascript.md
+49-11Lines changed: 49 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,30 +11,68 @@ ms.custom: include file
11
11
ms.author: shamkh
12
12
---
13
13
14
-
## Setting up
15
-
To set up an environment for sending messages, complete the steps in the following sections.
14
+
## Prerequisites
16
15
17
-
### Prerequisite
18
-
-[WhatsApp Business Account registered with your Azure Communication Services resource](../../connect-whatsapp-business-account.md).
16
+
-[Register WhatsApp Business Account with your Azure Communication Services resource](./connect-whatsapp-business-account.md).
- Active WhatsApp phone number to receive messages.
20
19
-[Node.js](https://nodejs.org/) Active LTS and Maintenance LTS versions (We recommend 8.11.1 and 10.14.1).
21
20
-[Node.js](https://nodejs.org/) Active LTS and Maintenance LTS versions (8.11.1 and 10.14.1 are recommended)
22
-
- In a terminal or command window, run `node --version` to check that Node.js is installed
21
+
- In a terminal or command window, run `node --version` to check that Node.js is installed
23
22
24
-
[!INCLUDE [Setting up for JavaScript Application](../javascript-application-setup.md)]
23
+
## Object model
25
24
26
-
## Code examples
25
+
The following classes and interfaces handle some of the major features of the Azure Communication Services Messages SDK for Java.
27
26
28
-
Follow these steps to add required code snippets to the main function of your `send-messages.js` file.
29
-
-[Start sending messages between a business and a WhatsApp user](#start-sending-messages-between-a-business-and-a-whatsapp-user).
27
+
| Class Name | Description |
28
+
| --- | --- |
29
+
|`NotificationMessagesClient`| Connects to your Azure Communication Services resource. It sends the messages. |
30
+
|`MessageTemplate`| Defines which template you use and the content of the template properties for your message. |
31
+
|`TemplateNotificationContent`| Defines the "who" and the "what" of the template message you intend to send. |
32
+
33
+
> [!NOTE]
34
+
> For more information, see the Azure SDK for JavaScript reference [@azure-rest/communication-messages package](/javascript/api/@azure-rest/communication-messages)
35
+
36
+
### Supported WhatsApp template types
37
+
38
+
| Template type | Description |
39
+
| --- | --- |
40
+
| Text-based message templates | WhatsApp message templates are specific message formats with or without parameters. |
41
+
| Media-based message templates | WhatsApp message templates with media parameters for header components. |
42
+
| Interactive message templates | Interactive message templates expand the content you can send recipients, by including interactive buttons using the components object. Both Call-to-Action and Quick Reply are supported. |
43
+
| Location-based message templates | WhatsApp message templates with location parameters in terms Longitude and Latitude for header components.|
44
+
45
+
## Common configuration
46
+
47
+
Follow these steps to add the necessary code snippets to the `messages-quickstart.py` python program.
48
+
-[Create and manage WhatsApp template message](#create-and-manage-whatsapp-template-message).
30
49
-[Authenticate the client](#authenticate-the-client).
WhatsApp message templates are specific message formats that businesses use to send out notifications or customer care messages to people that opted in to notifications. Messages can include appointment reminders, shipping information, issue resolution, or payment updates. **Before start using Advanced messaging SDK to send templated messages, user needs to create required templates in the WhatsApp Business Platform**.
56
+
57
+
For more information about WhatsApp requirements for templates, see the WhatsApp Business Platform API references:
58
+
-[Create and Manage Templates](https://developers.facebook.com/docs/whatsapp/business-management-api/message-templates/).
- Businesses must also adhere to [opt-in requirements](https://developers.facebook.com/docs/whatsapp/overview/getting-opt-in) before sending messages to WhatsApp users.
62
+
63
+
[!INCLUDE [Common setting for using Advanced Messages SDK](./includes/common-setting-javascript.md)]
64
+
65
+
## Setting up
66
+
To set up an environment for sending messages, complete the steps in the following sections.
67
+
68
+
[!INCLUDE [Setting up for JavaScript Application](../javascript-application-setup.md)]
69
+
70
+
## Code examples
71
+
72
+
Follow these steps to add required code snippets to the main function of your `send-messages.js` file.
33
73
-[List WhatsApp templates in the Azure portal](#list-whatsapp-templates-in-the-azure-portal).
34
74
-[Send template message with text parameters in the body](#send-template-message-with-text-parameters-in-the-body).
35
75
36
-
[!INCLUDE [Common setting for using Advanced Messages SDK](../common-setting-javascript.md)]
37
-
38
76
### List WhatsApp templates in the Azure portal
39
77
40
78
To view your templates in the Azure portal, go to your Azure Communication Services resource > **Advanced Messaging** > **Templates**.
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/advanced-messaging/whatsapp/includes/templates/messages-quickstart-template-messages-python.md
+48Lines changed: 48 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,54 @@ ms.custom: include file
11
11
ms.author: shamkh
12
12
---
13
13
14
+
## Prerequisites
15
+
16
+
-[Register WhatsApp Business Account with your Azure Communication Services resource](./connect-whatsapp-business-account.md).
- Active WhatsApp phone number to receive messages.
19
+
20
+
## Object model
21
+
22
+
The following classes and interfaces handle some of the major features of the Azure Communication Services Messages SDK for Python.
23
+
24
+
| Class Name | Description |
25
+
| --- | --- |
26
+
|`NotificationMessagesClient`| Connects to your Azure Communication Services resource. It sends the messages. |
27
+
|`MessageTemplate`| Defines which template you use and the content of the template properties for your message. |
28
+
|`TemplateNotificationContent`| Defines the "who" and the "what" of the template message you intend to send. |
29
+
30
+
> [!NOTE]
31
+
> For more information, seer the Azure SDK for Python reference [messages Package](/python/api/azure-communication-messages/azure.communication.messages).
32
+
33
+
### Supported WhatsApp template types
34
+
35
+
| Template type | Description |
36
+
| --- | --- |
37
+
| Text-based message templates | WhatsApp message templates are specific message formats with or without parameters. |
38
+
| Media-based message templates | WhatsApp message templates with media parameters for header components. |
39
+
| Interactive message templates | Interactive message templates expand the content you can send recipients, by including interactive buttons using the components object. Both Call-to-Action and Quick Reply are supported. |
40
+
| Location-based message templates | WhatsApp message templates with location parameters in terms Longitude and Latitude for header components.|
41
+
42
+
## Common configuration
43
+
44
+
Follow these steps to add the necessary code snippets to the `messages-quickstart.py` python program.
45
+
-[Create and manage WhatsApp template message](#create-and-manage-whatsapp-template-message).
46
+
-[Authenticate the client](#authenticate-the-client).
WhatsApp message templates are specific message formats that businesses use to send out notifications or customer care messages to people that opted in to notifications. Messages can include appointment reminders, shipping information, issue resolution, or payment updates. **Before start using Advanced messaging SDK to send templated messages, user needs to create required templates in the WhatsApp Business Platform**.
53
+
54
+
For more information about WhatsApp requirements for templates, see the WhatsApp Business Platform API references:
55
+
-[Create and Manage Templates](https://developers.facebook.com/docs/whatsapp/business-management-api/message-templates/).
- Businesses must also adhere to [opt-in requirements](https://developers.facebook.com/docs/whatsapp/overview/getting-opt-in) before sending messages to WhatsApp users.
59
+
60
+
[!INCLUDE [Common setting for using Advanced Messages SDK](./includes/common-setting-python.md)]
61
+
14
62
## Set up environment
15
63
16
64
[!INCLUDE [Setting up for Python Application](../python-application-setup.md)]
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/advanced-messaging/whatsapp/includes/templates/template-messages-quick-reference-net.md
+48Lines changed: 48 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,54 @@ ms.custom: include file
11
11
ms.author: memontic
12
12
---
13
13
14
+
## Prerequisites
15
+
16
+
-[Register WhatsApp Business Account with your Azure Communication Services resource](./connect-whatsapp-business-account.md).
- Active WhatsApp phone number to receive messages.
19
+
20
+
## Object model
21
+
22
+
The following classes and interfaces handle some of the major features of the Azure Communication Services Messages SDK for Python.
23
+
24
+
| Class Name | Description |
25
+
| --- | --- |
26
+
|`NotificationMessagesClient`| Connects to your Azure Communication Services resource. It sends the messages. |
27
+
|`MessageTemplate`| Defines which template you use and the content of the template properties for your message. |
28
+
|`TemplateNotificationContent`| Defines the "who" and the "what" of the template message you intend to send. |
29
+
30
+
> [!NOTE]
31
+
> For more information, see the Azure SDK for .NET reference [Azure.Communication.Messages Namespace](/dotnet/api/azure.communication.messages).
32
+
33
+
### Supported WhatsApp template types
34
+
35
+
| Template type | Description |
36
+
| --- | --- |
37
+
| Text-based message templates | WhatsApp message templates are specific message formats with or without parameters. |
38
+
| Media-based message templates | WhatsApp message templates with media parameters for header components. |
39
+
| Interactive message templates | Interactive message templates expand the content you can send recipients, by including interactive buttons using the components object. Both Call-to-Action and Quick Reply are supported. |
40
+
| Location-based message templates | WhatsApp message templates with location parameters in terms Longitude and Latitude for header components.|
41
+
42
+
## Common configuration
43
+
44
+
Follow these steps to add the necessary code snippets to the `messages-quickstart.py` python program.
45
+
-[Create and manage WhatsApp template message](#create-and-manage-whatsapp-template-message).
46
+
-[Authenticate the client](#authenticate-the-client).
WhatsApp message templates are specific message formats that businesses use to send out notifications or customer care messages to people that opted in to notifications. Messages can include appointment reminders, shipping information, issue resolution, or payment updates. **Before start using Advanced messaging SDK to send templated messages, user needs to create required templates in the WhatsApp Business Platform**.
53
+
54
+
For more information about WhatsApp requirements for templates, see the WhatsApp Business Platform API references:
55
+
-[Create and Manage Templates](https://developers.facebook.com/docs/whatsapp/business-management-api/message-templates/).
- Businesses must also adhere to [opt-in requirements](https://developers.facebook.com/docs/whatsapp/overview/getting-opt-in) before sending messages to WhatsApp users.
59
+
60
+
[!INCLUDE [Common setting for using Advanced Messages SDK](./includes/common-setting-net.md)]
61
+
14
62
## Set up environment
15
63
16
64
[!INCLUDE [Setting up for .NET Application](../dot-net-application-setup.md)]
0 commit comments