2018-09-17, 21:29
can I add string in this method json-rpc:
headers = {
'Content-Type': 'application/json',
}
data = '{"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"script.windowsid"},"id":1}'
response = requests.post('http://192.168.15.20:8080/jsonrpc', headers=headers, data=data, auth=('user', '1234'))
I am thinking to add string to travel with Addons.ExecuteAddon method.
How about this :
{ "id": "Array.String",
"type": "array",
"items": { "minLength": 1,
"type": "string" } }
How can I do this scenario?
Thanks for all
headers = {
'Content-Type': 'application/json',
}
data = '{"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"script.windowsid"},"id":1}'
response = requests.post('http://192.168.15.20:8080/jsonrpc', headers=headers, data=data, auth=('user', '1234'))
I am thinking to add string to travel with Addons.ExecuteAddon method.
How about this :
{ "id": "Array.String",
"type": "array",
"items": { "minLength": 1,
"type": "string" } }
How can I do this scenario?
Thanks for all