Hey,
Currently I'm using Sinusbot 0.13.37-9791176 and I'm trying to perform a API call from the 'enableWeb' web interface. Gathering information like the instances on the bot is not a problem, neither is the authentication header.
I couldn't find anything about sending an event on the API page.
What is the URL to send an event to the script from the webpage? I've tried:
but this gives me a 404 error. Changing 'event' to 'scriptEvent' for example, gives me the HTML of the Sinusbot web interface.
Thanks in advance!
Kind regards,
Cakemasher
Edit / Solution:
Turned out I was performing a GET request instead of a POST request (Doink!).
Currently I'm using Sinusbot 0.13.37-9791176 and I'm trying to perform a API call from the 'enableWeb' web interface. Gathering information like the instances on the bot is not a problem, neither is the authentication header.
I couldn't find anything about sending an event on the API page.
What is the URL to send an event to the script from the webpage? I've tried:
Code:
/api/v1/bot/i/:instanceId/event/:eventName
Thanks in advance!
Kind regards,
Cakemasher
Edit / Solution:
Turned out I was performing a GET request instead of a POST request (Doink!).
Last edited: