api
Core API
This module is not available in Core API
You can use this module for getting the information about request, if the script run with API call.
Usage:
Methods
is_api
Returns true
, if the script was run with API call
query
Returns query arguments
An example:
Query: ...?name=foo&name=bar&baz=42
url
Returns the request URL
body
Returns the request Body
method
Returns the request method