\pm_ApiRpc

Wrapper to simplify execution of API-RPC calls inside modules

Summary

Methods
Properties
Constants
getService()
call()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A

Methods

getService()

getService(string  $protocolVersion = null) : \pm_ApiRpc

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

Parameters

string $protocolVersion

Returns

\pm_ApiRpc

call()

call(string|\SimpleXMLElement|\DOMDocument  $request, string  $login = null) : \SimpleXMLElement

Perform API-RPC call

Parameters

string|\SimpleXMLElement|\DOMDocument $request
string $login

Panel username on behalf of which the operation will be performed

Throws

\pm_Exception

Returns

\SimpleXMLElement