import Dataframer from 'dataframer';
const client = new Dataframer({
apiKey: 'My API Key',
});
const folders = await client.dataframer.datasets.listFolders('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');
console.log(folders);[
{
"name": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"files": [
{
"file_name": "<string>",
"file_type": "JSON",
"storage_uri": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"file_type_display": "<string>",
"bytes_size": 0,
"sha256": "<string>",
"folder_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"datasets_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z"
}
],
"file_count": 123
}
]Get all folders in a specific dataset.
import Dataframer from 'dataframer';
const client = new Dataframer({
apiKey: 'My API Key',
});
const folders = await client.dataframer.datasets.listFolders('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');
console.log(folders);[
{
"name": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"files": [
{
"file_name": "<string>",
"file_type": "JSON",
"storage_uri": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"file_type_display": "<string>",
"bytes_size": 0,
"sha256": "<string>",
"folder_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"datasets_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z"
}
],
"file_count": 123
}
]API Key authentication. Format: "Bearer YOUR_API_KEY"
List of folders
1Show child attributes
1JSON, JSONL, CSV, MD, TXT, PDF 11-9223372036854776000 <= x <= 9223372036854776000