string[] s = { "Phone Number1" ,"Phone Number2"};
WhatSocket.Instance.SendSync(s);
/ /Declare Delegate Event
WhatSocket.Instance.OnGetSyncResult += Instance_OnGetSyncResult;
//Delegate Event
void Instance_OnGetSyncResult(int index, string sid, Dictionary<string, string> existingUsers, string[] failedNumbers)
{
foreach (KeyValuePair<string, string> iteam in existingUsers)
{
MessageBox.Show("existing" + iteam.Key + iteam.Value);
}
foreach (string item in failedNumbers)
{
MessageBox.Show("not existing" + item);
};
}
WhatSocket.Instance.SendSync(s);
/ /Declare Delegate Event
WhatSocket.Instance.OnGetSyncResult += Instance_OnGetSyncResult;
//Delegate Event
void Instance_OnGetSyncResult(int index, string sid, Dictionary<string, string> existingUsers, string[] failedNumbers)
{
foreach (KeyValuePair<string, string> iteam in existingUsers)
{
MessageBox.Show("existing" + iteam.Key + iteam.Value);
}
foreach (string item in failedNumbers)
{
MessageBox.Show("not existing" + item);
};
}
15 Comments
Perfect! As get user nickname? Thanks!
ReplyDeleteThis comment has been removed by the author.
Deletehey, i am unable to read the message in .net API these days, the messages are encrypted, are you able to read the messages?
ReplyDeleteDoes .net API support it?
http://bhavdiptala.blogspot.in/2015/10/demo-code-send-image-in-whatsapp-usgin-c.html
Deleteusing Latest New .net API please download
I am unable to send images, please help me!
ReplyDeletehttp://bhavdiptala.blogspot.in/2015/10/demo-code-send-image-in-whatsapp-usgin-c.html
DeleteAny idea for C#.net Msg Broadcasting
ReplyDeleteBhavdip tala help on broadcasting issue
Delete
ReplyDeletebhavdip tala some help to explain!!!
can u bush an example pls.>>>>
ReplyDeleteBhavdip tala help on broadcasting issue
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteHello. I can't request the password. I execute the following sentence:
ReplyDeleteWhatsAppApi.Register.WhatsRegisterV2.RequestCode(numberphone, out password, "sms")
This sentence doesn't send me the code sms.
I'sorry for my english.
Thanks.