jsonRPCClient

The object of this class are generic jsonRPC 1.0 clients http://json-rpc.org/wiki/specification

author

sergio jsonrpcphp@inservibile.org

package

Default

Methods

Performs a jsonRCP request and gets the results as an array

__call(string $method,array $params): array

Arguments

$method

string

$params

array

Response

array

Takes the connection parameters

__construct(string $url,boolean $debug = false)

Arguments

$url

string

$debug

boolean

call

call( $method, $params)

Arguments

$method

$params

Sets the notification state of the object. In this state, notifications are performed, instead of requests.

setRPCNotification(boolean $notification)

Arguments

$notification

boolean

Properties

Debug state

debug :boolean
var

Type(s)

boolean

The server URL

url :string
var

Type(s)

string

The request id

id :integer
var

Type(s)

integer

If true, notifications are performed instead of requests

notification :boolean
var

Type(s)

boolean