@wully i think ur api docs for wasteof 2 regarding getting token is outdated
wait what the fuck
you should get either {"token":"<token>"}
or {"error":"<error>"}
, you can’t get {}
from any endpoint that i’m aware of
it needs to be in an object (you’re missing {}
around it)
also the Content-Type
header must be set to application/json
(libraries that allow JSON POST data usually do this automatically but a request maker like that or curl usually don’t)