Emails are disabled - for account issues, post in #help on the NI Discord.

[Open] NI Api
#1
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 !
Fiendish Bow - 29/04/2018 - 1200 hours
Noble Steel Gauntlets - 30/04/2018 - 1205 hours
Reply
#2
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 Wink
Reply
#3
Thank you !
Fiendish Bow - 29/04/2018 - 1200 hours
Noble Steel Gauntlets - 30/04/2018 - 1205 hours
Reply
#4
(31-05-2018, 09:34 AM)Kaasovic Wrote: 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 Wink

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
"
Fiendish Bow - 29/04/2018 - 1200 hours
Noble Steel Gauntlets - 30/04/2018 - 1205 hours
Reply
#5
Try without the .xml extension
Reply
#6
(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 ?
Fiendish Bow - 29/04/2018 - 1200 hours
Noble Steel Gauntlets - 30/04/2018 - 1205 hours
Reply
#7
I assume this is C#?

Perhaps this answer will help you https://stackoverflow.com/questions/7496...mldocument
Reply
#8
(31-05-2018, 08:34 PM)Kaasovic Wrote: I assume this is C#?

Perhaps this answer will help you https://stackoverflow.com/questions/7496...mldocument

Yes it is, thought i said it my bad Wink  I'll check the post

I've tried all the answers, it works with another URL but not the NI one ..
Fiendish Bow - 29/04/2018 - 1200 hours
Noble Steel Gauntlets - 30/04/2018 - 1205 hours
Reply




Users browsing this thread: 1 Guest(s)