import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const response = await client.ee.connectors.listFiles('connector_type');
console.log(response.files);
{
"files": [
{
"id": "<string>",
"name": "<string>",
"is_folder": false,
"mime_type": "<string>",
"size": 123,
"modified_date": "<string>"
}
],
"next_page_token": "<string>"
}
Lists files and folders from the specified connector.
import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const response = await client.ee.connectors.listFiles('connector_type');
console.log(response.files);
{
"files": [
{
"id": "<string>",
"name": "<string>",
"is_folder": false,
"mime_type": "<string>",
"size": 123,
"modified_date": "<string>"
}
],
"next_page_token": "<string>"
}
Successful Response
The response is of type object
.
Was this page helpful?