From 9668e13f5ec520d167afab9467b50834d58efcf3 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Wed, 3 Jan 2024 11:00:12 -0300 Subject: [PATCH] Update client.js --- examples/client.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/examples/client.js b/examples/client.js index 5f1d723..3c4fbd6 100644 --- a/examples/client.js +++ b/examples/client.js @@ -5,5 +5,10 @@ import { TribufuClient } from '../build/index.mjs'; dotenv.config(); -const client = TribufuClient.fromEnv("TRIBUFU"); -const clientId = client.getClientId(); +async function main() { + const client = TribufuClient.fromEnv("TRIBUFU"); + const clientInfo = await client.getClientInfo(); + console.log(clientInfo); +} + +main();