PHP Class Backend\Core\Engine\Api

Deprecation:
Datei anzeigen Open project: forkcms/forkcms

Public Methods

Method Description
appleAddDevice ( string $token, string $email ) Add an Apple device to a user.
appleRemoveDevice ( string $token, string $email ) Remove an Apple device from a user.
getAPIKey ( string $email, string $password ) : array Get the API-key for a user.
getInfo ( ) : array Get info about the site.
microsoftAddDevice ( string $uri, string $email ) Add a Microsoft device to a user.
microsoftRemoveDevice ( string $uri, string $email ) Remove a device from a user.

Method Details

appleAddDevice() public static method

Add an Apple device to a user.
public static appleAddDevice ( string $token, string $email )
$token string The token of the device.
$email string The emailaddress for the user to link the device to.

appleRemoveDevice() public static method

Remove an Apple device from a user.
public static appleRemoveDevice ( string $token, string $email )
$token string The token of the device.
$email string The emailaddress for the user to link the device to.

getAPIKey() public static method

Get the API-key for a user.
public static getAPIKey ( string $email, string $password ) : array
$email string The emailaddress for the user.
$password string The password for the user.
return array

getInfo() public static method

Get info about the site.
public static getInfo ( ) : array
return array

microsoftAddDevice() public static method

Add a Microsoft device to a user.
public static microsoftAddDevice ( string $uri, string $email )
$uri string The uri of the channel opened for the device.
$email string The emailaddress for the user to link the device to.

microsoftRemoveDevice() public static method

Remove a device from a user.
public static microsoftRemoveDevice ( string $uri, string $email )
$uri string The uri of the channel opened for the device.
$email string The emailaddress for the user to link the device to.