Can anyone explain why limit here has no effect? Still get 25 results every time. Also tried 'api.Contact.get' => array(array('limit' => 1000))
Using offset to recurse through the set works but is a nuisance.
require_once $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins/civicrm/civicrm.settings.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins/civicrm/civicrm/CRM/Core/Config.php';
$config = CRM_Core_Config::singleton( );
require_once $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins/civicrm/civicrm/api/api.php';
$result = civicrm_api3('Membership', 'get', array(
'membership_type_id' => "$level",
'limit' => 1000,
'api.Contact.get' => array(),
));