forked from RainLoop/rainloop-webmail
-
-
Notifications
You must be signed in to change notification settings - Fork 126
inmanturbo edited this page Jul 2, 2024
·
4 revisions
<?php
$_ENV['SNAPPYMAIL_INCLUDE_AS_API'] = true;
require_once '/path/to/snappymail_root/index.php';
// or with specific version
//require_once '/path/to/snappymail_root/snappymail/v/2.36.1/include.php';
// returns instance of \RainLoop\Actions
\RainLoop\Api::Actions();
// returns instance of \RainLoop\Config\Application
\RainLoop\Api::Config();
// returns instance of \SnappyMail\HTTP\CSP
\RainLoop\Api::getCSP(string $sScriptNonce = null);
// returns instance of \MailSo\Log\Logger
\RainLoop\Api::Logger();
// returns string or null
\RainLoop\Api::CreateUserSsoHash(
string $sEmail,
string $sPassword,
array $aAdditionalOptions = array(),
bool $bUseTimeout = true
)
// returns bool
\RainLoop\Api::ClearUserSsoHash(string $sSsoHash);
// returns bool
\RainLoop\Api::ClearUserData(string $sEmail);
// returns bool
\RainLoop\Api::LogoutCurrentLogginedUser();
// Handle the HTTP request
\RainLoop\Service::Handle();
exit;