tp TouchPointWP Interfaces api - TenthPres/TouchPoint-WP GitHub Wiki
tp\TouchPointWP\Interfaces\api
Any classes that handle API requests from the client via /touchpoint-api/ should implement this interface.
This is NOT for the connection to TouchPoint's API, but rather for XHR and such from the client.
- Full name:
\tp\TouchPointWP\Interfaces\api
Methods
api
Handle API requests
public static api(array $uri): bool
- This method is static. Parameters:
| Parameter | Type | Description |
|---|---|---|
$uri |
array | The request URI already parsed by parse_url() |
Return Value:
False if endpoint is not found. Should print the result.