PHP-SharePoint-Lists-API
PHP-SharePoint-Lists-API copied to clipboard
Error (HTTP) Unauthorized,more=
Hello, I've been trying to get it working, but unfortantly after many tries it does not work.
include "src\Thybag\SharePointAPI.php"; use Thybag\SharePointAPI; $sp = new SharePointAPI('username', 'password', 'http://Site/Subsite/_vti_bin/Lists.asmx?WSDL', 'NTML'); //This one works so I assume I'm authorized echo "Connected!"; $sp->read('Listname');
The account does have permission though, using NTML also running SharePoint Foundation 2013.
There are a typo (NTML) in your code. You should modify it from "NTML" to "NTLM".