[Open] NI Api - Printable Version +- NordInvasion Forum (https://forum.nordinvasion.com) +-- Forum: Help & Administration (https://forum.nordinvasion.com/forumdisplay.php?fid=8) +--- Forum: Help & Bug Reports (https://forum.nordinvasion.com/forumdisplay.php?fid=13) +---- Forum: General Troubleshooting (https://forum.nordinvasion.com/forumdisplay.php?fid=95) +---- Thread: [Open] NI Api (/showthread.php?tid=67956) |
NI Api - FSA_Tasadar - 31-05-2018 Hello ! Is there a Nord Invasion API where i can get the status of servers and things like that like the NIServerList.Jar ? Thank you ! RE: NI Api - Kaasovic - 31-05-2018 Status of servers can be found here: https://nordinvasion.com/server-links.html Every server status is shown in XML. You can parse whatever you need RE: NI Api - FSA_Tasadar - 31-05-2018 Thank you ! RE: NI Api - FSA_Tasadar - 31-05-2018 (31-05-2018, 09:34 AM)Kaasovic Wrote: Status of servers can be found here: https://nordinvasion.com/server-links.html By the way my code gives me an error, after searching on google might be an error of url and it's true that the url doesn't finish as a .xml so what type of page is it ? Thank you again for your help " XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load("https://nordinvasion.com/status/balder/21231.xml"); // gives error " RE: NI Api - Kaasovic - 31-05-2018 Try without the .xml extension RE: NI Api - FSA_Tasadar - 31-05-2018 (31-05-2018, 08:00 PM)Kaasovic Wrote: Try without the .xml extension Does give me the same error : (French) : System.Net.WebException : 'Le serveur a commis une violation de protocole. Section=ResponseStatusLine' XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load("https://nordinvasion.com/status/balder/21231"); I don't know why, i'll try to search again, thx for your help Maybe should i try by HttpRequest and not XML ? RE: NI Api - Kaasovic - 31-05-2018 I assume this is C#? Perhaps this answer will help you https://stackoverflow.com/questions/7496913/how-to-load-xml-from-url-on-xmldocument RE: NI Api - FSA_Tasadar - 31-05-2018 (31-05-2018, 08:34 PM)Kaasovic Wrote: I assume this is C#? Yes it is, thought i said it my bad I'll check the post I've tried all the answers, it works with another URL but not the NI one .. |