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

Error (HTTP) Forbidden,more=

Open baltechies opened this issue 6 years ago • 4 comments

exception

How to resolve this error?

baltechies avatar Jan 18 '19 16:01 baltechies

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.

thybag avatar Feb 07 '19 09:02 thybag

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');

dissolvdgrl avatar Oct 10 '19 08:10 dissolvdgrl

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

Skinka avatar May 29 '20 08:05 Skinka

I entered in the URL of the WSDL and it gives the same error.

here is a snippet of the code. SharePointOnlineAuth php_line_101

Enoch04 avatar Jun 06 '22 14:06 Enoch04