• Official Post


    Hey Developer!



    now the new user api is available!


    You can access this api by the url:
    SI Classic: http://api.spaceinvasion.info/api/user.php
    SI2: http://api2.spaceinvasion.info/api/user.php



    You need to add some GET Parameters too:


    output: json, xml or csv
    instance: retro nexus, int2 (GeNeSIS), int3 (EcoWars), root (Classic Invasion), si2, si2speed,
    userID or username: contains the userID or the urlencoded username of the requested user


    the result is the placement + some user information.


    Notice:
    to change the language of achievements titles and descriptions use the lang parameter with the 2 characters country code. for example:
    &lang=de
    &lang=ru
    &lang=en


    Fallback is english (en)
    You also can handle this by provide the language http header
    (HTTP_ACCEPT_LANGUAGES), first possible language will used.



    We will upgrade this api when we have new user functions or other apis.


    best regards
    Dschibait