Chatwee

ChatweeV2_SsoManager::logoutUser

Logs out the user from Chatwee. Call this method whenever user logs out from your service.


<?php

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

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

  try {
    ChatweeV2_SsoManager::logoutUser();
    echo "The user has been logged out";
  } catch(Exception $exception) {
    echo "An error occured: " . $exception->getMessage();
  }
?>
	
This method takes no parameters.