<?php /** * @version 0.6.0 * @license MIT license * @link http://chagry.com * @author Grigori <*****@*****.**> * @package Example index.php */ // error_reporting(0); /* * Import lib. */ require_once 'jsonRPC2Client.php'; // call API. $call = new jsonRPC2Client("http://DOMAIN.COM/DOC/"); ?> <!DOCTYPE html> <html lang="en"> <body> <pre> <code> <?php print_r($call->COTROLEUR_FONCTION()); ?> </code> </pre> </body> </html>
/** * @version 0.1.0 * @license MIT license * @link http://ibtci.github.io/ * @author chagry * @package Example index.php */ /* * Import lib. */ require_once 'jsonRPC2Client.php'; // Execute code. try { // Init API. $call = new jsonRPC2Client("https://ibtc.cash"); // Call API. $rep = $call->pay_info('1M1L7b4tdrY95wYbfqVAhwYEw214WHyB9H'); // If error. } catch (Exception $e) { // print error print_r($e->getMessage()); // Or init error. //throw new Exception($e->getMessage()); } ?> <!DOCTYPE html> <html lang="en"> <body> <pre>