Guest User

Untitled

a guest
Apr 5th, 2018
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. <?php
  2. require_once './src/whatsprot.class.php';
  3. $username = "1XXXXXXXXX";
  4. $password = "password";
  5. $w = new WhatsProt($username, "0", "My Nickname", true); //Name your application by replacing “WhatsApp Messaging”
  6. $w->connect();
  7. $w->loginWithPassword($password);
  8. $target = '1xxxxxxxxx'; //Target Phone,reciever phone
  9. $message = 'This is my messagge';
  10. $w->SendPresenceSubscription($target); //Let us first send presence to user
  11. $w->sendMessage($target,$message ); // Send Message
  12. echo "Message Sent Successfully";
  13. ?>
  14.  
  15. //simple password to view this script
  16. $config['webpassword'] = 'MakeUpPassword';
  17.  
  18. $config['YOURNAME'] = array(
  19. 'id' => 'e807f1fcf82d132f9bb018ca6738a19f',
  20. 'fromNumber' => '441234567890',
  21. 'nick' => "YOURNICKNAME",
  22. 'waPassword' => "EsdfsawS+/ffdskjsdhwebdgxbs=",
  23. 'email' => 'testemail@gmail.com',
  24. 'emailPassword' => 'gmailpassword'
  25. );
Add Comment
Please, Sign In to add comment