mirror of
https://github.com/tribufu/sdk-js
synced 2025-06-15 18:24:19 +00:00
Update client.js
This commit is contained in:
@ -7,8 +7,11 @@ dotenv.config();
|
||||
|
||||
async function main() {
|
||||
const client = TribufuClient.fromEnv("TRIBUFU");
|
||||
const clientInfo = await client.getClientInfo();
|
||||
console.log(clientInfo);
|
||||
|
||||
if (await client.passwordLogin("", "")) {
|
||||
const userInfo = await client.getUserInfo();
|
||||
console.log(userInfo);
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
||||
|
Reference in New Issue
Block a user