View Full Version : Cmd_account_user Api
rossdev
11-20-2003, 03:36 PM
Would it be possible to include comments when creating new users with the CMD_ACCOUNT_USER API?
Thanks,
Brian
DirectAdmin Support
11-20-2003, 11:20 PM
Hello,
The comments can be set by using:
action=/CMD_COMMENTS
method=POST
user=username
comments=the comments
You can do this from the API (as long as you use POST)
It's not part of the user creation and needs to be done with a seperate call.
John
rossdev
11-21-2003, 11:00 AM
OK I tried that with the PHP communication class by l0rdphi1.
That class communicates via GET and CMD_COMMENTS requires POST.
So I guess I’m out of luck.
Brian.
DirectAdmin Support
11-21-2003, 12:58 PM
Hello,
POST isn't a whole lot different from GET so you could modify it if you wanted.. here's an example:
GET
GET /CMD_SOMETHING?name=bob HTTP/1.1
Host: somehost.com
POST
POST /CMD_SOMETHING HTTP/1.1
Host: somehost.com
name=bob
POST with GET
POST /CMD_SOMETHING?name=bob HTTP/1.1
Host: somehost.com
age=105
So as you can see, by just moving where the values are placed, you can have a POST request instead of a GET. :)
John
l0rdphi1
11-21-2003, 08:44 PM
For the upcoming email-api functions I'm going to make a deal of changes to the class. Should be a lot better :D
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.