PHP code example of qualityunit / liveagent-internal-api-server

1. Go to this page and download the library: Download qualityunit/liveagent-internal-api-server library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

qualityunit / liveagent-internal-api-server example snippets


// app/config/bundles.php
return [
    // ...
    Qu\LaInternalApiServer\LiveAgentInternalApiServerBundle::class => ['all' => true],
];


// src/Acme/MyBundle/Api/EventsApiInterface.php

namespace Acme\MyBundle\Api;

use Qu\LaInternalApiServer\Api\EventsApiInterface;

class EventsApi implements EventsApiInterface // An interface is autogenerated
{

    // Other operation methods ...
}