Get printer information like REST API in plugin

Hello,
I'm new in developing a plugin for raspberry. I want to send, a Json file to a web server. The Json file has to be exactly the same as the one gets by REST API GET/api/printer. Can you help me to have the best practice to do this.
Thanks
Have a good day,
Max

When it has to be exactly the same as the one provided by the rest api why not using it ?

1 Like