• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

API Login problem

Holfz

Donor
is awesome!
I have a login php api. The api will get a bot id from /api/v1/botid and it will log into the bot by sending POST requests that have “username” “password” “botid”

All POST data send in JSON

I tested on sinusbot that running on same host ( 127.0.0.1 ) it’s can login.

But I go tested on sinusbot that on server ( e.g 168.xxx.xxx.xx ) when I POST login data. It’s shows error

{"code":406,"error":"'username', 'password' or ‘botId’ not set ,"success":false}
 
Top