PHP-SharePoint-Lists-API
PHP-SharePoint-Lists-API copied to clipboard
Error (HTTP) Forbidden,more=
How to resolve this error?
Do you have a snippet of your code I can have a look at at all? (re: just how the library is being booted/setup) - looks like auth is failing.
I had the same issue, correct credentials.
I solved it by linking directly to the WSDL file and not downloading it and link to a local folder.
$sp = new SharePointAPI('[email protected]', 'supersecurepassword', 'https://yoursite.sharepoint.com/sites/SomeSite/_vti_bin/Lists.asmx?WSDL', 'SPONLINE');
Hi. I have same error.
$sp = new SharePointAPI(
'[email protected]',
'password',
'https://site.sharepoint.com/sites/smoSite/_vti_bin/Lists.asmx?WSDL'
);
dd($sp->getLists());
if I put fourth parameter "NTLM", I have other error: Access Denied
.
What do I need to do to work correctly
I entered in the URL of the WSDL and it gives the same error.
here is a snippet of the code.