API Suggestion

l0rdphi1

Verified User
Joined
Jun 22, 2003
Messages
1,471
For methods like CMD_ACCOUNT_USER and CMD_ACCOUNT_RESELLER where a "text" value it returned, would it be possible to return in the http headers the message that is to be displayed?

It would be rather complicated to regex the whole text output for one little message.

Thoughts?
 

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
8,987
I think returning the whole text isn't too useful if you're trying to get details about the result.. Message could be added to the headers, yes... or I could just create an CMD_API version of those specifically designed for external apps. I'm sure that would be easier :)

John
 
Top