All Projects → TheLearneer → croyale

TheLearneer / croyale

Licence: MIT license
Easy to use asynchronous Wrapper for RoyaleAPI.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to croyale

cr
Clash Royale: data and cards
Stars: ✭ 140 (+900%)
Mutual labels:  clash-royale, clashroyale
cr-api-docs
Documentation project for RoyaleAPI
Stars: ✭ 13 (-7.14%)
Mutual labels:  clash-royale, clashroyale
cr-api-data
Clash Royale API Static data and constants.
Stars: ✭ 40 (+185.71%)
Mutual labels:  clashroyale

Logo

An easy to use Asynchronous wrapper to interact with RoyaleAPI.com


⚠️ IMPORTANT ⚠️

RoyaleAPI.com has been shutdown by its developers. Time to use the official clash royale API.

Features

  • Object Oriented
  • User friendly
  • Maximum coverage of the API
  • Cache, Rate-limit and error handling
  • Utility functions

Installation

node.js 8.0.0 or newer is required

Stable: npm install croyale

Master: npm install TheLearneer/croyale

master branch might contian some bugs, so if you are interested in bug free code then install stable, but if you are want to have the latest of the wrapper then install master branch.

Example Usage

const { Client } = require('croyale');
const client = new Client('super secret token');

client.Users.getProfile('CVLQ2GV8', { keys: ['tag', 'name'] })
	.then(player => {
		console.log(`Name of the player with tag ${player.tag} is ${player.name}`);
	})
	.catch(console.error);

Credits

  • The major credit for the existence of this wrapper goes to the developers of the api; SML and Selfish.
  • In the meantime I would like to thank every individual person who have directly or indirectly helped me.

Links

Contributing

Before creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the documentation.
Make sure the changes you made aren't breaking things and are working fine if you'd like to submit a PR.

Help

If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to join our official Croyale Server.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].