Page 1 of 1

Python API - JSON?

Posted: Tue Dec 04, 2018 9:26 pm
by Linux
Hi timur,

is it possible to execute this JSON command via the Python API?

{
"get."
{
"type" : "renders",
"mask": "farmhost.*"
}
}

Or is this only possible via afcmd?

Best regards,
Laurence

Re: Python API - JSON?

Posted: Wed Dec 05, 2018 9:14 am
by timurhai
By "Python API" we call af.py module.
There is no method to send JSON data in it.
But it uses
https://github.com/CGRU/cgru/blob/maste ... af.py#L692
function
https://github.com/CGRU/cgru/blob/maste ... ork.py#L22
to send JSON data.
You can use it too.
(afnetwork.py can be called undocumented Python API)

Re: Python API - JSON?

Posted: Wed Dec 05, 2018 7:02 pm
by Linux
Hi Timur,

that helps me.
Thank you very much!

Best regards,
Laurence