/** * Return array for API stat requests * */ function yourls_api_stats($filter = 'top', $limit = 10, $start = 0) { $return = yourls_get_stats($filter, $limit, $start); $return['simple'] = 'Need either XML or JSON format for stats'; $return['message'] = 'success'; return yourls_apply_filter('api_stats', $return, $filter, $limit, $start); }
function yourls_api_stats($filter = 'top', $limit = 10) { $return = yourls_get_stats($filter, $limit); $return['simple'] = 'Need either XML or JSON format for stats'; $return['message'] = 'success'; return $return; }