mirror of
https://github.com/tribufu/sdk-js
synced 2025-06-16 10:44:17 +00:00
Update client.js
This commit is contained in:
@ -7,8 +7,11 @@ dotenv.config();
|
|||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
const client = TribufuClient.fromEnv("TRIBUFU");
|
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();
|
main();
|
||||||
|
Reference in New Issue
Block a user