Register for your free account! | Forgot your password?

Go Back   elitepvpers > Shooter > WarRock
You last visited: Today at 00:59

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Public War Rock Stats API / Öffentliche War Rock Stats API

Discussion on Public War Rock Stats API / Öffentliche War Rock Stats API within the WarRock forum part of the Shooter category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2013
Posts: 274
Received Thanks: 186
Public War Rock Stats API / Öffentliche War Rock Stats API

Hallo,

hier eine Kleinigkeit die ihr für euren Clan benutzen könnt:



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
Damit könnt ihr z.B. auf eurer Clanseite einbinden, ob eure Member online sind, die Statistiken von ihnen etc.

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
wa-sta is offline  
Thanks
6 Users
Old 08/25/2013, 02:50   #2
 
elite*gold: 0
Join Date: Nov 2012
Posts: 592
Received Thanks: 393
How to use with PHP:


$ctx = stream_context_create(array(
'http' => array(
'timeout' => 4
)
)
);

$api_key = "key"; // API-Key for wa-sta.net API
$str = @file_get_contents("http://wa-sta.net/other/api/api.php?api_key=$api_key&nickname=$nickname", 0, $ctx);

$splitted = explode('|', $str);

$wasta = $splitted[0];
$level = $splitted[1];
$kills = $splitted[2];
$deahts = $splitted[3];
$clan = $splitted[4];
$premium = $splitted[5];
$country = $splitted[6];
$online = $splitted[7];
$nickname = $splitted[8];
~iToXiiC is offline  
Thanks
4 Users
Old 08/25/2013, 14:53   #3
 
elite*gold: 0
Join Date: Jul 2013
Posts: 274
Received Thanks: 186
Ihr könnt jetzt auch die Formatierung der Daten bestimmen. Siehe dazu unten. Unterstützt sind json/xml/(default)

Addition:

You can now also specify the output format of the data:
&format=(NULL) => seperated by |
&format=json => returns in json format
&format=xml => returns in xml
wa-sta is offline  
Old 08/25/2013, 22:52   #4
 
elite*gold: 0
Join Date: Sep 2010
Posts: 10,216
Received Thanks: 5,781
Generell mal einen Daumen hoch für dich, Scub4r. Finde es cool wie viel Mühe du dir mit deiner Seite gibst, vor allem da Nexon offensichtlich kein Interesse zeigt, etwas in die Richtung ops zurückzubringen.
theitfan1337 is offline  
Old 08/26/2013, 23:55   #5
 
elite*gold: 0
Join Date: Jul 2013
Posts: 274
Received Thanks: 186
Quote:
Originally Posted by Baeloth View Post
Generell mal einen Daumen hoch für dich, Scub4r. Finde es cool wie viel Mühe du dir mit deiner Seite gibst, vor allem da Nexon offensichtlich kein Interesse zeigt, etwas in die Richtung ops zurückzubringen.
Danke sehr
wa-sta is offline  
Old 08/27/2013, 12:15   #6

 
xxfabbelxx's Avatar
 
elite*gold: 900
Join Date: Apr 2009
Posts: 14,976
Received Thanks: 11,388
Quote:
Originally Posted by Baeloth View Post
Generell mal einen Daumen hoch für dich, Scub4r. Finde es cool wie viel Mühe du dir mit deiner Seite gibst, vor allem da Nexon offensichtlich kein Interesse zeigt, etwas in die Richtung ops zurückzubringen.
Kann ich nur zustimmen. Aber sag mal yvonnchen sie soll Net so mit der MP5 drucken ._.
xxfabbelxx is offline  
Thanks
2 Users
Old 08/27/2013, 17:48   #7
 
elite*gold: 0
Join Date: Aug 2013
Posts: 84
Received Thanks: 20
coole sache

mal 'ne andere frage:
machst du das alles alleine (ein mann armee) oder besteht wa-sta aus einem team?
AndakowaUser is offline  
Old 08/27/2013, 20:00   #8
 
