-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.ts
More file actions
26 lines (24 loc) · 714 Bytes
/
test.ts
File metadata and controls
26 lines (24 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { API } from './src/index';
const STEAM_KEY = ''; // replace your token
const test = async () => {
try {
const user = await API.fetchUser('iFraan_', STEAM_KEY);
const info = user.info();
console.log('Info', info);
const maps = user.maps();
console.log('Maps: ', maps);
const stats = user.stats();
console.log('Stats: ', stats);
const weapons = user.weapons();
console.log('Weapons: ', weapons);
const lastMatch = user.lastMatch();
console.log('lastMatch: ', lastMatch);
const unknown = user.unknown();
console.log('unknown: ', unknown);
// const raw = user.raw;
// console.log('raw: ', raw);
} catch (e) {
console.log(e);
}
};
test();