Whatsapp PHP api 接收编码信息
Whatsapp PHP api receiving encoded message
我正在使用 Whatsapp PHP api 发送和接收消息。
使用我自己的 phone 号码时,我可以正确收到消息,但使用朋友的号码会发送加密消息。我在 github.
上遇到了问题
$debug = true;
$username = '91xxxxxxxxxxx';
$password = "L9Djoxxxx+/HxxxxxWK3X24=";
$nickname = 'SG';
$w = new WhatsProt($username, $nickname, $debug);
$w->connect();
$w->loginWithPassword($password);
$w->sendSetProfilePicture("demo/venom.jpg");
$s= $w->pollMessage();
for($i=0;$i<20;$i++){
print($m->NodeString(""));
}
这是一条编码消息:
<message from="91xxxxxxxxxx@s.whatsapp.net" type="text" id="wsyC+kzW5JJv2" offline="0" t="1444469647" notify="Bikash">
<enc v="1" type="pkmsg">3ýš²!øbƒÈÌl`¹$E š‚A¹“"´®ä¾ì3Žvfx! ?CgŸÙTׂT¯Œp¶ìì.»ÓÊ¿~†6â…<"B3
!¶ÇIOÂóK†B(A=q”Ysþ¥(nrÎÏ(™‚jg"b’¸=Ç—j|HûS§³R(„ͼ0</enc>
</message>
根据 API 更改 (website),此问题于 11 月 17 日开始。
17 Nov, 2014 Better encryption, more work for us!
Is not as easy to implement the 'encrypt' feature as i thought.
WhatsApp has done a nice work this time (at least for now). We are
working hard on this, and it will take time to us to implement this
feature.
WhatsApp is using axolotl from WhisperSystems, you can check here.
We know more or less how it works, but as i said, this will take time
for us. So be patient. We'll update you as we continue on this.
Regards,
The WhatsAPI Official Team
目前应该解决:
27 Dec, 2014 We did it!
It really has been a long time since we went to work on WhatsApp
encryption, but we have finally did it! and it will be soon on the
API, first it will appear in python API (yowsup) and later here in
PHP.
The solution was to port the library.
I just wanted to give this good news and wish you a merry christmas.
Regards,
The WhatsAPI Official Team
我也遇到了同样的问题。但现在它是固定的。你可以看到他们的api。他们已在 github 上更新了 api 并修复了加密问题。
End to end encryption support: Now the API is able to encrypt and decrypt messages automatically
我正在使用 Whatsapp PHP api 发送和接收消息。
使用我自己的 phone 号码时,我可以正确收到消息,但使用朋友的号码会发送加密消息。我在 github.
上遇到了问题$debug = true;
$username = '91xxxxxxxxxxx';
$password = "L9Djoxxxx+/HxxxxxWK3X24=";
$nickname = 'SG';
$w = new WhatsProt($username, $nickname, $debug);
$w->connect();
$w->loginWithPassword($password);
$w->sendSetProfilePicture("demo/venom.jpg");
$s= $w->pollMessage();
for($i=0;$i<20;$i++){
print($m->NodeString(""));
}
这是一条编码消息:
<message from="91xxxxxxxxxx@s.whatsapp.net" type="text" id="wsyC+kzW5JJv2" offline="0" t="1444469647" notify="Bikash">
<enc v="1" type="pkmsg">3ýš²!øbƒÈÌl`¹$E š‚A¹“"´®ä¾ì3Žvfx! ?CgŸÙTׂT¯Œp¶ìì.»ÓÊ¿~†6â…<"B3
!¶ÇIOÂóK†B(A=q”Ysþ¥(nrÎÏ(™‚jg"b’¸=Ç—j|HûS§³R(„ͼ0</enc>
</message>
根据 API 更改 (website),此问题于 11 月 17 日开始。
17 Nov, 2014 Better encryption, more work for us!
Is not as easy to implement the 'encrypt' feature as i thought. WhatsApp has done a nice work this time (at least for now). We are working hard on this, and it will take time to us to implement this feature.
WhatsApp is using axolotl from WhisperSystems, you can check here.
We know more or less how it works, but as i said, this will take time for us. So be patient. We'll update you as we continue on this.
Regards,
The WhatsAPI Official Team
目前应该解决:
27 Dec, 2014 We did it!
It really has been a long time since we went to work on WhatsApp encryption, but we have finally did it! and it will be soon on the API, first it will appear in python API (yowsup) and later here in PHP.
The solution was to port the library.
I just wanted to give this good news and wish you a merry christmas.
Regards,
The WhatsAPI Official Team
我也遇到了同样的问题。但现在它是固定的。你可以看到他们的api。他们已在 github 上更新了 api 并修复了加密问题。
End to end encryption support: Now the API is able to encrypt and decrypt messages automatically