Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/knightplayzz/clash-of-clans

Npm package that connects to the clash of clans api to get information about players, clans ect.
https://github.com/knightplayzz/clash-of-clans

clash clash-of-clans clash-of-clans-api clashofclans supercell

Last synced: about 2 months ago
JSON representation

Npm package that connects to the clash of clans api to get information about players, clans ect.

Awesome Lists containing this project

README

        


Clash Of Clans


A light-weight module that makes Clash Of Clans API become easy.



Coverage Status

Install size
Current version

# Introduction

Provides an easy way to get started with the [Clash of Clans API](https://developer.clashofclans.com)
For more information about the responses please check [Official Clash of Clans Dev Website](https://developer.clashofclans.com/api-docs/index.html). Not releated to Supercell.
Created By: Philippe Smeets

## Installation

`npm install clash-of-clans-node`

## Links

- [Documentation](https://github.com/Knightplayzz/clash-of-clans/blob/main/documentation.md)
- [Clash of Clans Developer Website](https://developer.clashofclans.com/)
- [Clash of Clans API Community Discord](https://discord.gg/Eaja7gJ)

## Example

```javascript
const client = require('clash-of-clans-node');
async function myFunction() {
await client.login('YOUR-TOKEN-HERE');
const clan = await client.getClan('#2GLVC9GYV');
console.log(`${clan.name} (${clan.tag})`);
}
myFunction();
```

### Disclaimer

> This content is not affiliated with, endorsed, sponsored, or specifically approved by Supercell and Supercell is not responsible for it. For more information see Supercell's Fan Content Policy: