I am using the (latest) DA library api in PHP.
All function work fine execpt deleting users.
When I call the API CMD_API_SELECT_USERS and give the params:
confirm=Confirm&delete=yes&select0=USER2DELETE
The api correct deletes the user but it gives ALLWAYS as response:
It does not matter if the actual result is true or false, the respond is always the same. (the api call itself works fine, DA does exactly what it should do, only the repond is wrong)
When i run directadmin in debug mode (./directadmin b2000) i see the user is correctly removed and it prints in the (ssh) shell the correct respond what i also expected in the API, something like: error=0 text=user deleted or if false something like error=1 text=user not found
On all other API calls I do get that kind of repond back in the api, but not when I use CMD_API_SELECT_USERS
Even when i directly print the output after the initial call (without parsing it etc) it only shows http/1/1 200 ok, nothing else.
What do I wrong here or is this a bug?
Is there maybe an alternative way to delete users with correct caalback inti the API?
All function work fine execpt deleting users.
When I call the API CMD_API_SELECT_USERS and give the params:
confirm=Confirm&delete=yes&select0=USER2DELETE
The api correct deletes the user but it gives ALLWAYS as response:
Code:
string 'HTTP/1.1 200 OK
' (length=17)
It does not matter if the actual result is true or false, the respond is always the same. (the api call itself works fine, DA does exactly what it should do, only the repond is wrong)
When i run directadmin in debug mode (./directadmin b2000) i see the user is correctly removed and it prints in the (ssh) shell the correct respond what i also expected in the API, something like: error=0 text=user deleted or if false something like error=1 text=user not found
On all other API calls I do get that kind of repond back in the api, but not when I use CMD_API_SELECT_USERS
Even when i directly print the output after the initial call (without parsing it etc) it only shows http/1/1 200 ok, nothing else.
What do I wrong here or is this a bug?
Is there maybe an alternative way to delete users with correct caalback inti the API?
API function ' Delete User' results always in a incorrect API response
Aucun commentaire:
Enregistrer un commentaire