Retrieving lists from SharePoint using php

General Tech Bugs & Fixes 3 years ago

844 1 0 0 0

User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 3 years ago

 

I am using the library https://github.com/thybag/PHP-SharePoint-Lists-API for accessing the whole lists in SharePoint using php.

I am able to get a connection with SharePoint.I am giving the code below used by me

php

require_once('SharePointAPI.php');
require_once('SoapClientAuth.php');
$useNtlm=TRUE;
$sp = new SharePointAPI('sample@sampletechnologies.onmicrosoft.com', 'Sample@nt1', 'https://sample-public.sharepoint.com/_vti_bin/Lists.asmx?WSDL',TRUE);


$sp->setReturnType('object');

$data = $sp->getLists();
var_dump($data);

?>

Here I am not able to get connection also .

It may be maintained or configured incorrectly.

I will be thankful if I solve the problem using the same above library.

0 views
0 shares

No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

Similar Forum