TwistPHP Documentation

authenticated

File path: dist/twist/Core/Controllers/BaseRESTUser.controller.php
Namespace: Twist\Core\Controllers
Extends: BaseRESTKey

authenticatedDetermine if your auth token is valid, simple function that will not do anything other then report connection status

Return Values

void — No return information has been documented for this function.

Example

<?php
/** --------- Option 1 --------- */

//Register a dynamic route that will direct all function requests to the controller
Twist::Route() -> controller('/baserestuser%','\Twist\Core\Controllers\BaseRESTUser');

/** --------- Option 2 --------- */

//Or you can register a route to only direct the current request to a particular controller method
Twist::Route() -> get('/baserestuser/authenticated',array('\Twist\Core\Controllers\BaseRESTUser','authenticated'));