phpSPO
phpSPO copied to clipboard
Microsoft 365 Library for PHP.
Hello and thank you for this library. I'm just trying a basic connect: use Office365\Runtime\Auth\ClientCredential; use Office365\SharePoint\ClientContext; $credentials = new ClientCredential('ID', 'KEY'); $client = (new ClientContext("https://SITE.sharepoint.com"))->withCredentials($credentials); $web = $client->getWeb(); $list...
When I try to upload in a folder deepre, the url is including more than one /items/ segment (and the request fails) $items = $client->getMe()->getDrive()->getRoot()->getChildren()->get()->executeQuery(); foreach ($items as $item) {...
Hi, I am trying to use the OneDrive part of your library, I can authenticathe in Graph and download items, but I can´t get to find the correct code to...
I have create my app and grant permissions to the app by add xml: ``` ``` But here is giving errors: ``` Fatal error: Uncaught Office365\Runtime\Http\RequestException: {"error":{"code":"-2147024891, System.UnauthorizedAccessException", "message":{"lang":"zh-CN","value":"Attempted to...
Hi there, Have an issue with attachments Here is my sample: ``` ... $list = $client->getWeb()->getLists()->getByTitle("Title"); $items = $list->getItems() ->expand('AttachmentFiles,FieldValuesAsText'); $client->load($this->items); $client->executeQuery(); $item = $items->getItem(0); $item->setProperty('Title', 'Update 2'); $item->update(); $item->executeQuery();...
Hi. There is a **createUploadSession** fn to upload large files in chunks. Is there a solution for the opposite case, i.e. for downloading large files in chunks, i.e. something like...
Is there any way to GET and SET the client token so I don't have to authenticate each time?
How to read and write data from the term store with the combination of vgrem and cakephp3 code I am able to creating the session object of TaxonomySession $authCtx =...
Hello, we are using this Class to check SPO Credentials of our Clients and direct them to their "personal" SPO area. Actually our Clients need to Sign in on our...