PHP code example of ruelluna / zep-php
1. Go to this page and download the library: Download ruelluna/zep-php 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/ */
ruelluna / zep-php example snippets
use RuelLuna\ZepPhp\Session;
use RuelLuna\ZepPhp\Message;
// get all sessions
$sessions = Session::getAll();
// get a single session
$session = Session::getSession([session-id]);
// get all messages within a session
$messages = Message::getAll([session-id]);
// get message from a session
$messages = Message::getMessage([session-id], [message-id]);
$sessionRequest = \RuelLuna\ZepPhp\Session::make('your-api-key', 'your-base-url');
return $sessionRequest->getAll();
bash
composer