Greetings,
I've been working with the API a bit, and i'm wondering if someone could help me out.
Normally, I would call an API something like this very basic example:
<?php
$ch = curl_init('example.com/.../test);
$data = curl_exec($ch);
$info = curl_getinfo($ch);
curl_close($ch)
?>
I'm attempting to call the API and get a list of the users. I can accomplish this in a browser, which returns an xml of user data.
192.168.11.234:4444/.../APIController
I'm wondering if anyone has any suggestions as to how to call the API using a PHP script that can return the data. sorry, but the sophos API documentation is not so great. So far no luck. Thought it might be as simple as this:
<?php
$ch = curl_init('192.168.11.234:4444/.../APIController);
$data = curl_exec($ch);
$info = curl_getinfo($ch);
curl_close($ch)
?>
Just trying to figure out ways of how to work with the API, I am hoping to perhaps get an output of an array that I can work with and send back modifications as an Xml.
Thanks for any help anyone may be able to offer.
This thread was automatically locked due to age.