本文整理汇总了PHP中WhatsProt::encryptPassword方法的典型用法代码示例。如果您正苦于以下问题:PHP WhatsProt::encryptPassword方法的具体用法?PHP WhatsProt::encryptPassword怎么用?PHP WhatsProt::encryptPassword使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WhatsProt
的用法示例。
在下文中一共展示了WhatsProt::encryptPassword方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: exit
echo "USAGE: " . $_SERVER['argv'][0] . " [-l] [-s <phone> <message>] [-i <phone>] [-set <status>]\n";
echo "\tphone: full number including country code, without '+' or '00'\n";
echo "\t-s: send message\n";
echo "\t-l: listen for new messages\n";
echo "\t-i: interactive conversation with <phone>\n";
echo "\t-set: Set Status to <status>\n";
exit(1);
}
$dst = $_SERVER['argv'][2];
$msg = "";
for ($i = 3; $i < $argc; $i++) {
$msg .= $_SERVER['argv'][$i] . " ";
}
echo "[] Logging in as '{$nickname}' ({$sender})\n";
$wa = new WhatsProt($sender, $imei, $nickname, true);
$url = "https://r.whatsapp.net/v1/exist.php?cc=" . $countrycode . "&in=" . $phonenumber . "&udid=" . $wa->encryptPassword();
$content = file_get_contents($url);
if (stristr($content, 'status="ok"') === false) {
echo "Wrong Password\n";
exit(0);
}
$wa->Connect();
$wa->Login();
if ($_SERVER['argv'][1] == "-i") {
echo "\n[] Interactive conversation with {$dst}:\n";
stream_set_timeout(STDIN, 1);
while (TRUE) {
$wa->PollMessages();
$buff = $wa->GetMessages();
if (!empty($buff)) {
print_r($buff);