Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once './src/whatsprot.class.php';
- $username = "1XXXXXXXXX";
- $password = "password";
- $w = new WhatsProt($username, "0", "My Nickname", true); //Name your application by replacing “WhatsApp Messaging”
- $w->connect();
- $w->loginWithPassword($password);
- $target = '1xxxxxxxxx'; //Target Phone,reciever phone
- $message = 'This is my messagge';
- $w->SendPresenceSubscription($target); //Let us first send presence to user
- $w->sendMessage($target,$message ); // Send Message
- echo "Message Sent Successfully";
- ?>
- //simple password to view this script
- $config['webpassword'] = 'MakeUpPassword';
- $config['YOURNAME'] = array(
- 'id' => 'e807f1fcf82d132f9bb018ca6738a19f',
- 'fromNumber' => '441234567890',
- 'nick' => "YOURNICKNAME",
- 'waPassword' => "EsdfsawS+/ffdskjsdhwebdgxbs=",
- 'email' => 'testemail@gmail.com',
- 'emailPassword' => 'gmailpassword'
- );
Add Comment
Please, Sign In to add comment