drzfz9995 2017-01-04 11:53
浏览 69

Whatsapi PHP内部服务器错误

I'm trying to use Whatsapi for PHP but it's not working while I call the loginWithPassword function. My code:

<?php
require_once __DIR__.'/src/whatsprot.class.php';
require_once __DIR__.'/src/events/MyEvents.php';

$username = 'Number';
$password = 'Password';
$nickname = 'Nick';
$target = "targetNumber";
$debug = true;  

$w = new WhatsProt($username, $nickname, $debug);
$events = new MyEvents($w);
$events->setEventsToListenFor($events->activeEvents);

$w->connect();
$w->loginWithPassword($password);
$w->sendMessage($target, 'Guess the number :)');
$w->sendMessage($target, 'Sent from RopajiBotServices at '.date('H:i'));
?>

This is the message I receive:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@basededatostoons.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Thanks

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
    • ¥15 关于#Java#的问题,如何解决?
    • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
    • ¥15 想问一下树莓派接上显示屏后出现如图所示画面,是什么问题导致的
    • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
    • ¥15 cmd cl 0x000007b
    • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
    • ¥500 火焰左右视图、视差(基于双目相机)
    • ¥100 set_link_state
    • ¥15 虚幻5 UE美术毛发渲染