Find Jobs
Hire Freelancers

Display Folders and Files from Sharepoint in my PHP page using cURL

$10-30 USD

已关闭
已发布超过 3 年前

$10-30 USD

货到付款
I have a code that allows me to display the file names in a PHP page from a specific folder of Sharepoint using cURL. See attached. My problem is to display all the files and folders(if there is) inside the parent folder and add the links so that when people click the file name they will be able to download the file. We don't want to save a copy in the server when we browse the files instead we want to get them straight from Sharepoint. Or perhaps generate an XML to pull it but not saving a copy because those files are confidential. I need a working code to do display the files with links to download them. This is the working cURL call. $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "[login to view URL]://mysharepoint.com/sites/CMS/&contextpath=cms&folderfilepath=Files", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", )); $results = curl_exec($curl); $json_decoded = json_decode($results); echo '<table>'; foreach($json_decoded as $result){ echo '<tr>'; echo '<td>'.$result.'</td>'; echo '</tr>'; } echo '</table>'; curl_close($curl);
项目 ID: 28246358

关于此项目

4提案
远程项目
活跃3 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
4威客以平均价$24 USD来参与此工作竞价
用户头像
Hi. Hope are doing fine. I have a good grip in PHP. I can display data from sharepont to your PHP script using curl. Will provide you top quality work for sure. I can start right now.
$30 USD 在1天之内
5.0 (51条评论)
5.3
5.3
用户头像
I am an expert in using PHP cURL. Please can we have discussion over chat to get the requirements clear. This Sharepoint app, is this hosted on local system or publicly accessible?
$15 USD 在1天之内
5.0 (72条评论)
4.7
4.7
用户头像
Hi, I worked with SharePoint apis before. I understood your requirement. You are showing sharepoint files in a list, now you want a script which will download the file in runtime. So I will create a page and will take filename as querystring. Then using PHP cUrl I will call SharePoint api and will get file content as stream. This way when user will click on a filename the file will be downloaded directly from SharePoint server. Thanks
$30 USD 在3天之内
4.9 (26条评论)
4.8
4.8
用户头像
Hi, Your SharePoint call will depend on few properties such as authentication token, umber of files in the library, library distribution, etc. One point to note is that SharePoint will deny calls which are been made to the REST API if the call returns more than 5000 items. So how is you call made to SharePoint from /api/getFileNames? is it calling the SharePoint REST API or is it a SSOM call? May be it is better to have a discussion before starting the project so it will give a clear idea on the implementation. Thanks.
$20 USD 在7天之内
5.0 (1条评论)
0.6
0.6

关于客户

UNITED STATES的国旗
Norwalk, United States
5.0
6
付款方式已验证
会员自4月 21, 2018起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。