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

前端 未结 2 984
逝去的感伤
逝去的感伤 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..

提交回复
热议问题