ServiceNav publishes many WebServices allowing access from a remote system to a large amount of information and to perform some of the add/modify/delete operations of the operating elements.
Full documentation of the WebServices: The full documentation of the WebServices is available here : SN API Webservice API Webservice_Signatures_V1.29
The WebServices can be accessed at the following address: https://
For our customers benefiting from our SaaS platform, the access is made directly on the address: https://servicenav.io/api/mobility/.
Example of php code, allowing to return the list of User Services of a company.
In this example, the identification is performed at each call. As stated in the documentation, it is possible to use a session if several calls are to be made in succession. The getSession.php function and the use of the "session" parameter in all calls will be used.
Visibility and possible actions via WebServices are the same as those possible in the interface with the same user account.
Company / attribute: 6 ==> Token / values: 721f92cbba5deef08a29adea5545cc0b ==> Token value of company //Call to getListServiceUserShortDescription function. $requestURL = $plateformURL . /getListServiceUserShortDescription.php?param={"filter":[' . $filter.']}'; $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_URL,$requestURL); curl_setopt($ch, CURLOPT_USERPWD, $plateformUser.':'.$plateformPassword); $result=curl_exec($ch); if ($result === false) { echo "request = $requestURL
"; echo "status code = " . curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($curl); die('An error occurred while retrieving the information.'); } curl_close($ch); //Json output $response = json_decode($result, true); print_r ($response); ?>
Note: In the case of contact and/or company calls, the documentation may indicate the following information : List : Contact ID (ID pairs for contacts