PHP-SharePoint-Lists-API icon indicating copy to clipboard operation
PHP-SharePoint-Lists-API copied to clipboard

Error (HTTP) Unauthorized,more=

Open UhWatchMe opened this issue 7 years ago • 1 comments

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.

UhWatchMe avatar Sep 18 '17 07:09 UhWatchMe

There are a typo (NTML) in your code. You should modify it from "NTML" to "NTLM".

sword-huang avatar Sep 28 '17 06:09 sword-huang