NitrAPI Walkthrough Help - Javascript (Node.js)

Nitrado now has an official Discord server to bring communities, friends and other gamers together!
Join the Nitrado Community Discord now and share your experiences and knowledge with others!

Click here to go to the Discord Server!
  • I'm able to put "" in the browser and get:

    1. {"status":"success","message":"All systems operate as expected."}

    in return. I'm not able to figure out how to run urls such as "". The only response I get is:

    1. {"status":"error","message":"Access token not valid.","data":{"error_code":"access_token_not_valid","error_details":{}}}

    Are there any step-by-step tutorials on how to get to the point where I can see my Gameserver Details? By just going over the Docs, I don't have the experience to figure it out on my own. Any help would be greatly appreciated.

  • kikanshathomas

    Changed the title of the thread from “NitrAPI Walkthrough Help - Javascripts (Node.js)” to “NitrAPI Walkthrough Help - Javascript (Node.js)”.
  • Well guys, I got it figured out. After trying to research how to POST to an API, I came across an Application called "POSTMAN". Using this I was able to better understand how APIs work and was able to implement it into my node.js javascript code. I now have a working NitradoServerPlayerCount bot for Discord.

    It a basic bot that will display Green Dot over avatar when server is online, while showing players online out of total slots. It will also change to orange dot during server restart and red dot if the server is down. It needs some code cleaning and organization before it is finally finished. :D


    Closed the thread.