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.
- Interface name: api
- Namespace: \tp\TouchPointWP\Interfaces
- This is an interface
Methods
api
bool tp\TouchPointWP\Interfaces\api::api(array uri)
Handle API requests
- Visibility: public
- This method is static.
Arguments
- uri array - The request URI already parsed by parse_url()
Returns
- bool - False if endpoint is not found. Should print the result.