Package: pyroyale
NOTE - this project is no longer maintained. If you are a pyroyale user, and wish to take over maintaintainership of this project, please contact me.pyroyaleUnofficial python client for the official Clash Royale APIThis Python package is automatically generated by theOpenAPI Generatorproject:API version: 1.1Package version: 1.0.0Build package: org.openapitools.codegen.languages.PythonClientCodegenRequirements.Python 2.7 and 3.4+Installation & Usagepip installIf the python package is hosted on a repository, you can install directly using:pipinstallgit+https://github.com/GIT_USER_ID/GIT_REPO_ID.git(you may need to runpipwith root permission:sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)Then import the package:importpyroyaleSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)Then import the package:importpyroyaleGetting StartedPlease follow theinstallation procedureand then run the following:from__future__importprint_functionimporttimeimportpyroyalefrompyroyale.restimportApiExceptionfrompprintimportpprint# Defining the host is optional and defaults to https://api.clashroyale.com/v1# See configuration.py for a list of all supported configuration parameters.configuration=pyroyale.Configuration(host="https://api.clashroyale.com/v1")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: JWTconfiguration=pyroyale.Configuration(host="https://api.clashroyale.com/v1",api_key={'authorization':'YOUR_API_KEY'})# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['authorization'] = 'Bearer'# Enter a context with an instance of the API clientwithpyroyale.ApiClient(configuration)asapi_client:# Create an instance of the API classapi_instance=pyroyale.CardsApi(api_client)try:# Get list of available cardsapi_response=api_instance.get_cards()pprint(api_response)exceptApiExceptionase:print("Exception when calling CardsApi->get_cards:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttps://api.clashroyale.com/v1ClassMethodHTTP requestDescriptionCardsApiget_cardsGET/cardsGet list of available cardsClansApiget_clanGET/clans/{clanTag}Get clan informationClansApiget_clan_membersGET/clans/{clanTag}/membersList clan membersClansApiget_clan_river_race_logGET/clans/{clanTag}/riverracelogRetrieve clan's river race logClansApiget_clan_war_logGET/clans/{clanTag}/warlogRetrieve clan's clan war logClansApiget_current_river_raceGET/clans/{clanTag}/currentriverraceRetrieve information about clan's current river raceClansApiget_current_warGET/clans/{clanTag}/currentwarInformation about clan's current clan warClansApisearch_clansGET/clansSearch clansLocationsApiget_clan_rankingGET/locations/{locationId}/rankings/clansGet clan rankings for a specific locationLocationsApiget_clan_wars_rankingGET/locations/{locationId}/rankings/clanwarsGet clan war rankings for a specific locationLocationsApiget_locationGET/locations/{locationId}Get location informationLocationsApiget_locationsGET/locationsList locationsLocationsApiget_player_rankingGET/locations/{locationId}/rankings/playersGet player rankings for a specific locationPlayersApiget_playerGET/players/{playerTag}Get player informationPlayersApiget_player_battlesGET/players/{playerTag}/battlelogGet log of recent battles for a playerPlayersApiget_player_upcoming_chestsGET/players/{playerTag}/upcomingchestsGet information about player's upcoming chestsTournamentsApiget_global_tournamentsGET/globaltournamentsList global tournamentsTournamentsApiget_tournamentGET/tournaments/{tournamentTag}Get tournament informationTournamentsApisearch_tournamentsGET/tournamentsSearch tournamentsDocumentation For ModelsArenaBattleLogEntryBattleLogTeamCardCardIconUrlsCardListChestChestListClanClanBaseClanMemberClanMemberListClanRankedClanRankingListClanSearchResultClanSearchResultClanClanWarRankedClanWarsRankingListErrorGameModeLocationLocationListPlayerAchievementPlayerBadgePlayerBasePlayerDetailPlayerLeagueStatisticsPlayerRankedPlayerRankingListRiverRaceRiverRaceClanRiverRaceClanParticipantRiverRaceLogRiverRaceLogEntryRiverRaceStandingSearchPagingSearchPagingCursorsSeasonStatisticsTournamentTournamentDetailTournamentPlayerTournamentSearchResultWarWarClanWarCurrentWarLogWarParticipantWarStandingWarStandingClanDocumentation For AuthorizationJWTType: API keyAPI key parameter name: authorizationLocation: HTTP headerAuthorAaron Traasaaron@traas.orgDevelopment linksThis project uses SonarQube for static analysis. The results of analysis are atSonarCloud.
The code quality and test coverage are a work in progress.