Results 1 to 2 of 2

Thread: API

  1. #1
    Refugee
    Join Date
    Dec 2017
    Posts
    25
    Rep Power
    0

    API

    I'm wanting to create an app that will generate a custom 7D2D dashboard for the players of our server. I see that I can get all the data I need using either the native or (even better) the BCManager commands via telnet. However, I'm curious if there is a better way to query this data than through the telnet connection. I thought I saw somewhere before that Allocs fixes had a web API type interface which would be much easier to deal with. Is there this type of interface for Alloc's, BCManager, etc.? Links would be appreciated.

    Thanks!
    Ian

  2. #2
    Colony Founder StompyNZ's Avatar
    Join Date
    Apr 2015
    Posts
    3,835
    Rep Power
    1
    https://github.com/7days2mod/BadCompanySM-WebUI

    which uses the web api from allocs mod:

    Code:
    http://<serverip>:<port>/api/executeconsolecommand?adminuser=<username>&admintoken=<usertoken>&raw=true&command=help
    you can set up the user/token in the webpermissions.xml created by allocs

    Alternatively you can log in to allocs map with steam before going to
    Code:
    http://<serverip>:<port>/api/executeconsolecommand?raw=true&command=help
    and it will use the logged in players admin level for command permission

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •