I am looking for the SharePoint OnLine RESTFul API
try to get all lists of specified Site
.
Let's say the default Site of Site Collection in my Office 365 SharePoint OnLine trial.
The Site Collection is https://beyondhard.sharepoint.com/
.
I just found a sample code for the managed Server Class Libary
for SharePoint 2013
.
using (SPSite site = new SPSite("http://localhost/sites/sitecollection"))
{
using (SPWeb web = site.OpenWeb("sitecollection/subsite"))
{
string listUrl = "/sites/sitecollection/subsite/Lists/Announcements";
SPList list = web.GetList(listUrl);
Console.WriteLine("List URL: {0}", list.RootFolder.ServerRelativeUrl);
}
}
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.getlist.aspx
Is there any RESTFul for it? If could give me some code sample. It will be nice. Thanks.