hier eine Kleinigkeit die ihr für euren Clan benutzen könnt:
Damit könnt ihr z.B. auf eurer Clanseite einbinden, ob eure Member online sind, die Statistiken von ihnen etc.Quote:
How to use?
//YOUR_API_KEY = The API Key you got to access the API
//NICKNAME = Nickname to search for
How to get the API Key?
What is returned?
On success
Example:
40061|68|162695|110233|Adorables|0|DE|0|sunshine|
String PROFILE URL to wa-sta.net (Format: )
| (Seperator)
Integer Level (Format: 0)
| (Seperator)
Integer Kills (Format: 0)
| (Seperator)
Integer Deaths (Format: 0)
| (Seperator)
String Clanname (Format: Stringname)
| (Seperator)
Integer Premiumstatus (0: Free2play| 1: Bronce Premium| 2: Silver Premium| 3: Gold Premium)
| (Seperator)
String Region (Format: 2-Digit Country Code ISO 3166-1 alpha-2 / 3-Digit Country Code ISO 3166-1 alpha-3 / Countryname)
| (Seperator)
Integer Onlinestatus (Format: 0: Offline or Privacystatus: Hidden / 1: Online)
| (Seperator)
String Nickname (Format: Nickname)
| (Seperator)
On failure
Error Codes:
"" (Empty String: Nickname not found)
-1 : Access not allowed, API Key is wrong/missing
-2 : No Nickname was sent/specified
-3 : Malicious Request
Die Daten sind soweit aufbereitet dass sie recht unkompliziert einzubinden sind. Um Missbrauch vorzubeugen braucht ihr einen API-Key, den ihr (natürlich kostenlos) bei mir erhalten könnt. Entweder direkt hier per PM, oder unter:
Vielleicht kann es der ein oder andere gebrauchen
Es ist für die Nutzung auch noch ein kurzes PHP Beispiel (mit Kommentaren) auf der API-Seite angegeben. Falls ihr Hilfe braucht, meldet euch bei mir, ich helfe euch gerne
---------- English -------
See the Quote above, it is a publicly available API to get statistics for War Rock to use on your clan homepage or whatever you feel like it could fit
To access the API you need a API-Key. Just send me a PM and i will generate you one
If you need a example of how it could work, check the api-site and read the well documented php example.
If you need any help just contact me