定制 gufy/livechat-api 二次开发

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

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

gufy/livechat-api

最新稳定版本:v1.0.0

Composer 安装命令:

composer require gufy/livechat-api

包简介

A simplified PHP Livechatinc API

README 文档

README

PHP library with ready-to-use LiveChat API implementation.

Installation

add this package to your composer.json by running this command

  composer require gufy/livechat-api

or add this package manually to your composer.json

{
  "require":{
    "gufy/livechat-api":"~1"
  }
}

Available Models

This models are available and ready to use

  • Agent
  • CannedResponse
  • Chat
  • Goal
  • Greeting
  • Group
  • Report
  • Status
  • Tag
  • Ticket
  • Visitor
  • Webhook

Usage

Try this code below

<?php
include 'vendor/autoload.php'

use Gufy\LivechatApi\LivechatApi;
use Gufy\LivechatApi\Models\Agent;
$api = new LivechatApi('your-user-name', 'your-api-key');

// retrieving all agents

$agents = $api->agent->get();

print_r($agents);

// or the other way, and of course you have to declare LivechatApi configuration first before using class below

$class = new Agent;
$agents = $class->get();

// it will have the same result as the code above

print_r($agents);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-22