Get document libraries in SharePoint WebSite
<p>I need to use sharepoint client api in my project and list documents in folders that uploaded to sharepoint. My folders are under the link "<a href="https://mydomain.sharepoint.com/sites/blsmtekn/dyncrm/Shared%20Documents/Forms/AllItems.aspx" rel="nofollow">https://mydomain.sharepoint.com/sites/blsmtekn/dyncrm/Shared%20Documents/Forms/AllItems.aspx</a>"</p>

<pre><code>        using (ClientContext ctx = new ClientContext("https://mydomain.sharepoint.com/"))
        {   
            string userName = "username";
            string password = "password";

            SecureString secureString = new SecureString();
            password.ToList().ForEach(secureString.AppendChar);

            ctx.Credentials = new SharePointOnlineCredentials(userName, secureString);

            List list = ctx.Web.Lists.GetByTitle("/Shared Documents/");
            CamlQuery caml = new CamlQuery();
            caml.ViewXml = @"&lt;View Scope='Recursive'&gt;
                                &lt;Query&gt;
                                &lt;/Query&gt;
                            &lt;/View&gt;";
            caml.FolderServerRelativeUrl = "/sites/blsmtekn/dyncrm/";
            ListItemCollection listItems = list.GetItems(caml);
            ctx.Load(listItems);
            ctx.ExecuteQuery();
        }
</code></pre>

<p>But I'm getting error like “List…does not exist at site with URL”. How can I get list of folders and files under that folders recursively.</p>