PHP code example of furiosojack / kaseya-sdk-soap
1. Go to this page and download the library: Download furiosojack/kaseya-sdk-soap library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
furiosojack / kaseya-sdk-soap example snippets
$username = "test";
$password = "123456";
$credentials = FuriosoJack\KaseyaSDKSOAP\HTTP\Auth\Credentials($username, $password);
$hostServer = "127.0.0.1";
$session = new FuriosoJack\KaseyaSDKSOAP\HTTP\Session($credentials,$hostServer);
if($session->auth()){
//Esta autenticado
}else{
//No se autentico
}
//Para botener la lista de organizaciones vasta con el siguiente codigo
$username = "test";
$password = "123456";
$credentials = FuriosoJack\KaseyaSDKSOAP\HTTP\Auth\Credentials($username, $password);
$hostServer = "127.0.0.1";
$session = new FuriosoJack\KaseyaSDKSOAP\HTTP\Session($credentials,$hostServer);
if($session->auth()){
//Esta autenticado
$response = $session->request(new FuriosoJack\KaseyaSDKSOAP\HTTP\DOM\Request\GetOrgsRequestDOM($session->getAuthResponseDOM()->getSessionID()));
//DomResponse
$domResponse = $response->getResponseDOM();
}else{
//No se autentico
}