Open mrchainman opened 1 year ago
Call JSON-RPC with a payload like {"jsonrpc":"2.0","id":4,"method":"Addons.ExecuteAddon","params":{"addonid":"script.playrandomvideos","params":["videodb://movies/genres/xx/", "label=Documentary"]}}
. Over HTTP the ExecuteAddon method is restricted to the POST verb, so can't be tested with just a browser URL.
Here is a complete example with curl.
curl --location --request POST 'http://bmo/jsonrpc' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc":"2.0","id":4,"method":"Addons.ExecuteAddon","params":{"addonid":"script.playrandomvideos","params":["videodb://movies/genres/xx/", "label=Documentary"]}}'
Hi, awesome plugin! Could you provide an example of how to use it with the jsonrpc? for instance, the call to play a random episode from a specific tvshow.
Many thanks in advance