PHP code example of cadmus / api

1. Go to this page and download the library: Download cadmus/api 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/ */

    

cadmus / api example snippets



  
   use Cadmus\API\Client;
   
   0400612e9d70d24b3dc2db17567ec92cb93c51b87697793c1");  // Ключ к api
   
   $response = $api->call("pg/demo", [
     "assoc"      => "array",
     "of"         => "parameters",
   ]);
   
   if ($response !== false)
   {
     echo "Post Result: " . print_r($response, true) . "\n";
   }
   else
   {
     echo "Post Error: " . $api->getError() . "\n";
   }