[RSS Feed/News] Returning results in new API endpoint

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Hello,
I've added a new API endpoint to an addon we use (Snogs Advanced forms).
It seems to fetch the items (forms) but the api result returns an array of objects sorted alphabetically.
The code for returning the data is:
PHP:

Code:
return $this->apiResult([
    'forms' => $forms->toApiResults(),
    'pagination' => $this->getPaginationData($forms, $page, $perPage, $total)
]);


The JSON example:

JSON:

Code:
{
    "posid": 1,
    "z_connectedThread": 0,
    "z_description": "testing form"...

Read more
Read more about this Feed . . .
 
Status
Not open for further replies.
Back
Top Bottom