How to send message from WhatsApp in PHP with WhatsAPI Official?

前端 未结 2 985
逝去的感伤
逝去的感伤 2021-01-31 11:15

I\'m trying to use the WhatsApi Official library to send a message via WhatsApp from a php file. I\'ve moved in my Apache web server the library, in a folder call test, like thi

相关标签:
2条回答
  • 2021-01-31 11:33

    You can use below script to send message from whatsapp in PHP.

    https://github.com/venomous0x/WhatsAPI/tree/master/examples

    Configure the source code in Apache and run examples/whatsapp.php file.

    You have change below configurations.

    //simple password to view this script
    $config['webpassword'] = 'MakeUpPassword';
    

    and

    $config['YOURNAME'] = array(
    'id' => 'e807f1fcf82d132f9bb018ca6738a19f',
    'fromNumber' => '441234567890',
    'nick' => "YOURNICKNAME",
    'waPassword' => "EsdfsawS+/ffdskjsdhwebdgxbs=",
    'email' => 'testemail@gmail.com',
    'emailPassword' => 'gmailpassword'
    );
    

    It's working for me..

    0 讨论(0)
  • 2021-01-31 11:50

    afaik you are probably better off currently writing an interface to a python project. E.g. have a microservice that does sending of messages for you in python, and you call them via some json request or similar

    see this project, looks promising: https://github.com/tgalal/yowsup

    it seems like the only viable option so far, as everything else was shut down or has a high probability to get your account banned

    see discussion here:

    https://stackoverflow.com/a/46635985/533426

    0 讨论(0)
提交回复
热议问题