elite*gold: 0
Join Date: Jul 2013
Posts: 274
Received Thanks: 186
Quote:
Originally Posted by AndakowaUser View Post
coole sache

mal 'ne andere frage:
machst du das alles alleine (ein mann armee) oder besteht wa-sta aus einem team?
Programmiertechnisch im Hintergrund alleine - Grafisch hab ich zum Glück Unterstützung
wa-sta is offline  
Old 09/04/2013, 16:35   #9
 
elite*gold: 0
Join Date: Jul 2013
Posts: 274
Received Thanks: 186
Here are some undocumented features:

Quote:
- You can specify "wastaid" instead of "nickname" to have nickchanges reflected as you use the wasta id to query data
- The following data is returned meanwhile:

URL TO Wa-Sta.net profile
|
Level
|
Kills
|
Deaths
|
Clanname
|
Premium (0: F2P / 1: Bronze / 2: Silver / 3: Gold)
|
Region 2-digit ISO Code
|
Onlinestatus (0: Offline /1: Online
|
Nickname
|
Server (-1: Offline / 1: World / 2: West / 3: East)
|
Channel (-999: Offline / -1: Channel Select / 0: Itemshop / 1: CQC / 2: BG / 3: AI)
|
Room (-999: Offline / else: Roomnumber
|
Sorry for not updating that long
wa-sta is offline  
Old 10/15/2013, 18:06   #10
 
elite*gold: 0
Join Date: Jul 2013
Posts: 274
Received Thanks: 186
Von einem anderen User erstellt mit Hilfe der Wa-Sta API:

WASTA App für Android:


Created by another user using the Wa-Sta API:

WASTA app for android
wa-sta is offline  
Thanks
1 User
Old 10/16/2013, 03:16   #11

 
UndercoverUser's Avatar
 
elite*gold: LOCKED
Join Date: Sep 2012
Posts: 912
Received Thanks: 602
Mir wäre da eine Mobile WASTA Seite lieber :-)
UndercoverUser is offline  
Old 10/16/2013, 04:11   #12
 
elite*gold: 0
Join Date: Jul 2013
Posts: 274
Received Thanks: 186
Quote:
Originally Posted by UndercoverUser View Post
Mir wäre da eine Mobile WASTA Seite lieber :-)
Versprechen kann ich nichts, höchstens erst ab Mitte November hätte ich dafür zeit...
wa-sta is offline  
Reply


Similar Threads Similar Threads
[Sammelthread] War Rock Stats News
05/14/2012 - WarRock - 11 Replies
Hallo , ich wollte mich mal nach einem War Rock Stats News Sammelthread versuchen . Damit soll verhindert werden das für jede Neuigkeit auf Wr-Stats ein neuer Thread eröffnet wird . Ob ihr diesen Thread für sinnvoll haltet ist ja letzendlich eure Entscheidung , sollte er es sein werde ich ihn regelmäßig aktualisieren . Neben den News würde ich auch noch ein F.A.Q zu War Rock Stats machen , aber nur wenn es sich lohnt . Ich fange mal bei dem letzten größeren Update an . Update 14.05.12...
[War Rock Stats] Testmonkey Liste
08/21/2011 - WarRock - 6 Replies
Hier zwei Screenshots zu den kommenden "Extraseiten" bei War Rock Stats. By Horiiizon! Testmonkeys http://img822.imageshack.us/img822/8445/testmdi.j pg Adminliste http://img233.imageshack.us/img233/9202/testaon.p ng
Suche privaten Server War rock / Je recherche Serveur priver War rock
01/13/2011 - WarRock - 8 Replies
Français : Bonjour; je recherche un serveur priver War rock :D allemand,chinois ... n'importe Allemand : Hallo, ich möchte einen privaten Server War Rock: Deutsch, Chinesisch ... keine



All times are GMT +2. The time now is 00:59.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.