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

ChatweeV2_SsoUser::logout

Calls the /sso-user/logout Chatwee API method. It terminates all backend sessions belonging to the user, identified by the particular user ID.


<?php

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

  ChatweeV2_Configuration::setChatId(YOUR_PERSONAL_CHAT_ID);
  ChatweeV2_Configuration::setClientKey(YOUR_PERSONAL_CLIENT_KEY);

  try {
    ChatweeV2_SsoUser::logout(Array(
      "userId" => "507f191e810c19729de860ea",
    ));
    echo "The user has been logged out";
  } catch(Exception $exception) {
    echo "An error occured: " . $exception->getMessage();
  }
?>
	
Name Description Type Mandatory Remarks
userId ID of the user string yes the value obtained from the ChatweeV2_SsoUser::register method