Closed garchiro7 closed 2 months ago
scheduled for 5/24 2-4pm pst
See https://github.com/Azure/azure-rest-api-specs/issues/18777 for the API Stewardship Board review.
Hi @garchiro7, we deeply appreciate your input into this project. Regrettably, this issue has remained unresolved for over 2 years and inactive for 30 days, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support.
Responsible: geling.li@microsoft.com
Team: ACS - Cross Platform Messaging
Docs & Champion scenarios: Fire and Forget Swagger API change on Gateway - Fire and Forget
New Operation to be added
SendThreadlessMessageAsync:
Sends a fire and forget threadless message to CPM
Method
SendThreadlessMessageOptions Payload:
Response:
Having a New Threadless Messaging Client vs New operations on existing Chat Client
More example usages:
SendThreadlessMessageOptions options = new SendThreadlessMessageOptions
{
From = "business phone number",
To = "37:whatsapp:16315551234",
Type = ThreadlessMessageType.Text,
Content = "Come on guys, lets go for lunch together."
};
SendThreadlessMessageResults sendThreadlessMessageResult = chatClient.SendThreadlessMessage(options).ConfigureAwait(false);
{
From = "business phone number",
To = "37:whatsapp:16315551234",
Type = ThreadlessMessageType.Media,
Media = new MessageMedia("https://IMAGE\_URL")
};
SendThreadlessMessageResults sendThreadlessMessageResult = chatClient.SendThreadlessMessage(options).ConfigureAwait(false);
{
Language = "appointment_update",
Name = "en_US",
Parameters = new List
};
SendThreadlessMessageOptions options = new SendThreadlessMessageOptions
{
From = "business phone number",
To = "37:whatsapp:16315551234",
Type = ThreadlessMessageType.Template,
Template = template
};
SendThreadlessMessageResults sendThreadlessMessageResult = chatClient.SendThreadlessMessage(options).ConfigureAwait(false);
Api Spec:
azure-rest-api-specs/communicationserviceschat.json
PR-View
Sdk view: @azure/communication-chat - apiview.dev