send commands
Hi,
How do I send a warn with the battlemtrics api to a player on Squad?
I wish my Python script could send a warn but I can’t find the POST or GET request to do it?
Is there a list with all possible additional orders for Squad?
Thank you in advance for your lights! ❤️
7 Replies
Your better off running it as a RAW Command, (Simplier then trying to work out BM Coding/Shortcuts for the commands)
You will want to review this:
https://github.com/BloodfallenTear/BMSharp/blob/master/docs/RCON.md#finding-undocumented-endpoints
GitHub
BMSharp/docs/RCON.md at master · BloodfallenTear/BMSharp
A .NET Standard 2.0 library for interacting with the BattleMetrics API (Currently under heavy development). - BloodfallenTear/BMSharp
This way you just send the command the exact same you would within game via command line
Thank you you just saved me !!!
I get another question.
Is there a way to get logs with a GET request ? (to send them on Discord ?)
Thank you ! ❤️
No, you have to track the activity log via websocket to my knowledge,
Their is no direct documented endpoint to pull activity logs.
One of the other guys in the #api channel maybe able to better help in that area.
I've found it !!
https://api.battlemetrics.com/activity
The WS is only for receiving new logs and updating the player list. When you load in the page or scroll it uses an endpoint to fetch existing logs.
It's why I stated documented in my response