Vio-API: Unterschied zwischen den Versionen
Aus Viopedia
(Die Seite wurde neu angelegt: „Die Vio-API (Application Programming Interface) ist eine programmierschnittstelle, mit der sich Daten aus der Vio-Datenbank abfragen lassen. Hierbei benötigt…“) |
|||
| Zeile 7: | Zeile 7: | ||
== Fraktionsabfrage == | == Fraktionsabfrage == | ||
| − | factions/" | + | factions/"FRAKTIONSNUMMER"?expand=members(items) |
{| class="wikitable" | {| class="wikitable" | ||
| Zeile 27: | Zeile 27: | ||
|lastFactionInviteTimestamp | |lastFactionInviteTimestamp | ||
|Letzter Invite | |Letzter Invite | ||
| + | |} | ||
| + | |||
| + | == Spielerabfrage == | ||
| + | |||
| + | players/"SPIELERNAME"?fields=fraction,fractionRank,playerName,playerID,playingTime,items,adminLevel | ||
| + | |||
| + | {| class="wikitable" | ||
| + | !Datenwert | ||
| + | !Bedeutung | ||
| + | |- | ||
| + | |playerName | ||
| + | |Spielername | ||
| + | |- | ||
| + | |playerID | ||
| + | |Identifikationsnummer | ||
| + | |- | ||
| + | |playingTime | ||
| + | |Spielzeit in Minuten | ||
| + | |- | ||
| + | |isOnline | ||
| + | |Loginstatus | ||
|} | |} | ||
Version vom 14. November 2017, 11:50 Uhr
Die Vio-API (Application Programming Interface) ist eine programmierschnittstelle, mit der sich Daten aus der Vio-Datenbank abfragen lassen.
Hierbei benötigt der User einen sogenannten API-Key und ein API-Secret von der Projektleitung.
Mit dieser lassen sich folgende Inhalte abfragen:
Fraktionsabfrage
factions/"FRAKTIONSNUMMER"?expand=members(items)
| Datenwert | Bedeutung |
|---|---|
| playerName | Spielername |
| playerID | Identifikationsnummer |
| playingTime | Spielzeit in Minuten |
| factionRank | Rank in der Fraktion |
| lastFactionInviteTimestamp | Letzter Invite |
Spielerabfrage
players/"SPIELERNAME"?fields=fraction,fractionRank,playerName,playerID,playingTime,items,adminLevel
| Datenwert | Bedeutung |
|---|---|
| playerName | Spielername |
| playerID | Identifikationsnummer |
| playingTime | Spielzeit in Minuten |
| isOnline | Loginstatus |
