This repository has been archived by the owner on Nov 27, 2020. It is now read-only.
io.github.adorable-skullmaster.pw4j 1.6.0
Install 1/2: Add this to pom.xml:
Learn more about Maven or Gradle
<dependency>
<groupId>io.github.adorable-skullmaster</groupId>
<artifactId>pw4j</artifactId>
<version>1.6.0</version>
</dependency>
Install 2/2: Run via command line
$ mvn install
About this package
- Added two new endpoints: war-attacks and alliance-members.
- Added API Key Pooling.
Note:
getWarAttacks()
andgetWarAttacksByMaxWarAttackId(int maxWarAttackId)
are supported but are nonfunctional due to the 500 error produced by game api server. These methods are expected to work if they're fixed on the server.
PoliticsAndWarBuilder#setApiKey
has been removed. Use PoliticsAndWarBuilder#addApiKey
or PoliticsAndWarBuilder#addApiKeys
instead.
PoliticsAndWar politicsandwar = PoliticsAndWarBuilder.addApiKey("123456abcdef").build();
or
PoliticsAndWar politicsandwar = PoliticsAndWarBuilder.addApiKeys("123456abcdef","98765fedcba").build();
Pooling implementation makes sure to cycle through the API keys. This ensures all provided API keys are used equally.
PoliticsAndWar#getApiKeyUsageStats
returns a HashMap<String, Integer>
with each key as single API Key and value as it's tracked usage.
Details
- d1vshar
- February 06, 2020
- 2 dependencies
- MIT License
Assets
Download activity
- Total downloads 4
- Last 30 days 0
- Last week 0
- Today 0