I'm a little new to Wordpress and the JSON API, so forgive me if this is a newbie question, but I'm trying to get all the messages from multiple custom message types and return them as JSON through my own JSON Controller (extending the JSON API)
if i do this:
$posts = $json_api->introspector->get_posts(array('post_type' => array('post','tweet','gallery','video','music'), 'post_parent' => 0, 'order' => 'ASC', 'orderby' => 'date', 'numberposts' => 100000000000));
echo count($posts);
I only get "10" messages, but there is much more to db. If I do this:
echo count(get_posts(array('post_type' => array('post','tweet','gallery','video','music'), 'post_parent' => 0, 'order' => 'ASC', 'orderby' => 'date', 'numberposts' => 100000000000)));
I get "74", the correct number of messages in db. In essence, the JSON API limits the return value to only 10 messages. I'm sure I can crack the JSON API plugin to allow more, but it looks like it will ruin my code for any API updates.
Is there any way to set JSONAPI-> introspector message number to "everything"
thank