scidapi-client
Version:
Supercell ID API client
37 lines (26 loc) • 814 B
Markdown
# 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
```bash
npm install scidapi-client
```
## USAGE
```js
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);
}
})();
```