Project Description
WhatsAPI.Net for Windows RT Version
Forked from : https://github.com/shirioko/WhatsAPINet
In this project i am also using PclContrib which can be downloaded in : http://pclcontrib.codeplex.com which some modify to be align with whatsapp platform requirement .
all development progress will written in my blog : http://blog.riantono.com, but sorry currently will only in Bahasa :D
Note : Currently i am still on progress to doing this project. anyone can contribute to this project
There is issue in create key for generating registration token, maybe there is anyone who had expert in cryptography ?
Sample to Use :
App.xaml.cs
public static string Nickname = "Matrix"; public static string Sender = "xxxxxx"; // Mobile number with country code (but without + or 00) public static string Password = "xxxxx";//v2 password public static string Target = "xxxxxxx";// Mobile number to send the message to public static WhatsApp WhatsApp = new WhatsApp(Sender, Password, Nickname, true);
MainPage.xaml.cs
await App.WhatsApp.Connect(); await App.WhatsApp.Login(); await App.WhatsApp.SendNickname(App.Nickname); App.WhatsApp.PresenceSubscription(App.Target); App.WhatsApp.GetStatus(App.Target); var usrMan = new WhatsAppUserManager(); var tmpUser = usrMan.CreateUser(App.Target, "User"); App.WhatsApp.Message(tmpUser.GetFullJid(), "Halo"); App.WhatsApp.Disconnect();