Horde_Service_Scribd::signup PHP Method

signup() public method

Sign up a new user
public signup ( string $username, string $password, string $email, string $name = null ) : array
$username string : username of user to create
$password string : password of user to create
$email string : email address of user
$name string : name of user
return array containing session_key, name, username, and user_id of the user
    public function signup($username, $password, $email, $name = null)
    {
        $method = "user.signup";
        $params['username'] = $username;
        $params['password'] = $password;
        $params['name'] = $name;
        $params['email'] = $email;
        $result = $this->postRequest($method, $params);
        $this->_config['session_key'] = $response->session_key();
        return $result;
    }