scidapi-client
v1.0.1
Published
Supercell ID API client
Maintainers
Readme
scidapi-client
Supercell ID (SCID) API client for Node.js and TypeScript.
Provides easy access to Supercell ID profiles, friends, and friend requests with RFP (Request Forgery Protection) support.
Installation
npm install scidapi-clientUSAGE
import SCIDClient from 'scidapi-client';
const SCID_TOKEN = 'your_scid_token';
const RFP_KEY_HEX = 'rfp_key';
const client = new SCIDClient(SCID_TOKEN, RFP_KEY_HEX);
(async () => {
try {
const profile = await client.getProfile('brawlstars', 'handle');
console.log(profile);
const profileList = await client.getProfileList(['supercell', 'brawlstars'], 'handles');
console.log(profileList);
} catch (err) {
console.error(err);
}
})();