Accessing the myMPD API

Calls the myMPD API, look at API for detailed API description.

local rc, result = mympd.api("method", params)

Parameters:

PARAMETER TYPE DESCRIPTION
method string myMPD API method
params lua table the jsonrpc parameters

Returns:

FIELD TYPE DESCRIPTION
rc integer response code: 0 = OK, 1 = ERROR
result lua table json result or error

Following API methods are not accessible: