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
require('vendor/autoload.php');
$username = "91932824xxxx";
$nickname = "Rahil";
$password = "lgP2OkhexINDxxxxxxxxxxxxxx"; // The one we got registering the number
$debug = true;
// Create a instance of WhastPort.
$w = new WhatsProt($username, $nickname, $debug);
//$w = new WhatsProt($username,$password, $nickname, $debug);
$events = new MyEvents($w);
$events->setEventsToListenFor($events->activeEvents); //You can also pass in your own array with a list of events to listen too instead.
//Now continue with your script.
$w->connect();
$w->loginWithPassword($password);
$target = '91991336xxxx'; // The number of the person you are sending the message
$message = 'Hi! :) this is a test message';
$w->sendMessage($target , $message);
Above is my code to send`
The text was updated successfully, but these errors were encountered:
`<?php
require('vendor/autoload.php');
$username = "91932824xxxx";
$nickname = "Rahil";
$password = "lgP2OkhexINDxxxxxxxxxxxxxx"; // The one we got registering the number
$debug = true;
// Create a instance of WhastPort.
$w = new WhatsProt($username, $nickname, $debug);
//$w = new WhatsProt($username,$password, $nickname, $debug);
$events = new MyEvents($w);
$events->setEventsToListenFor($events->activeEvents); //You can also pass in your own array with a list of events to listen too instead.
//Now continue with your script.
$w->connect();
$w->loginWithPassword($password);
$target = '91991336xxxx'; // The number of the person you are sending the message
$message = 'Hi! :) this is a test message';
$w->sendMessage($target , $message);
Above is my code to send`
The text was updated successfully, but these errors were encountered: