Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/knightplayzz/clash-royale

Npm package that connects to the clash royale api to get information. Player data, clan info ect.
https://github.com/knightplayzz/clash-royale

clash clash-royale clash-royale-api clashroyale supercell

Last synced: 7 days ago
JSON representation

Npm package that connects to the clash royale api to get information. Player data, clan info ect.

Awesome Lists containing this project

README

        


Clash Of Clans


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



Coverage Status

Install size
Current version

# Introduction

Provides an easy way to get started with the [Clash Royale API](https://developer.clashroyale.com)
For more information about the responses please check [Official Clash Royale Dev Website](https://developer.clashroyale.com/#/documentation). Not releated to Supercell.
Created By: Philippe Smeets

## Installation

`npm install clashroyale.js`

## Links

- [Documentation](https://github.com/Knightplayzz/clash-royale/blob/main/documentation.md)
- [Clash Royale Developer Website](https://developer.clashroyale.com/)
- [Clash Royale 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 player = await client.getPlayer('#8CY9L2CJ')
console.log(`${player.name} (${player.tag})`)
}
myFunction();
```

### Disclaimer

> This content is not affiliated with, endorsed, sponsored, or specifically approved by Supercell and Supercell is not responsible for it.