PHP code example of maksmaggot / drom-test-client

1. Go to this page and download the library: Download maksmaggot/drom-test-client 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/ */

    

maksmaggot / drom-test-client example snippets





 = new Client\ExampleClient();

try {
// Получаем список комментариев
    $comments = $client->getComments();

// создаём комментарий
    $client->createComment('Vasilii', 'Yeap!');

// обновляем комментарий
    $client->updateComment('5', 'Iaksim', 'Hello there!');

} catch (Exception $e) {
    new \RuntimeException($e->getMessage());
}