Posts by kikanshathomas

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!

    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

    Files

    • Capture_bot.PNG

      (4.81 kB, downloaded 59 times, last: )

    I'm able to put "https://api.nitrado.net/ping" in the browser and get:

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

    in return. I'm not able to figure out how to run urls such as "https://api.nitrado.net/services/##game_id_here##/gameservers". The only response I get is:

    Code
    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.