Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Kacper Rowinski  >  JSON RPC Client  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example usage
Class: JSON RPC Client
Send call requests to JSON RPC servers
Author: By
Last change:
Date: 2 years ago
Size: 360 bytes
 

Contents

Class file image Download
<?php
# Sample of usage RPC Client 
# Replace server_method to metod requested from server

require_once 'jsonRPCClient.php';


$client = new jsonRPCClient();

$result NULL;

try {
    
$result $client->server_method(
    
'param1' => '1'
    'param2' 
=> '2',

    );
}
catch (
Exception $e) {
    die(
$e->getMessage());
}

print_r($result);