clash-of-clans-sdk-node

1.0.7 • Public • Published

Clash of Clans Unofficial SDK 🎮

Install 🌟

npm i clash-of-clans-sdk-node

NPM 👾

https://www.npmjs.com/package/clash-of-clans-sdk-node

Usage✨

const ClashOfClansSDK = require('clash-of-clans-sdk-node');
 
 
; (async function main() {
    const connection = await new ClashOfClansSDK(
        email = process.env.EMAIL || 'yourEmailGoesHere',
        password = process.env.PASSWORD || 'yourPasswordGoesHere'
    );
 
 
    const tokens = await connection.listTokens();
    console.log(tokens);
 
    const key = {
        name: 'name*of*the*key',
        description: 'description|of|the|key',
        cidrRanges: ['0.0.0.0'], // Whitelist IP Address 
        scopes: null
    };
    const createdToken = await connection.createTokens(key);
    console.log(createdToken);
 
    const deleteKey = await connection.deleteKey('id-goes-here');
    console.log(deleteKey)
})()

Author👨‍💻

Ashwin

Package Sidebar

Install

npm i clash-of-clans-sdk-node

Weekly Downloads

2

Version

1.0.7

License

MIT

Unpacked Size

6.35 kB

Total Files

5

Last publish

Collaborators

  • ashwin1111