CloudFiles API
Datarooms
Get dataroom
1 min
code examples curl location 'https //api cloudfiles io/v1/datarooms/\ dataroomid' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //api cloudfiles io/v1/datarooms/\ dataroomid", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api cloudfiles io/v1/datarooms/\ dataroomid") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //api cloudfiles io/v1/datarooms/\ dataroomid" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses { "id" "64466c986b2770cbf2bd7a0b", "name" "deal files albus dumbledore", "description" "all the deal files for albus dumbledore", "createdat" "2023 04 24t11 48 40 028z", "createdby" "system user", "type" "dataroom", "uploadscount" 0, "isattached" false, "children" \[ { "type" "filerequest", "id" "64638f7e345d01b113b580f1", "name" "upload files", "description" "", "destination" { "folderid" "01jwgqs73wfd5uvon3rffl2b4u35zhso45", "driveid" "mydrive", "librarytype" "onedrive" }, "createdat" "2023 05 16t14 13 18 027z", "files" \[] }, { "type" "folder", "id" "64466cddede1c6a2bfa72da3", "internalid" "64466cddede1c6a2bfa72da3", "name" "create a folder", "createdat" "2023 04 24t11 49 49 098z", "updatedat" "2023 04 24t11 49 49 098z", "isexternal" false, "parent" "root", "externalresourceid" "1ul8ogrbcgga9q7i7gdl8feovqobncam ", "library" "google", "driveid" "mydrive", "parents" \[] }, { "type" "file", "id" "629f49e9e65a4e3eb8c4f9a1", " id" "629f49e9e65a4e3eb8c4f9a1", "v" 0, "internalid" "629f49e9e65a4e3eb8c4f9a1", "name" "the elaboration likelihood model of persuasion", "fullname" "the elaboration likelihood model of persuasion docx", "isexternal" false, "kind" "misc", "source" "internal", "extension" "docx", "parent" "root", "content" { "kind" "misc", "source" "internal", "size" 18222 }, "createdat" "2022 06 07t12 51 53 680z", "updatedat" "2023 05 26t10 13 00 969z", "externalresourceid" "1vnfigyz6x2jwy6ldbyhfa4tkdx3muic1alesbh5rhaw", "library" "google", "driveid" "mydrive" }, { "type" "file", "id" "64466a1dede1c6a2bfa72b09", " id" "64466a1dede1c6a2bfa72b09", "v" 0, "internalid" "64466a1dede1c6a2bfa72b09", "name" "copy of list of primary and nursery schools", "fullname" "copy of list of primary and nursery schools xlsx", "isexternal" false, "kind" "excel", "source" "internal", "extension" "xlsx", "parent" "root", "content" { "kind" "excel", "source" "internal", "size" 1168 }, "createdat" "2023 04 24t11 38 05 611z", "updatedat" "2023 05 26t10 15 16 971z", "externalresourceid" "1 1dlnq3slj c48c1nggsh tpr4twbkpd3c5et2lyk3m", "library" "google", "driveid" "mydrive" } ] }