cadmus/api

There is no license information available for the latest version (v1.0) of this package.

CadmusApi hub client library

v1.0 2017-11-08 10:17 UTC

This package is not auto-updated.

Last update: 2020-09-25 01:24:07 UTC


README

CadmusApi hub client library

Install

composer require cadmus/api @dev

Example

<?php
  
   use Cadmus\API\Client;
   
   include_once("vendor/autoload.php");
   
   $api = new Client("01904164d2e2db20400612e9d70d24b3dc2db17567ec92cb93c51b87697793c1");  // Ключ к 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";
   }