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:
That is a PHP configuration max_execution_time... you can change in php.ini
or con init_set ('max_execution_time', seconds)
El 7 dic. 2017 14:58, "carlositos" <notifications@github.com> escribió:
Hi!
I have the same issue. Does anyone fix this?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1221 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACrGGN5Hc1TDF7rdiPDg8p6BwPjIRmJPks5s9-7ogaJpZM4PG61q>
.
`<?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: