thybag / PHP-SharePoint-Lists-API

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

Getting a Http Forbidden when executing in PHPUnit #134

Open jhnferraris opened 7 years ago

jhnferraris commented 7 years ago

I tried to execute these lines thru PHPUnit:

        $username = 'jxxxxxx';
        $password = 'xxxxx';
        $wsdl = 'xxxx';
        $sp = new \Thybag\SharePointAPI($username, $password, $wsdl);
        $lists = $sp->getLists();

        print_r($lists);

When I execute PHPUnit, I always get

1) SharepointTest::testAll
Exception: Error (HTTP) Forbidden,more=

I double checked with my Sharepoint account and it is already an "Owner" of the site that I'm querying from.

What am I missing here?

baltechies commented 5 years ago

Same error for me exception