import Honcho from 'honcho-ai';
const client = new Honcho({
apiKey: process.env['HONCHO_API_KEY'], // This is the default and can be omitted
});
async function main() {
const document = await client.apps.users.collections.documents.create(
'app_id',
'user_id',
'collection_id',
{ content: 'x' },
);
console.log(document.id);
}
main();
import Honcho from 'honcho-ai';
const client = new Honcho({
apiKey: process.env['HONCHO_API_KEY'], // This is the default and can be omitted
});
async function main() {
const document = await client.apps.users.collections.documents.create(
'app_id',
'user_id',
'collection_id',
{ content: 'x' },
);
console.log(document.id);
}
main();