import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted
});
const checks = await client.notifications.checks.list('submissionId', { id: 'id' });
console.log(checks.checks);{
"checks": [
{
"id": "<string>",
"status": "RESOLVED",
"type": "custom",
"updated": 123
}
]
}import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted
});
const checks = await client.notifications.checks.list('submissionId', { id: 'id' });
console.log(checks.checks);{
"checks": [
{
"id": "<string>",
"status": "RESOLVED",
"type": "custom",
"updated": 123
}
]
}