mirror of
https://github.com/tribufu/tribufu-js
synced 2026-05-06 06:47:27 +00:00
Update client.js
This commit is contained in:
parent
a79922cdaa
commit
5125fc734b
1 changed files with 5 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue