1.0.7 • Published 4 years ago

clash-of-clans-sdk-node v1.0.7

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

Clash of Clans Unofficial SDK 🎮

Install :star2:

npm i clash-of-clans-sdk-node

NPM 👾

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

Usage:sparkles:

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