通过WhatsAPI向Whatsapp用户发送vCard

时间:2014-09-10 06:21:42

标签: vcard whatsapp

我正在尝试使用WhatsAPI发送vCard,这是我的代码:

    include "/var/www/whatsapp/whatsapi/whatsprot.class.php";
require "/var/www/whatsapp/whatsapi/vCard.php";
$w = new WhatsProt($sender, null, $nickname, false);
$w->Connect($proxy,$proxy_port);
$w->LoginWithPassword($sender_pass);
if($w->loginStatus == "connected")
{
    $data = array(
        'first_name' => 'John',
        'last_name' => 'Doe',
        "display_name" => "John Doe",
        "work_city" => "New York",
        "cell_tel" => "972528452611"
    );

    $vcard = new vCard();
    $vcard->set("data", $data);
    $vcard->build();
    $w->sendVcard($number, "Test", $vcard->show());  
}

当尝试执行php脚本时,我的whatsapp上没有任何内容..

我见过以下问题:

https://github.com/venomous0x/WhatsAPI/issues/708

https://github.com/venomous0x/WhatsAPI/issues/326

并且似乎都没有帮助..

有什么问题?

先谢谢了, 嚣。

0 个答案:

没有答案