Downloading documents using REST API

I am a relative newbie trying to do REST operations on Sharepoint though I have used it over the years as an end user. My difficulty comes from the terminology I am not familiar with. The scripting is all in Python and my problem is the mapping of the URL to the API defined formats. For instance I have the url as https://hpc/sites/SC12/tis/BIRT/SitePages/Home.aspx and the document is abc.xlsx under /Shared Documents together with some folders. The API documentation I have come across talk about List Services and the site url is described either as ../_vti/bin/ListData.svc or as ../../_api/web/lists/GetByTitle. I am confused. If someone could tell me how to format the strings I would probably get somewhere.

Thanks

Jaz

June 17th, 2015 10:53am

Hi Jaz,

From your description, my understanding is that you are confused about ../_vti/bin/ListData.svc and ../../_api/web/lists/GetByTitle.

As SharePoint 2010 does not support method ../../_api/web/lists/GetByTitle, I conjecture that you use REST API in SharePoint 2013 instead of SharePoint 2010.

You could use each of them to get data in the document library. Please refer to this article about REST API options in SharePoint 2013:

Exploring the REST API options in SharePoint 2013 Part I

http://jopx.blogspot.com/2012/09/exploring-rest-api-options-in.html

Best Regards,

Vincent Han

Free Windows Admin Tool Kit Click here and download it now
June 18th, 2015 3:36am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics