Giter VIP home page Giter VIP logo

croyale's Introduction

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.

croyale's People

Contributors

bsantosh909 avatar dependabot-preview[bot] avatar hzooly avatar selfish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

croyale's Issues

Implement pagination

Implement pagination for the possible endpoints (i.e. the endpoints that return an array) as described here here

Implement caching

Implement caching so that unnecassary request wont be made to the API for the time being.

Missing Endpoints

Do not Enough
/players?/:Tag/battles?

At the moment it is impossible to get the number of matches.
It will be great if you add it.

Missing Endpoints

These are the functionality (endpoints) missing in the wrapper at current:

  • Clan Search
  • 1K tournaments
  • In preparation tournaments
  • Full tournaments
  • Joinable tournaments
  • Tournament search
  • Popular decks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.