gufy/livechat-api

A simplified PHP Livechatinc API

v1.0.0 2015-04-22 01:57 UTC

This package is auto-updated.

Last update: 2024-04-13 18:13:04 UTC


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);