duanjingwei7239 2017-01-28 03:40
浏览 82

whatsapp Chat-API失败[reason] => old_version

Hello I am trying to get Whatsapp chat-api to work in php,
using the exampleRegister.php. I am trying to get the password from the server but it keeps giving me an error

=> fail [reason] => old_version ) 
Fatal error: Uncaught exception 'Exception' with message 'There was a problem trying to request the code.' in C:\xampp\htdocs\sendwhatsappmsg\Chat-API-master\Chat-API-master\src\Registration.php:316 Stack trace: #0 C:\xampp\htdocs\sendwhatsappmsg\Chat-API-master\Chat-API-master\examples\exampleRegister.php(41): Registration->codeRequest('sms') #1 {main} thrown in C:\xampp\htdocs\sendwhatsappmsg\Chat-API-master\Chat-API-master\src\Registration.php on line 316

I already tried to update it with composer and download multi files from Github
all of them seem to give this error not sure what am doing wrong or maybe this api no longer works
any help or tip will be welcome.
If anyone know other Whatsapp api or better way to send msg from localserver/php to Whatsapp users please share :)

  • 写回答

3条回答 默认 最新

  • douxia3505 2017-05-08 20:37
    关注

    U have to update var $classesMd5 in token.php. Use this programm https://github.com/mgp25/classesMD5-64 (last toke is "5PhjPwAEWaaPFD4h3nM0hA==", also find here https://coderus.openrepos.net/whitesoft/whatsapp_scratch)

    Also u have to update Constains.php , set

    WHATSAPP_VER = '2.16.11'
    WHATSAPP_USER_AGENT = 'WhatsApp/2.17.174 Android/4.4.4 Device/Samsung-Galaxy_S3
    

    '

    评论

报告相同问题?

悬赏问题

  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用