getPosts()
public static method
Structure of Response Array
It must be an associative array with the element keys of results and pagination.
In the results element must be a numerically index array holding an array with the kes of id and text.
The pagination element can be optional and shouold be an array holding an element named more which accepts a boolean value.
array(
'results' => array(
array( 'id' => 223, 'text' => 'Title of 223' ),
array( 'id' => 665, 'text' => 'Title of 665' ),
array( 'id' => 9355, 'text' => 'Title of 9355' ),
...
),
'pagination' => array(
'more' => true, // (boolean) or false - whether the next paginated item exists or not.
)
)
Or the pagination element can be omitted.
array(
'results' => array(
array( 'id' => 223, 'text' => 'Title of 223' ),
array( 'id' => 665, 'text' => 'Title of 665' ),
array( 'id' => 9355, 'text' => 'Title of 9355' ),
...
),
)
$sPageSlug public property