【问题标题】:Whatsapp api to let visitors contact us on whatsapp [closed]Whatsapp api让访问者在whatsapp上与我们联系[关闭]
【发布时间】:2018-06-06 04:16:31
【问题描述】:

在我的度假网站中,我想添加与访客的 whatsapp 通信。我需要whatsapp api让访问者在whatsapp上与我们联系。我已经为此检查了多个解决方案,但尚未找到任何解决方案。

我需要如下功能

【问题讨论】:

  • 您只需要访问者通过 whasapp 与您联系,对吧..?
  • 是的,我需要访问者在 whatsapp 上与我联系

标签: whatsapp whatsapi


【解决方案1】:

WhatsApp 提供了一个自定义 URL (whatsapp://send?text=) 以通过 WhatsApp 发送消息。 WhatsApp 的点击聊天功能让您无需将电话号码保存在手机通讯录中即可开始与某人聊天。只要您知道此人的电话号码,您就可以创建一个链接,以便您开始与他们聊天。通过单击链接,与此人的聊天会自动打开。点击聊天可在您的手机和 WhatsApp 网站上使用。

https://api.whatsapp.com/send?phone=number here

用法:

 <a href=" https://api.whatsapp.com/send?
 phone=whatsappphonenumber&text=urlencodedtext">send</a>

whatsappphonenumber 是国际格式的完整电话号码,urlencodedtext 是 URL 编码的预填充消息。

【讨论】:

  • 感谢您的回复。我已使用此 [api.whatsapp.com/send?31651566745] 链接,但它显示“此链接不正确。关闭此窗口并尝试其他链接。”
  • 试试这个`api.whatsapp.com/…`,其中whatsappphonenumber是国际格式的完整电话号码,urlencodedtext是URL编码的预填充消息。
  • @VimalPatel .i 已经更新了答案,只是检查一下
  • 我尝试过 [api.whatsapp.com/send/?phone=919558449166&text=hi] 但它显示“地址不被理解:
猜你喜欢
  • 1970-01-01
  • 2013-06-12
  • 1970-01-01
  • 2021-11-29
  • 2015-12-21
  • 2012-10-14
  • 2014-12-17
  • 1970-01-01
  • 2019-02-06
相关资源
最近更新 更多