New on LowEndTalk? Please Register and read our Community Rules.
DirectAdmin API response format
Anyone knows how to get a json response from DirectAdmin when sending API requests?
I am using the API to check and modify email forwarding rules but I can't seem to get JSON from DirectAdmin, it always answers in URL encoded plain text like this
error=1&text=Error%20creating%20forwarder&details=Forwarder%20%27%26%23%34%38%3B%26%23%34%38%3B%26%23%34%39%3B%27%20already%20exists
Comments
try adding ?json=yes to your url.
Please read directadmin documentation. Their api is pretty good documented.