脚本宝典收集整理的这篇文章主要介绍了使用PHP通过WhatsApp API发送消息,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
<?PHP require "whatsapp.class.PHP"; // DEMO OF usage $wa = new WhatsApp("91XXXXXXXXXX","XXX-XXX","Nick Name"); $wa->Connect(); $t = $wa->Login(); $wa->message("5","91XXXXXXXXXX","Good code"); echo "Message sent"; ?>
我没有更改whatsapp.class.PHP文件中的任何内容.
我的文件是:
http://vvsindia.COM/stackoverflow/whatsapp.class.txt http://vvsindia.com/stackoverflow/func.txt http://vvsindia.com/stackoverflow/decode.txt
https://github.com/venomous0x/WhatsAPI/tree/master/examples
在apache中配置源代码并运行examples / whatsapp.PHP文件.
您必须更改以下配置.
// Simple password to view this script $config['webpassword'] = 'MakeUpPassword';
和
$config['YOURNAME'] = array( 'id' => 'e807F1fcf82d132f9bb018ca6738a19f','FromNumber' => '441234567890','nick' => "YOURNICKNAME",'waPassword' => "EsDFsawS+/ffdskjsdhwebdgxbs=",'email' => 'testemail@gmail.com','emailPassword' => 'gmailpassword' );
以上是脚本宝典为你收集整理的使用PHP通过WhatsApp API发送消息全部内容,希望文章能够帮你解决使用PHP通过WhatsApp API发送消息所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。