I have started a project where I want to trigger a rest api command when an alarm is activated on milestone. My development environment is OSX and I am reading protocol integration.
https://doc.developer.milestonesys.com/html/index.html
Has anyone tried doing authentication and receive alarm status in python using SOAP? would be great if someone can show me how to authenticate.
I don’t know if anyone internally has an example of protocol integration from Python. My first instinct on reading this though is to use the Bataction sample for inspiration and write a plug-in to enable the use of REST API commands as an action response to a rule trigger.
For example, the plug-in might give the admin a place to create new MIP items representing a GET/POST/UPDATE/DELETE operation. Maybe provide the option to use template variables passed in from the rule trigger, so that you could have the triggering camera ID in the GET url params or in the POST content body.
Then you could create your REST API commands in the management client, and use the rule system rather than building the protocol-level integration in Python.
It’s been a very long time since I worked in Python and I’ve not yet had the pleasure of integrating with a SOAP service in any language. Maybe someone else has an idea of how to approach this with Python? I’m assuming there’s a library out there for working with a WCF endpoint in Python - I know that I’d track down a library like that before attempting to do it myself.