Interface for hive.naturalselection2.com

BalmarkBalmark Join Date: 2002-11-01 Member: 3476Members, Constellation, Reinforced - Silver, Reinforced - Shadow, WC 2013 - Shadow
Is there any restful interface or some way we can get json responses back from hive.naturalselection2.com ?

/Bal

Comments

  • SamusDroidSamusDroid Colorado Join Date: 2013-05-13 Member: 185219Members, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Gold, Subnautica Playtester, NS2 Community Developer, Pistachionauts
    http requests, and looking through the files. Find in files for decoda
  • BalmarkBalmark Join Date: 2002-11-01 Member: 3476Members, Constellation, Reinforced - Silver, Reinforced - Shadow, WC 2013 - Shadow
    edited December 2013
    that's a bit .. 1980's ..

    for a web service, you should expect something like this ..

    http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/0 as a typical request .. returns your html like you expect .. then additional options to return as json .. an easier to work with .. format ..

    http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/0?f=json

    The problem with looking at html pages .. is depending on how you read it .. it could be broken by some dev's comment in page.. I mean searching a html page for txt? .. where json is .. json ..
    {
    "steamid":"STEAM_1:1:1232",
    "newsteamid":"123456",
    "skill":"1",
    "level":"1",
    "timeplayedsec":"1232423",
    "name":"Balmark",
    "altnames":["Bal","Bally","BalTheMan","Daddy"]
    }
    etc etc

    Anyhow .. it doesnt exist .. again .. a pity ..
  • GhoulofGSG9GhoulofGSG9 Join Date: 2013-03-31 Member: 184566Members, Super Administrators, Forum Admins, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, Reinforced - Supporter, WC 2013 - Supporter, Pistachionauts
    edited December 2013
    Balmark wrote: »
    that's a bit .. 1980's ..

    for a web service, you should expect something like this ..

    http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/0 as a typical request .. returns your html like you expect .. then additional options to return as json .. an easier to work with .. format ..

    http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/0?f=json

    The problem with looking at html pages .. is depending on how you read it .. it could be broken by some dev's comment in page.. I mean searching a html page for txt? .. where json is .. json ..
    {
    "steamid":"STEAM_1:1:1232",
    "newsteamid":"123456",
    "skill":"1",
    "level":"1",
    "timeplayedsec":"1232423",
    "name":"Balmark",
    "altnames":["Bal","Bally","BalTheMan","Daddy"]
    }
    etc etc

    Anyhow .. it doesnt exist .. again .. a pity ..

    All Samus did say was that you should look it up yourself in the ns2 lua code, everything around hive is managed with httprequests and jsons.

    It's just i won't post hive api links here in public because i think noone would want this.

    Also what exactly do you want to do?
  • BalmarkBalmark Join Date: 2002-11-01 Member: 3476Members, Constellation, Reinforced - Silver, Reinforced - Shadow, WC 2013 - Shadow
    edited December 2013
    Thanks .. that's what I was looking for in the first place ..

    PlayerRanking.lua .. http://sabot.herokuapp.com/api/get/playerData/2087951

    It's there .. I don't understand the secrecy ... thanks for indirectly helping.
  • GhoulofGSG9GhoulofGSG9 Join Date: 2013-03-31 Member: 184566Members, Super Administrators, Forum Admins, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, Reinforced - Supporter, WC 2013 - Supporter, Pistachionauts
    edited December 2013
    There are reasons i want to avoid to post these links to the public ;)

    BTW i don't know what you want to do but here is the ns2stats.com api doc: https://docs.google.com/document/d/13v9TF56gqykSyg0uysIzeZlEQmJL5ge5wLfM-uRaAwo/
  • BalmarkBalmark Join Date: 2002-11-01 Member: 3476Members, Constellation, Reinforced - Silver, Reinforced - Shadow, WC 2013 - Shadow
    No reason not to post a 'get' url .. and the 'post' is obviously getting filtered by their whitelist of servers on the hive side of things

  • GhoulofGSG9GhoulofGSG9 Join Date: 2013-03-31 Member: 184566Members, Super Administrators, Forum Admins, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, Reinforced - Supporter, WC 2013 - Supporter, Pistachionauts
    Balmark wrote: »
    No reason not to post a 'get' url .. and the 'post' is obviously getting filtered by their whitelist of servers on the hive side of things

    Also with knowing the get-url you can do things i don't want to ppl to do. Let's just end this, okay?
Sign In or Register to comment.