I have on my ftp space(folder test1) the following directory/file:
- /Thybag
- test.php
I am using the API for SP: THYBAG
This is my code php:
require_once __DIR__ . '/Thybag/SharePointAPI.php';
require_once __DIR__ . '/Thybag/Auth/SharePointOnlineAuth.php';
require_once __DIR__ . '/Thybag/Auth/SoapClientAuth.php';
require_once __DIR__ . '/Thybag/Auth/StreamWrapperHttpAuth.php';
require_once __DIR__ . '/Thybag/Service/ListService.php';
require_once __DIR__ . '/Thybag/Service/QueryObjectService.php';
include "/Thybag/SharePointAPI.php";
$sp = new SharePointAPI('xx@test.it', 'pass', 'https://xx.sharepoint.com/sites/HD1/_vti_bin/Lists.asmx?wsdl', 'SPONLINE');
$listContents = $sp->read('<list_name>');
foreach($listContents as $item){
var_dump($item);
}
When I run it I get the following error: Fatal error: Class 'SoapClient' not found in /membri/xxx/test1/Thybag/Auth/SharePointOnlineAuth.php on line 11
Where do I go wrong?