API
Turn on the UNA 15 JSON API at /api.php, let apps in with an API key or an allowed origin, make a first call, and read what every response looks like. curl -G 'https://YOUR-SITE/api.php' \
-H 'Authorization: Bearer YOUR_API_KEY' \
--data-urlencode 'r=MODULE/METHOD' \
--data-urlencode 'params[]=FIRST_PARAM'
{
"status": 200,
"module": "bx_posts",
"method": "{method}",
"params": [],
"data": {},
"hash": "{hash of the current API configuration}"
}
{
"status": 400,
"error": "{error message}",
"data": "",
"code": 400
}
4d