lczub / TestLink-API-Python-client

A Python client to use the TestLink API
105 stars 63 forks source link

implement new 1.9.20-fixed api - createUser, setUserRoleOnProject #141

Open lczub opened 4 years ago

lczub commented 4 years ago

implement new 1.9.20-fixed api - createUser, setUserRoleOnProject

related TL Mantis Task

new api


    /**
     * Create a new user
     *
     * Restricted to site admin
     *
     * @param struct $args
     * @param string $args["devKey"]
     * @param string $args["login"]
     * @param string $args["firstname"]
     * @param string $args["lastname"]
     * @param string $args["email"]
     * @param string $args["password"] - OPTIONAL
     *               
     *
     * @return ID the new user if OK, otherwise error structure
     *
     * @access public
     */
    public function createUser($args) {
    /**
     * Set a role to a user at project level
     *
     * Restricted to users with System Wide Role Admin
     *
     * @param struct $args
     * @param struct $args["userid"]
     * @param struct $args["rolename"]
     * @param struct $args["testprojectid"]
     *
     * @return true if OK, otherwise error structure
     *
     * @access public
     */
    public function setUserRoleOnProject($args)