Skip to content

pavolbiely/liveagent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LiveAgent v3 REST API Client

Build Status Coverage Status Donate

This is an unofficial LiveAgent API v3 PHP Client. QualityUnit does not provide official one yet.

This is still an unstable development version. Currently only all GET requests are implemented and one POST to create a ticket. Feel free to contribute and add any missing requests.

LiveAgent Logo

Installation

Use composer to install this package.

Example of usage

Create a new LiveAgentAPI client instance

$la = new QualityUnit\LiveAgentApi('https://yourliveagantdomain.com/api/v3', 'api_key');

$ticket = new QualityUnit\Ticket('Test API', 'This is a testing message.', 'recipient@example.org', 'user@example.org');

print_r($la->createTicket($ticket));

How to run tests?

Tests are build with Nette Tester. You can run it like this:

php -f tester ./ -c php.ini-mac --coverage coverage.html --coverage-src ../src

Minimum requirements

  • PHP 7.1+
  • php-curl

License

MIT License (c) Pavol Biely

Read the provided LICENSE file for details.

Links