Skip to content

The simplest ever, clear-code, easy-to-use wrapper for RushStatsAPI (Rush Wars API) written in Python 3!

Notifications You must be signed in to change notification settings

MasterDevX/RushWarsAPI-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

RushStatsAPI-Python

The simplest ever, clear-code, easy-to-use wrapper for RushStatsAPI (Rush Wars API) written in Python 3!

Requirements

  • OS: Windows / Linux / Android / MacOS
  • Python version: 3.x
  • Python modules: json, requests

Note

Because the project is just a script for now, it means you will have to manually download it and put the rushstats.py file into directory of your project you are going to use this wrapper in. Then you can simply import it as you are doing it with any other modules: import rushstats.

Authorization

To connect to the API you will need an access token. If you will try to retrieve any info without authorization, you will receive an error. So, if you still don't have any token, you can get a new one here: https://api.rushstats.com/dashboard
Then authenticate using this function (don't forget to replace token with your token): rushstats.session('token')

Retrieving information

All of the functions below are returning requested data as a Json object.

  • Information about player:
    rushstats.get_player('tag')
  • Information about team:
    rushstats.get_team('tag')
  • Searching teams by keyword:
    rushstats.team_search('keyword')
    (This will return only first 64 results beacause of in-game limit.)
  • Getting player leaderboard:
    rushstats.top_players(count)
    (A count argument here specifies how many players from the leaderboard will be returned. It should be an integer and should be equal to any number in range 0-200.)

About

The simplest ever, clear-code, easy-to-use wrapper for RushStatsAPI (Rush Wars API) written in Python 3!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages