Documentation

pm_ApiRpc
in package

Wrapper to simplify execution of API-RPC calls inside modules

Tags
since
11.0

Table of Contents

call()  : SimpleXMLElement
Perform API-RPC call
getService()  : pm_ApiRpc
Get wrapper for API-RPC calls for desired protocol (latest by default)

Methods

call()

Perform API-RPC call

public call(string|SimpleXMLElement|DOMDocument $request[, string|null $login = null ]) : SimpleXMLElement
Parameters
$request : string|SimpleXMLElement|DOMDocument
$login : string|null = null

Panel username on behalf of which the operation will be performed

Tags
throws
pm_Exception
since
12.0

added argument $login

Return values
SimpleXMLElement

getService()

Get wrapper for API-RPC calls for desired protocol (latest by default)

public static getService([string|null $protocolVersion = null ]) : pm_ApiRpc
Parameters
$protocolVersion : string|null = null
Return values
pm_ApiRpc

Search results