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}
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}