UNPKG

supercell-coc

Version:

This is an API for Supercell's game [Clash of Clans](https://clashofclans.com) implemented into Node.JS by z3db0y.

21 lines (15 loc) 649 B
# Clash of Clans API ### (as close to official as I could get) This is an API for Supercell's game [Clash of Clans](https://clashofclans.com) implemented into Node.JS by z3db0y. ## Basic usage: ```js const CoC = require('supercell-coc')('YOUR_API_KEY_HERE'); // Get user await CoC.Users.get('#YOUR_USER_TAG_HERE'); // Get clan await CoC.Clans.get('#YOUR_CLAN_TAG_HERE'); // Get league list await CoC.Leagues.list(); ``` Again, this is basic usage, for every query you can make please refer to [the API docs](https://developer.clashofclans.com/#/documentation) and use IntelliSense ;) Made by z3db0y, no rights reserved haha