定制 whatsrabbit/live-chat-plugin-core 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

whatsrabbit/live-chat-plugin-core

最新稳定版本:1.1.0

Composer 安装命令:

composer require whatsrabbit/live-chat-plugin-core

包简介

Facilitates authorization for the What'sRabbit Live-chat

README 文档

README

Hop into the Future

Want to exceed your customers expectations? Give your customer-journey a boost. Make communicating with your customers swifter, effortless and fun with What'sRabbit!

Who's the target audience for this package?

If you're a non-technical customer, please send this information to your developer or technical contact.

What's in this package?

This Composer package facilitates authorization for the What'sRabbit Live-chat plugin. The LiveChatService::fetchToken method will return a AuthenticationResponse, which is then used to authenticate against the Live-chat services.

Implementation / installation

Craft

For Craft, instructions will follow.

WordPress

For WordPress, instructions will follow.

Other / stand-alone

If you're not using Craft or WordPress, you can implement this package in your own setup. Please note that you'll need PHP, and you'll need to meet the necessary dependencies as outlined in the composer.json file.

Back-end

If you do, the package can be installed using Composer:

composer require whatsrabbit/live-chat-plugin-core

The response from the LiveChatService will need to be returned by an endpoint as JSON. The LiveChatService expects the API key, API secret and a PSR-18 compatible HTTP-client.

In order to use this, you need to be a What'sRabbit user. To use the Live-chat, contact What'sRabbit support and request access to the Live-chat plugin. Credentials will be supplied by What'sRabbit support after activation of the Live-chat plugin.

Front-end

In your <head> section, load the CSS file:


<link rel="stylesheet" href="https://cdn.plugins.whatsrabbit.com/styles.css"/>

Just before the </body> close tag, load the widget and then the JavaScript:


<whatsrabbit-live-chat-widget
	avatar-url="/some-custom-avatar.jpg"
	login-url="//localhost/path/to/your/custom/login-proxy.php"
	whatsapp-url="https://wa.me/message/<insert-your-wa-me-code-here>"
	welcome-title="Some title welcoming your visitor"
	welcome-description="Send us a message if you need any help!"
></whatsrabbit-live-chat-widget>

<script src="https://cdn.plugins.whatsrabbit.com/polyfills.js" type="module"></script>
<script src="https://cdn.plugins.whatsrabbit.com/main.js" type="module"></script>

统计信息

  • 总下载量: 586
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2023-08-08