Download folders inside the folder RRS feed

  • Question

  • Hi All,

    I am connecting provider hosted app to one of the Content server for getting files inside the folders using below code:

    public Dictionary<string, Object> GetNodeMetaData(string NodeId)

                    NameValueCollection headerData = new NameValueCollection();
                    headerData["otcsticket"] = Token;
                    WebClient webClient = new WebClient();

                    byte[] responseBytes = webClient.DownloadData(Url + "nodes/" + NodeId + "/nodes?where_type=144");
                    string result = Encoding.UTF8.GetString(responseBytes).TrimEnd('\0');
                    JavaScriptSerializer jsSer = new JavaScriptSerializer();
                    Dictionary<string, object> metadataDict = jsSer.Deserialize<Dictionary<string, object>>(result);

                    return metadataDict;

    Using above code I am not able to get folders if it is present in the folder.

    Please suggest

    Whenever you see a reply and if you think is helpful, click &quot;Vote As Helpful&quot;! And whenever you see a reply being an answer to the question of the thread, click &quot;Mark As Answer

    • Edited by MeShare Thursday, February 2, 2017 1:14 PM
    Thursday, February 2, 2017 1:13 PM

All replies