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
{{ message }}
This repository was archived by the owner on Dec 18, 2023. It is now read-only.
Implementation note
The functionality is only available for WhatsApp Business.
This method is available in both synchronous and asynchronous implementations.
Response
Parameter
Description
The data type of the parameter
LabelCollection
A collection of label.
LabelCollection
Parameters of the LabelCollection
Параметр
Описание
Тип данных параметра
LabelId
Unique ID of the label.
String
HexColor
Label Color.
String
LabelName
Name of the label.
String
Example
usingSystem;usingChatApi.Core.Connect;usingChatApi.Core.Connect.Interfaces;usingChatApi.WA.Dialogs;usingChatApi.WA.Dialogs.Operations.Interfaces;usingChatApi.WA.Dialogs.Requests.UI;usingChatApi.WA.Dialogs.Requests.UI.Interfaces;usingChatApiClient.Properties;namespaceChatApiClient{internalclassProgram{internalstaticIWhatsAppConnectConnect{get;set;}internalstaticvoidMain(){// put your chat-api's dataConnect=newWhatsAppConnect(WhatsApp_Server,WhatsApp_Instance,WhatsApp_Token);IDialogOperationsdialogOperations=newDialogOperations(Connect);IUserInterfaceOperationsuserInterfaceOperations=dialogOperations.UserInterfaceOperations.Value;IWhatsAppBusinessOperationswhatsAppBusinessOperations=userInterfaceOperations.WhatsAppBusinessOperations.Value;varchatApiResponse=whatsAppBusinessOperations.GetLabels();if(!chatApiResponse.IsSuccess)Console.WriteLine(chatApiResponse.Exception);varresponse=chatApiResponse.GetResult();Console.WriteLine(response?.PrintMembers());}}}