phpSPO | Office 365 Library for PHP | Content Management System library
kandi X-RAY | phpSPO Summary
kandi X-RAY | phpSPO Summary
### About Office 365 Library for PHP. A REST/OData based client library for Office 365.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Resolve a property
- Initializes the cURL resource
- parse edmx xml
- Yield the next property
- Parse a doc block
- Create a new discussion reply
- Build a node .
- Generate a new GUID
- Resolve annotation annotations .
- Set a property .
phpSPO Key Features
phpSPO Examples and Code Snippets
Community Discussions
Trending Discussions on phpSPO
QUESTION
I'm trying to authenticate at a SharePoint Subsite, via PHP, in order to use the REST API and I'm getting some weird behavior.
I'm using the vgrem library.
This is the code I am using:
...ANSWER
Answered 2018-Jan-26 at 10:14As it seems the problem was with the library itself. I solved the problem by adding the string
"&Source=/sites/SubSiteName/"
to the url. The line itself became:
QUESTION
I am working on a web project that involves connecting to SharePoint Online via PHP and accessing the files stored on it. But I am extremely new to all this, and have hit a wall.
- I have the URL of the file I'm trying to access
- Using the phpSPO library, I am authenticated and connected to SharePoint.
The question is: how do I actually access the URL? If I follow the link directly, it redirects me to the login page for SharePoint. But we want the login to happen "behind the scenes" - and apparently the authentication step doesn't quite do that.
The company we are working with told us that we would need to request an anonymous link for the URL by calling a function. Problem is, the function they told us to use works in ASPX, but doesn't appear to be available in PHP.
This is the code they pointed us to:
...ANSWER
Answered 2017-May-15 at 20:05Well, after hours and hours of searching the Internet....
The answer was right in front of my nose.
Started browsing through the examples/SharePoint/file_examples.php that came with the phpSPO library, and discovered 2 functions (either one works).
One is called downloadFile, and the other is downloadFileAsStream.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install phpSPO
SharePoint Online and OneDrive for Business
SharePoint On-Premises (2013-2019)
app principals (client credentials) auth (refer Granting access using SharePoint App-Only for a details):
user credentials auth:
NTLM auth (for SharePoint On-Premises):
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page