- 1 Configuration
- 2 Department
- 3 User
- 3.1 Get Parameters of Add User
- 3.2 Add User
- 3.3 Get User List
- 4 Product
- 5 Project
- 6 Task
- 6.1 Get Task List
- 6.2 Get Task Optional Information
- 6.3 Add Task
- 6.4 Finish Task Optional Information
- 6.5 Finish Task
- 7 Bug
Add User
- 2020-03-24 10:18:15
- John Ten
- 1571
- Last edited by Taotao on 2020-03-24 14:42:39
Method Description |
Request this method to add a new user. Information about the user such as department, position, and privilege can be added. Optional parameters can be blank. |
|||||||||||||||||||||||||||||||||||||||||||||||||
Example |
public function addUser() { include_once('zentao.php'); $zentao = new zentao(); $params = array( 'dept' => 1, 'account' => 'Jack10', 'password1' => '123456', 'password2' => '123456', 'realname' => 'Jack10', 'join' => '2019-11-11', 'role' => 'dev', 'group' => 2, 'email' => 'jack2019@gmail.com', 'commiter' => 'http://jack2019.com', 'gender' => 'm' ); // request parameters $result = $zentao->addUser($params); return $result; } |
|||||||||||||||||||||||||||||||||||||||||||||||||
Request |
POST | |||||||||||||||||||||||||||||||||||||||||||||||||
Method |
addUser | |||||||||||||||||||||||||||||||||||||||||||||||||
Parameter |
|
|||||||||||||||||||||||||||||||||||||||||||||||||
Result |
success | error | ||||||||||||||||||||||||||||||||||||||||||||||||
{ "status": 1, "msg": "success", "result": "Saved"} |
{ "status": 0, "msg": "error", "result": { "account": [ "『Username』 has『ly0011』existed. Go to Admin-Data-Recycle tp restore it if it has been deleted." ] }} |
Write a Comment
Products
- ZDOO
- ZDOO Cloud
Support
- Request Demo
- Tech Forum
- GitHub
- SourceForge
About Us
- Company
- Private Policy
- Blogs
- Partners
Contact Us
- Google Groups
- Leave a Message
- Email: philip@easycorp.ltd
- Skype: philip517