2019-07-28, 17:40
Trying to figure out a way to toggle an addon, enabled or disabled.
I want to use the JSON-RPC to work it out if it is enabled to begin with and disable if enabled and vice versa.
How can i get the status of the addon if it is enabled or not
I want to use the JSON-RPC to work it out if it is enabled to begin with and disable if enabled and vice versa.
Code:
curl -X POST -H "content-type:application/json" http://localhost:
8080/jsonrpc -d '{"jsonrpc":"2.0","method":"Addons.SetAddonEnabled","id":7,"pa
rams":{"addonid": "$id","enabled":true}}'
How can i get the status of the addon if it is enabled or not