thybag / PHP-SharePoint-Lists-API

A simple PHP API to make working with SharePoint lists easy.
MIT License
184 stars 95 forks source link

Error (HTTP) Unauthorized,more= #141

Open UhWatchMe opened 7 years ago

UhWatchMe commented 7 years ago

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.

sword-huang commented 7 years ago

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