The official GTCHECKER API wrapper for Node.js
Simply run npm i gtchecker
(or yarn add gtchecker
)
It's a nodejs module designed to interact with our website GTChecker.com Which is a fully customized Gamertag & PSN Username checker website + Discord bot,
It's purpose is simply to check if your desired username is available on either platform, This project was developed simply from a Discord.js Bot Command,
Mainly made for Educational Research and studying the functionality of Express.js with other features such as SQLite3.
(Basic)
Getting Xbox Result:
const GTCHECKER = require('gtchecker');
const Check = new GTCHECKER('API TOKEN');
Check.Gamertag('CHECK_USERNAME').then(result => {
console.log(result);
}).catch((err) => {
console.error(err);
});
Getting PSN Result:
const GTCHECKER = require('gtchecker');
const Check = new GTCHECKER('API_TOKEN');
Check.PSN('CHECK_USERNAME').then(result => {
console.log(result);
}).catch((err) => {
console.error(err);
});
(Advanced)
Getting Xbox Result w/ Custom User-Agent & Referer Link:
const GTCHECKER = require('gtchecker');
const Check = new GTCHECKER('API_TOKEN', 'BOT_USERNAME/WEBSITE', 'REFERAL_LINK');
Check.Gamertag('CHECK_USERNAME').then(result => {
console.log(result);
}).catch((err) => {
console.error(err);
});
Getting PSN Result w/ Custom User-Agent & Referer Link:
const GTCHECKER = require('gtchecker');
const Check = new GTCHECKER('API_TOKEN', 'BOT_USERNAME/WEBSITE', 'REFERAL_LINK');
Check.PSN('CHECK_USERNAME').then(result => {
console.log(result);
}).catch((err) => {
console.error(err);
});
© 2020 GTCHECKER.COM, ALL RIGHTS RESERVED.