【发布时间】:2014-10-14 16:09:24
【问题描述】:
我尝试使用 WhatsApp Api 通过 php 脚本发送 url,我使用了博客:http://blog.philippheckel.com/2013/07/07/send-whatsapp-messages-via-php-script-using-whatsapi/
我可以使用 API 调用向任何号码发送纯文本。 例如脚本(在 PHP 中)是:
$w = new WhatsProt($userPhone, $userIdentity, $userName, $debug);
$w->Connect();
$w->LoginWithPassword($password);
$w->sendMessage('919876543210', "test message");
但如果我尝试发送类似 url 类型的消息
$w->sendMessage('919876543210', "http://www.google.com");
它以纯文本形式接收,而不是超链接。 我尝试了所有选项,例如提供 html 标签和文本,但失败了。
【问题讨论】: