public static function createLogoutURL($destination_url) {
    $req = new CreateLogoutURLRequest();
    $resp = new CreateLogoutURLResponse();
    $req->setDestinationUrl($destination_url);

    try {
      ApiProxy::makeSyncCall('user', 'CreateLogoutURL', $req, $resp);
    } catch (ApplicationError $e) {
      throw self::applicationErrorToException(
        $e, htmlspecialchars($destination_url));
    }
    return $resp->getLogoutUrl();
  }
public static function createLogoutURL($destination_url) {
    $req = new CreateLogoutURLRequest();
    $resp = new CreateLogoutURLResponse();
    $req->setDestinationUrl($destination_url);

    try {
      ApiProxy::makeSyncCall('user', 'CreateLogoutURL', $req, $resp);
    } catch (ApplicationError $e) {
      throw self::applicationErrorToException(
        $e, htmlspecialchars($destination_url));
    }
    return $resp->getLogoutUrl();
  }
public static function createLogoutURL ( $ destination_url ) { $ req = new CreateLogoutURLRequest ( ) ; $ resp = new CreateLogoutURLResponse ( ) ; $ req -> setDestinationUrl ( $ destination_url ) ; try { ApiProxy :: makeSyncCall ( 'user' , 'CreateLogoutURL' , $ req , $ resp ) ; } catch ( ApplicationError $ e ) { throw self :: applicationErrorToException ( $ e , htmlspecialchars ( $ destination_url ) ) ; } return $ resp -> getLogoutUrl ( ) ; }
Computes the logout URL for this request and specified destination URL,
for both federated login App and Google Accounts App.

@param string $destination_url The desired final destination
URL for the user once logout is complete.
If 'destinationURL' does not have a host specified, we will
use the host from the current request.

@return string Logout URL.

@throws UsersException If there was a problem using the Users service.
Computes the logout URL for this request and specified destination URL for both federated login App and Google Accounts App .