We are sorry. The service is currently down due to maintenance activities. The service interruption will take no more than 30 minutes.


Calls the /sso-user/register Chatwee API method. It returns the ID of a newly created user.


  require_once(dirname( __FILE__ ) . "/ChatweeV2_SDK/Chatwee.php");


  try {
    $userId = ChatweeV2_SsoUser::register(Array(
      "login" => "Test user",
      "isAdmin" => false,
      "avatar" => "http://mypage.com/avatar.png"
    echo "A new user has been registered with the following user ID: " . $userId;
  } catch(Exception $exception) {
    echo "An error occured: " . $exception->getMessage();
Name Description Type Mandatory Remarks
login user login string yes -
isAdmin if user has admin role boolean no -
avatar user avatar string no an absolute URL of the user's avatar image